Not too sure. I link apps all the time without specifying -lXp. I suspect they
are not really linking with OM. But I haven't tried to build Xbae against OM.
I'm giving it a wirl right now against my branch of OM. Well it seems fine. It
seems to fail with an xpm reference, but that is a different problem. Ahhh, no
it's not fine. It seems to be linking the example apps against LessTif,
regardless of the setting of --with-motif-includes --with-motif-libs. Looks
like a Xbae build problem to me. It would probably work if Xbae was not in the
LessTif source tree.
> Rick,
>
> Is this really an Open Motif problem that we need to correct in the next
> distribution? (Pardon my ignorance, its been 25 years since I last did any
> real programming...)
>
> Mark
>
> At 06:05 AM 1/4/2001 -0500, you wrote:
> >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]
> > >
> > >
>
> -
> Integrated Computer Solutions, Inc.
> Visual Development Tools for Professionals
>
> 617-621-0060 x108 (voice)
> 617-621-9555 (fax)
>
> 201 Broadway
> Cambridge, MA 02139
>
> Visit the MotifZone (www.motifzone.net) for info on Motif!
>
>
>