Article View: gnu.gcc.help
Article #938.so problem and crossreferences between libraries in C, Linux
From: Peter Van Osta
Date: Tue, 08 Oct 2002 09:46
Date: Tue, 08 Oct 2002 09:46
58 lines
2906 bytes
2906 bytes
Hi, I am having serious trouble with linking shared objects (.so files) and crossreferencing between libraries. If you could respond by email (remove _NOSPAM from address) ? Shared object problem: ---------------------- Creating qaz... /home/mcube/lib/Linux/libqwe.so: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** [qaz] Error 1 I compile the libraries to ".a" files and use these files at the momnet as I cannot use the ".so" files. Using the ".a" files works. The only information i ahve is that there isa difference in the fact that our new ".so" files are "stripped": ".so" files of our software: libqwe.so: ELF 32-bit LSB shared object, Intel 80386, version 1, stripped libcbpim21.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped Version information: ld -v geeft: GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8) gcc -v gives: gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98) ranlib -v gives: GNU ranlib 2.11.90.0.8 uname -a gives: Linux linux-1 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown Crossreferencing between libraries: ----------------------------------- I have some libraries that depend on functions in other libraries, so they are not "self-contained". I tried to follow the advce to change the order in which they are linked, but that doens't seem to work. What can I do to solve this problem ? Info: /home/abc/lib/Linux/libsrty.so: undefined reference to `test_dir' /home/abc/lib/Linux/libsrty.so: undefined reference to `make_dir' collect2: ld returned 1 exit status make: *** [qaz_02] Error 1 Thanks in advance, Peter http://ourworld.compuserve.com/homepages/pvosta/
Technical Details
Message-ID:
<3DA2A98C.AE660049@unionbio-eu.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!isdnet!newsfeed.online.be!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,de93be6f09f4e16b,start X-Google-Attributes: gid11318c,public X-Google-Thread: fcea4,de93be6f09f4e16b,start X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-10-08 02:58:01 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!isdnet!newsfeed.online.be!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail Message-ID: <3DA2A98C.AE660049@unionbio-eu.com> Date: Tue, 08 Oct 2002 11:46:52 +0200 From: Peter Van Osta <pvosta@unionbio-eu.com> Reply-To: pvosta_NOSPAM@unionbio-eu.com Organization: Union Biometrica N.V./S.A. ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: gnu.gcc.help,be.comp.programming Subject: .so problem and crossreferences between libraries in C, Linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 58 NNTP-Posting-Host: 213.193.139.10 X-Trace: 1034071080 30449 213.193.139.10 X-Complaints-To: abuse@be.easynet.net