XDM and -rdynamic trouble
jengelh at linux01.gwdg.de
Mon Jul 24 13:37:49 PDT 2006
I have the problem that XDM overrides a pam module's symbol because xdm is
compiled/linked with -rdynamic. Now, there are a number of solutions like
- renaming the offending symbol in XDM or in the pam module
- compiling the pam module with GCC 4.x using -fvisibility=hidden
(to make the symbol local)
- making the offending symbol "local" in either XDM or the module by use
of hexediting where GCC 4 is not present
- killing -rdynamic in xdm's makefile
Are there any better solutions?
-rdynamic exists for long time and was/is even in the ol' XFree86
(4.3.0) sources, even though the changelog from xdm-X11R7.1-1.0.4.tar.bz2
says it was added in 2005.
2005-11-13 Alan Coopersmith <alan.coopersmith at sun.com>
Add --enable-dynamic-greeter flag to allow choosing whether
greeter should be built into xdm binary or dynamically loaded
Add -rdynamic flag to link options when using gcc with dynamic
greeter to allow greeter object to reference symbols in xdm.
Is anyone really using dynamic greeter libs? And if -rdynamic is to say,
should not the exported symbols at least be prefixed?
More information about the xorg