Date: Tue, 2 Mar 1999 08:20:59 -0600 From: Guy Helmer <ghelmer@scl.ameslab.gov> To: Chris <chrismar@readington.com> Cc: freebsd-questions@freebsd.org Subject: Re: linking problems Message-ID: <Pine.SGI.4.05.9903020817390.29064-100000@demios.scl.ameslab.gov> In-Reply-To: <Pine.BSF.4.10.9903012337550.12917-100000@walnut.readington.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Mar 1999, Chris wrote: > On Mon, 1 Mar 1999, Guy Helmer wrote: > > > On Mon, 1 Mar 1999, Chris wrote: > > > > > Hi folks, I seem to be having problems compiling on 3.1-stable. > > > the compile seems to go fine, however it seems to fail when it begins to > > > link. An example would be: > > > gcc -o aim -O -pipe `gtk-config --cflags` -elf aim.o buddy.o toc.o im.o > > > conversation.o buddy_chat.o html.o prefs.o sound.o about.o `gtk-config --libs` > > > /usr/local/lib/libgtk.so: file not recognized: File format not recognized > > > > What happens when you do "file /usr/local/lib/libgtk.so*"? It seems it > > may be an a.out library, whic your build is using the elf loader (and your > > elf /usr/lib libraries). > > This is what I get: > [chrismar@crazy ~ ] % file /usr/local/lib/libgtk.so* > /usr/local/lib/libgtk.so: symbolic link to libgtk.so.1.6 > /usr/local/lib/libgtk.so.1.6: FreeBSD/i386 compact demand paged shared > library not stripped Your libgtk is an a.out library (ELF libraries end in a single digit, like "libgtk.1"). You would probably need to replace whatever package of which it was part with a version of the package that was build under 3.1 to get /usr/local/lib/libgtk.so.* as an ELF library. Hope this helps, Guy Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science Research Assistant, Ames Laboratory --- ghelmer@scl.ameslab.gov Research Assistant, Dept. of Computer Science --- ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.4.05.9903020817390.29064-100000>