These libraries need to be added to an LDADD as dependancies for the libXm.
Then they will be found by the loader during run time. Ideally all of the X
related libraries should also be added.
On 04-Jan-01 at 05:07, Alexander Mai ([EMAIL PROTECTED]) wrote:
> On Thu, Jan 04, 2001 at 02:16:52AM +0100, Matthias Buelow wrote:
> > Hi,
> >
> > trying to build Xbae-4.8.4 against OpenMotif fails at link phase:
> >
> > gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> > -I.. /../../../include/Motif-2.0
> > -I../../../../include/Motif-2.0 -I/usr/X11R6/include
> > -I/usr/X11R6/include -DMWM_DDI R=\"/usr/local/lib/X11/mwm\"
-DXLIB_PATH=\"/usr/X11R6/lib\"
> > -DXINCL_PATH=\"/usr/X11R6/include\" -g -O2 -Wall -c add.c
> > gcc -g -O2 -Wall -o add add.o -L../../src/.libs -lXbae
> > -L../../../Xm-2. 0/.libs -L/usr/X11R6/lib -lXm -L/usr/X11R6/lib
> > -lXt -lSM -lICE -lXext - lX11
> > /usr/X11R6/lib/libXm.so: undefined reference to `XpGetDocumentData'
> [..]
> >
> > Obviously since it doesn't link against libXp (printing stuff, shipped
> > with OM), which libXm depends on.
> > Both libXm and libXp are contained in /usr/X11R6/lib.
> > A quick glance at configure.in makes me think that libXp isn't even
> > checked for, maybe that should be added in future revisions.
> >
> > --mkb
>
> Hmm, now that I try it with a 2.0 version here it also fails there
> due to a missing -lXpm, etc.
>
> I guess we need a better check for additional Motif-related libs
> to link against not only in this place (but test/, ...)?!
> Now I just wonder why nobody has reported this earlier?
>
> --
> Alexander Mai
> [EMAIL PROTECTED]
>
>