Frank Liu wrote (in a message from Monday 31)
> I am trying to enabl shared Xfontcache, but "xfs" fails to link:
> ...
> gcc -o xfs -O2 -L../../exports/lib difs/libdifs.a difs/libdifs.a
> os/libos.a -L/usr/X11R6/lib -lsocket -L../../exports/lib -lXfont
> -lfntstubs -lfreetype -lXfontcache -lm -lz -lsocket -Wl,-rpath,/usr/X11R6/lib
> ../../exports/lib/libXfontcache.so: undefined reference to `XextAddDisplay'
> ../../exports/lib/libXfontcache.so: undefined reference to `XextFindDisplay'
> ../../exports/lib/libXfontcache.so: undefined reference to `_XReply'
> ../../exports/lib/libXfontcache.so: undefined reference to
> `XextCreateExtension'../../exports/lib/libXfontcache.so: undefined reference to
> `_XFlush'
> ../../exports/lib/libXfontcache.so: undefined reference to `XextRemoveDisplay'
> ../../exports/lib/libXfontcache.so: undefined reference to `XMissingExtension'
>
> I guess I need something like
> #define SharedXfontcacheReqs $(LDPRELIB) $(EXTENSIONLIB) $(XLIB)
> in my library.tmpl file???
Yes, or in the OS specific .tmpl file. But it's also needed to add the
missing Xext lib to the xfs makefile, otherwise it can probably not
build on systems without shared libs (unless the referenced symbols
are not used at all in the call tree).
> btw, I am testing to build all libaries in shared. It seems no one
> has done this test yet. Any gottas? Any other "Shared...Reqs" that
> you know are missing?
Before the 4.3.0 release I did a sweep over bsdLib.tmpl to try to make
sure it lists all interlibrary dependencies. Apparently I missed that
one.
Matthieu
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel