ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] продолжение сборки quagga. сборка в hasher, а , так же , %set_verify_elf_method unresolved
Date: Thu, 9 Mar 2006 18:52:17 +0300
Message-ID: <20060309155217.GO2873@master.mivlgu.local> (raw)
In-Reply-To: <200603091922.31160.asy@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 2642 bytes --]

On Thu, Mar 09, 2006 at 07:22:30PM +0400, Sergey Y. Afonin wrote:
> При сборке всё еще имеют место две проблемы.
> 
> Первая: 
> 
> при --enable-snmp вылезает вот такой набор ошибок:
> 
> gcc -pipe -Wall -O2 -march=i686 -rdynamic -o .libs/zebra zserv.o main.o interface.o connected.o zebra_rib.o redistribute.o debug.o rtadv.o zebra_snmp.o zebra_vty.o irdp_main.o irdp_interface.o irdp_packet.o router-id.o ioctl.o ipforward_proc.o if_netlink.o rt_netlink.o rtread_netlink.o  ../lib/.libs/libzebra.so -lm -lcrypt -lnetsnmp -lcrypto
> /usr/bin/../lib/libnetsnmp.so.9: undefined reference to `EVP_DigestInit'
> /usr/bin/../lib/libnetsnmp.so.9: undefined reference to `EVP_DigestFinal'
> /usr/bin/../lib/libnetsnmp.so.9: undefined reference to `EVP_DigestFinal_ex'
> /usr/bin/../lib/libnetsnmp.so.9: undefined reference to `AES_set_encrypt_key'
> /usr/bin/../lib/libnetsnmp.so.9: undefined reference to `EVP_md5'
> /usr/bin/../lib/libnetsnmp.so.9: undefined reference to `HMAC'
> 
> или -lm должно быть еще и после -l* ? Но при сборке без hasher на
> текущем Сизифе не воспроизводится...

ldd -r /usr/lib/libnetsnmp.so.9 показывает, что эта библиотека собрана
криво (при сборке пропущено -lcrypto).  Нужно лечить пакет net-snmp (ну
или пока собирать без --enable-snmp).

> Вторая:
> 
> Adjusting library links in /usr/src/tmp/quagga-buildroot
> ./var/lib:
> ./usr/lib:
>         libospfapiclient.so.0 -> libospfapiclient.so.0.0.0
>         libospf.so.0 -> libospf.so.0.0.0
>         libzebra.so.0 -> libzebra.so.0.0.0
> Verifying ELF objects in /usr/src/tmp/quagga-buildroot (arch=normal,fhs=relaxed,rpath=normal,textrel=normal,unresolved=relaxed)
> verify-elf: WARNING: ./usr/lib/libzebra.so.0.0.0: undefined symbol: master
> verify-elf: WARNING: ./usr/lib/libospf.so.0.0.0: undefined symbol: no_interface_desc_cmd
> verify-elf: WARNING: ./usr/lib/libospf.so.0.0.0: undefined symbol: no_interface_cmd
> verify-elf: WARNING: ./usr/lib/libospf.so.0.0.0: undefined symbol: recent_time
> <и т.д.>
> 
> %set_verify_elf_method unresolved=relaxed
> ситуацию спасает, оно, потом, работает. Ввиду малого современного
> программистского опыта готов выслушать, куда попытаться посмотреть.

Нужно посмотреть, где на самом деле определены недостающие символы (nm -D,
findsym).  Если в других библиотеках - необходимо указать их при сборке.
Впрочем, ELF допускает и вариант, когда библиотека использует символы,
предоставляющиеся исполняемым файлом - в таком случае остаётся либо
проигнорировать проблему, либо разбираться, зачем это было нужно, и искать
другой способ реализации, не требующий подобных ссылок.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-03-09 15:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09 15:22 Sergey Y. Afonin
2006-03-09 15:52 ` Sergey Vlasov [this message]
2006-03-09 16:55   ` Sergey Y. Afonin
2006-03-09 17:04   ` Sergey Y. Afonin
2006-03-09 17:09     ` Andrey Rahmatullin
2006-03-09 17:19       ` Sergey Y. Afonin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060309155217.GO2873@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git