From: Yura Zotov <yznews@hotbox.ru> To: Devel-Sisyphus List <devel@altlinux.ru> Subject: [devel] Помогите победить libtool Date: Tue, 12 Feb 2002 13:34:20 +0300 Message-ID: <20020212103420.GA4717@home-pool4-99.com2com.ru> (raw) [-- Attachment #1: Type: text/plain, Size: 1536 bytes --] При бдительно рассмотрении пакета libnetcdf оказалось, что он собирается неправильно. В нем не собирается библиотека-интерфейс к C++. Происходит это потому, что эта библиотека линкуется с только сто собранной C-библиотекой. Однако, ка стадии %install libtool заявляет libtool install libnetcdf_c++.la /var/tmp/libnetcdf-buildroot/usr/lib libtool: install: warning: relinking `libnetcdf_c++.la' cd /usr/src/RPM/BUILD/netcdf-3.5.0/src/cxx; /bin/sh /usr/bin/libtool --mode=relink gcc -o libnetcdf_c++.la netcdf.lo ncvalues.lo -rpath /usr/lib -L../libsrc -lnetcdf gcc -shared netcdf.lo ncvalues.lo -L/usr/src/RPM/BUILD/netcdf-3.5.0/src/libsrc -L/usr/lib -lnetcdf -Wl,-soname -Wl,libnetcdf_c++.so.0 -o .libs/libnetcdf_c++.so.0.0.0 /usr/bin/ld: cannot find -lnetcdf collect2: ld returned 1 exit status libtool: install: error: relink `libnetcdf_c++.la' with the above command before installing it Т.е. gcc не находит только что собранную библиотеку libnetcdf.so, потому что он ее ищет в ../libsrc, а она лежит в ../libsrc/.libs. Ее туда сама libtool при сборке кладет. Насколько я понял, пути эти libtool берет из libnetcdf_c++.la, который создается при сборке. Непонятно только, почему на стадии %build библиотека все-таки правильно собирается и складывается в sxx/.libs. В вот при перелинковке что-то не то происходит. Так как же libtool победить? libnetcdf нужна для OpenDX, но ему не нужна libnetcdf_c++. Так что "и так" работать будет. Как быть? Заранее спасибо за помощь. Лог rpm -bi libnetcdf.spec приложен. -- Юрий А. Зотов [-- Attachment #2: libnetcdf.log.bz2 --] [-- Type: application/x-bzip2, Size: 6008 bytes --]
reply other threads:[~2002-02-12 10:34 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020212103420.GA4717@home-pool4-99.com2com.ru \ --to=yznews@hotbox.ru \ --cc=devel@altlinux.ru \ /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