From owner-freebsd-questions Sat Aug 28 23:35:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.erols.com (smtp1.erols.com [207.172.3.234]) by hub.freebsd.org (Postfix) with ESMTP id 8492614EAC for ; Sat, 28 Aug 1999 23:35:38 -0700 (PDT) (envelope-from yaldabaoth@geocities.com) Received: from geocities.com (207-172-145-130.s3.as6.fdk.md.dialup.rcn.com [207.172.145.130]) by smtp1.erols.com (8.8.8/8.8.5) with ESMTP id CAA25014; Sun, 29 Aug 1999 02:34:48 -0400 (EDT) Message-ID: <37C8D461.60126D03@geocities.com> Date: Sun, 29 Aug 1999 02:34:10 -0400 From: Andrew Sherrod X-Mailer: Mozilla 4.06 [en] (Win98; U) MIME-Version: 1.0 To: Alfred Perlstein Cc: questions@FreeBSD.ORG, yaldabaoth@geocities.com Subject: Re: Problems with libXm.so.1.2 in v3.2 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The -aout flag fixed the problems. (Though I am going to move to ELF as soon as I can.) Thanks! Andrew Sherrod Alfred Perlstein wrote: > you seem to only have the a.out version of the Motif libs, you > can either: > > a) compile and link with the "-aout" flag passed to gcc, > after moving the Motif lib into /usr/X11R6/lib/aout > b) get an ELF copy of the Motif libs. > > If you plan on deploying an application for FreeBSD 3.x+ it > is recommended that you use ELF binaries, hence option 'b' > is probably the best way to make your binary. > > -Alfred Perlstein - [bright@rush.net|alfred@freebsd.org] > Wintelcom systems administrator and programmer > - http://www.wintelcom.net/ [bright@wintelcom.net] > > On Sun, 29 Aug 1999, Andrew Sherrod wrote: > > > I was trying to compile a Motif application and (after some tinkering > > with the -L and -I flags) almost succeeded in compiling it except for > > the error : > > > > /usr/X11R6/lib/libXm.so: file not recognized: File format not > > recognized > > > > A "file /usr/X11R6/lib/libXm.so" displays: > > > > /usr/X11R6/lib/libXm.so: symbolic link to libXm.so.1.2 > > > > A "file /usr/X11R6/lib/libXm.so.1.2" displays: > > > > /usr/X11R6/lib/libXm.so.1.2: FreeBSD/i386 compact demand paged > > shared library not stripped > > > > The compiler command I am running is (and I realize I probably have more > > -L and -I flags than I absolutely need): > > > > cc [program] -o [output] -I/usr/X11R6/include > > -I/usr/X11R6/include/X11 -I/usr/X11R6/lib -I/usr/X11R6/lib/X11 \ > > -L/usr/X11R6/include -L/usr/X11R6/include/X11 -L/usr/X11R6/lib > > -L/usr/X11R6/lib/X11 \ > > -lXm -lXt -lX11 > > > > Four questions: > > > > 1) Is there something I am forgetting? > > > > 2) Is this library known to be borken? Or is my version terribly > > out-of-date? > > > > 3) If I need to recompile, where does the libXm source code live? I did > > a make world in the /usr/X11R6/src/xc directory and could not find the > > compiled library. > > > > 4) If I can't get libXm.so to work, can I play any games with libXm.a > > and static linking to get the necessary object code? > > > > Thanks for any help anyone can give. > > > > Andrew Sherrod > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message