Article View: pl.comp.os.bsd
Article #310shared vs static...
From: szary
Date: Tue, 30 Mar 2004 23:22
Date: Tue, 30 Mar 2004 23:22
54 lines
3469 bytes
3469 bytes
Mam problem z OpenBSD [to tylko przyklad, ale to powtarza sie czesciej]
Kompiluje sobie xchat-2.0.7 i widze:
...
/bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -I/usr/local/include
-o perl.la -rpath /usr/local/lib/xchat/plugins -avoid-version -module
perl.lo -Wl,-R/usr/libdata/perl5/i386-openbsd/5.8.0/CORE -Wl,-E
/usr/libdata/perl5/i386-openbsd/5.8.0/auto/DynaLoader/DynaLoader.a
-L/usr/libdata/perl5/i386-openbsd/5.8.0/CORE -lperl -lm -lutil -lssl
-lcrypto -Wl,-E -L/usr/local/lib -lglib-2.0 -lintl -liconv
/usr/local/lib/libintl.a -L/usr/local/lib /usr/local/lib/libiconv.a
*** Warning: Trying to link with static lib archive /usr/libdata/perl5/i386-openbsd/5.8.0/auto/DynaLoader/DynaLoader.a.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not used here.
*** Warning: Trying to link with static lib archive /usr/local/lib/libintl.a.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not used here.
*** Warning: Trying to link with static lib archive /usr/local/lib/libiconv.a.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not used here.
...
w sumie program sie skompilowal i dziala, ale nie dzialaja pluginy... przy
starcie xchata mam:
xchat:/usr/local/lib/xchat/plugins/perl.so: undefined symbol 'boot_DynaLoader'
xchat: /usr/local/lib/xchat/plugins/perl.so: can't resolve reference 'boot_DynaLoader'
dlaczego mam wszedzie *.a ? dlaczego on sam znajduje te *.a? mimo ze mam
rowniez *.so? ale tych nie znajduje...
# ldconfig -r | grep libintl
319:-lintl.1.1 => /usr/lib/libintl.so.1.1
czy to jakis standardowy problem?
--
| Zrob sobie aliasa: http://zrob.sobie.aliasy.wy.marz.one.pl
+----JID: szary@chrome.pl----E-Mail:szary@nie.robi.to--------
| Linux is for Windows haters... BSD is for Unix lovers...
| ... and OpenBSD is for me
Technical Details
Message-ID:
<pan.2004.03.30.23.22.35.504986@szary.rawo.com.pl>Path:
mbox-mo1.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!proxad.net!newsfeed.tpinternet.pl!news.task.gda.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!proxad.net!newsfeed.tpinternet.pl!news.task.gda.pl!not-for-mail From: szary <sz...@szary.rawo.com.pl> Newsgroups: pl.comp.os.bsd Subject: shared vs static... Date: Wed, 31 Mar 2004 01:22:38 +0200 Organization: CI TASK http://www.task.gda.pl Lines: 54 Message-ID: <pan.2004.03.30.23.22.35.504986@szary.rawo.com.pl> NNTP-Posting-Host: pao90.warszawa.sdi.tpnet.pl Mime-Version: 1.0 X-Trace: korweta.task.gda.pl 1080688959 29726 217.96.234.90 (30 Mar 2004 23:22:39 GMT) X-Complaints-To: ab...@news.task.gda.pl NNTP-Posting-Date: Tue, 30 Mar 2004 23:22:39 +0000 (UTC) User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit