Max,

This information is also in the lesstif FAQ at /sw/LessTif/FAQ and
/sw/LessTif/doc/FAQ.html. I remember mentioning this two days ago in the
"XFree86 version and grace" thread on fink-users. The FAQ even mentions
it in the same way we are seeing it, with "DropSiteManager". 

The problem seems to be runtime linking, because you can take the same
binary (xmgrace in this case, but it is the same for nedit) and run it
in the presence of libXt from XFree86-4.1.0: It works; run it with libXt
from XFree86-4.2.0: Error. It doesn't matter with which version you link
it at compile time.

OTOH, Apple's linker does not respect the command line link order
either, as can be seen from the following output from the nedit build:

cc -O2 -no-cpp-precomp -I/usr/X11R6/include  -I/sw/include nc.o
../util/libNUtil.a -L/sw/lib -lXm -L/usr/X11R6/lib -lXpm -lXext -lXt
-lSM -lICE -lX11 -o nc
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may
result in errors or different symbols being used
symbol _vendorShellClassRec used from dynamic library
/usr/X11R6/lib/libXt.dylib(Vendor.o) not from earlier dynamic library 
/sw/LessTif/Motif2.0/lib/libXm.2.dylib(Vendor.lo)
symbol _vendorShellWidgetClass used from dynamic library
/usr/X11R6/lib/libXt.dylib(Vendor.o) not from earlier dynamic library 
/sw/LessTif/Motif2.0/lib/libXm.2.dylib(Vendor.lo)

-- 
Martin

Jeff Whitaker wrote:
> 
> Max:  I saw this too.  The problem is, we are linking the libs in the
> right order.  It looks like the linker is not respecting that.
> 
> -Jeff
> 
> On Fri, 25 Jan 2002, Max Horn wrote:
> 
> > I searched the net and found this:
> >
> > http://www.perchine.com/dyp/x/motif-faq/part9/faq-doc-24.html
> >
> > To quote it:
> >
> >
> > >269) Why do I get "Error: attempt to add non-widget child "dsm" to parent"?
> > >
> > >[Last modified: May 95]
> > >
> > >Answer: You're linking your libraries in the wrong order.  You must link -lXm
> > >*before* -lXt.
> > >
> > >Thanks to Ken Lee, [EMAIL PROTECTED]
> > >
> > >Ken Sall ([EMAIL PROTECTED]) adds: This same error occurs if you combine Motif and
> > >Athena widgets in the same application. If you link with "-lXaw" before "-
> > >lXm", you get the runtime error. However, if you switch the order of the two
> > >libraries, there is no problem. For example:
> > >
> > >         cc mothena.c -o mothena -lXm -lXaw -lXt -lXmu -lX11
> > >
> >
> >
> > In retrospect, I seem to remember something like this happened
> > before. I am not yet sure what exactly we have to do to fix this:
> > i.e. whether change lesstif, XFree, or the affected packages. But at
> > least now we've got a pointer.

_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to