Re: compile fails: _XSetIOErrorHandler defined in indirectly referenced dynamic library /usr/X11R6/lib/libX11.6.dylib
Re: compile fails: _XSetIOErrorHandler defined in indirectly referenced dynamic library /usr/X11R6/lib/libX11.6.dylib
- Subject: Re: compile fails: _XSetIOErrorHandler defined in indirectly referenced dynamic library /usr/X11R6/lib/libX11.6.dylib
- From: Greg Parker <email@hidden>
- Date: Wed, 16 Jul 2003 14:55:17 -0700
On Wednesday, July 16, 2003, at 02:08 PM, Mark Stosberg wrote:
I'm working on compiling GnoTime. It's really nice time
tracking/project
management tool which I'd like to make a fink package for. I recommend
it if you've been a fan of "KArm", the KDE time tracker.
The compilation is failing with this message:
ld: err.o illegal reference to symbol: _XSetIOErrorHandler defined in
indirectly referenced dynamic library /usr/X11R6/lib/libX11.
Add `-lX11` to GnoTime's link command.
Mac OS X's two-level namespace linker requires more libraries to be
specified on the link line than some other linkers. In your case,
GnoTime is linking to some library libSomething and libSomething links
to libX11. GnoTime also uses XSetIOErrorHandler from libX11. Some
linkers allow this to succeed, but Mac OS X doesn't allow symbols to be
referenced indirectly through some intermediate library; if you want to
use a symbol from a library, you must link to that library directly.
(Those of you porting UNIX software should know about the list
email@hidden . Non-X11 porting questions may get better
answers there.)
--
Greg Parker email@hidden Java & Objective-C
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.