[lsb-discuss] X interfaces question

Wichmann, Mats D mats.d.wichmann at intel.com
Mon Oct 30 13:27:54 PST 2006



	/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x4aa): In function
	: undefined reference to `_XEditResGet16' 
	Any idea how to take care of the above errors.  

To be blunt, there isn't going to be much hope for resolving this,
we've been down this road.
Motif is not an LSB library, so you need to make sure you're using
a static build of Motif - that's happening already as you see the
reference in the output.  When you're using a static archive, there are 
no built-in dependencies recorded on other libraries like the dt_needed'
does for shared objects. So you'll need to find out what those 
dependencies are and add them to the link line.  That list is going to 
include Xprint, which accounts for the Xp symbols you see.  Once 
you add this library, you will see more unresolved symbols, and so on.
Eventually you'll be left with a list of X private symbols which,
since they're not intended for application usage, are not part of
the LSB ABI set.  You already see a list of those in the
_XEditRes* undefineds in your listing.  It's okay for other
libraries to reference these; if all the libraries in use were in
the LSB there would be no inconsistency because then this
sort of usage would just be an "implementation detail" that would
not be in the LSB stub libraries, and thus would not cause problems
during the link.  However, since you're dealing with a mixed situation
of some LSB, some non-LSB libraries, they will cause a problem,
and we don't presently know of a solution.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/lsb-discuss/attachments/20061030/6cf85d32/attachment.htm 

More information about the lsb-discuss mailing list