From owner-freebsd-questions Tue Mar 2 6:21:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailhub.scl.ameslab.gov (mailhub.scl.ameslab.gov [147.155.137.127]) by hub.freebsd.org (Postfix) with ESMTP id E75CD1549D for ; Tue, 2 Mar 1999 06:21:17 -0800 (PST) (envelope-from ghelmer@scl.ameslab.gov) Received: from demios.ether.scl.ameslab.gov ([147.155.137.54]) by mailhub.scl.ameslab.gov with esmtp (Exim 1.90 #1) id 10Hq3E-0000dX-00; Tue, 2 Mar 1999 08:21:36 -0600 Date: Tue, 2 Mar 1999 08:20:59 -0600 From: Guy Helmer To: Chris Cc: freebsd-questions@freebsd.org Subject: Re: linking problems In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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