Undefined symbols refered to by libXm.so

As I compiled and installed Motif without much problems on a linux box (uname -a says Linux mylinux.mydomain 2.2.14-15mdk #1 Tue Jan 4 222420 CET 2000 i686 unknown), I get the followin errors when linking nspluginviewer (KDE 2.0, kdebase)
/usr/X11R6/lib/libXm.so undefined reference to `XpGetDocumentData`
/usr/X11R6/lib/libXm.so undefined reference to `XpGetPageDimensions`
/usr/X11R6/lib/libXm.so undefined reference to `XpGetOneAttribute`
/usr/X11R6/lib/libXm.so undefined reference to `XpStartPage`
/usr/X11R6/lib/libXm.so undefined reference to `XpGetScreenOfContext`
/usr/X11R6/lib/libXm.so undefined reference to `XpQueryExtension`
/usr/X11R6/lib/libXm.so undefined reference to `XpEndPage`
/usr/X11R6/lib/libXm.so undefined reference to `XpSetImageResolution`
/usr/X11R6/lib/libXm.so undefined reference to `XpEndJob`
/usr/X11R6/lib/libXm.so undefined reference to `XpSelectInput`
/usr/X11R6/lib/libXm.so undefined reference to `XpGetPdmStartParams`
/usr/X11R6/lib/libXm.so undefined reference to `XpGetContext`

how can I get/build the library containig those symbols?
Thanks
In the mean time I`m switching back to LessTif to get my executable built.


Anonymous

Anonymous's picture

Undefined symbols refered to by libXm.so

You need libXp.so. It`s part of the XFree86 distribution.
You can find it in the XFree86-devel package.


Anonymous

Anonymous's picture

Anonymous

Anonymous's picture

need to ggc -lXm -lXp too!

You also need to compile with the Xp library too.

gcc .... -lXm -lXp -lXt -lX11 ...

The Xm library now needs Xp which is new to me, Lesstif and all the old Motif`s I used didn`t need Xp.

erik