XDM and -rdynamic trouble

Jan Engelhardt jengelh at linux01.gwdg.de
Mon Jul 24 13:37:49 PDT 2006

Hello list,

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>
        * greeter/Makefile.am:
        Add --enable-dynamic-greeter flag to allow choosing whether
        greeter should be built into xdm binary or dynamically loaded
        libXdmGreet.so object.
        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?

Jan Engelhardt

More information about the xorg mailing list