Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 02:21:37 -0400
From:      Andrew Sherrod <yaldabaoth@geocities.com>
To:        questions@FreeBSD.ORG
Cc:        yaldabaoth@geocities.com
Subject:   Re: Problems with libXm.so.1.2 in v3.2
Message-ID:  <37C8D171.C1D23867@geocities.com>
References:  <37C8CF8A.716FDB42@geocities.com>

next in thread | previous in thread | raw e-mail | index | archive | help

A follow-up on this problem.

I added -static to the compiler command, and it did recognize libXm.a, but
now I get a full two screens of error messages, mostly undefined references
in Shell.o, as well as undefined _XmStrings and XmCreatePushButton in main.
[I did include "Xm.h" and "PushB.h"]. (I can provide a print-out if needed).
Is there a simple solution that I am overlooking? Did the static version of
shell.o not get updated when I upgraded versions? (I have run every version
from 2.2.6 through 3.2 including 3.0).

Once again, thanks for the input.

Andrew Sherrod

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37C8D171.C1D23867>