Bug 4871 - Fails to build with ld --no-add-needed
Status: RESOLVED FIXED
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: unspecified
Hardware: PC Linux
: P3 normal
Assignee: Dana Jansens
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2011-01-08 08:39 EST by Felix Geyer
Modified: 2011-08-30 11:59:33 EDT
0 users

See Also:


Attachments
Patch to link gdm-control against Xau (701 bytes, application/x-empty)
2011-01-08 08:39 EST, Felix Geyer

Description Felix Geyer 2011-01-08 08:39:37 EST
Created attachment 2553 [details]
Patch to link gdm-control against Xau

Openbox 3.4.11.1 and the current trunk version fails to build with ld --no-add-needed.
--no-add-needed will be the default for the next Ubuntu version and Fedora.
For more information: https://fedoraproject.org/wiki/UnderstandingDSOLinkChange


Build log:
/bin/bash ./libtool --silent --tag=CC --mode=link gcc  -Wall -g -O2 -DNDEBUG -DG_DISABLE_ASSERT -fno-strict-aliasing  -Wl,-Bsymbolic-functions -o tools/gdm-control/gdm-control  tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.o -lSM -lICE  -lX11 -lglib-2.0   
/usr/bin/ld: tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.o: undefined reference to symbol 'XauReadAuth'
/usr/bin/ld: note: 'XauReadAuth' is defined in DSO /usr/lib/libXau.so.6 so try adding it to the linker command line
/usr/lib/libXau.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [tools/gdm-control/gdm-control] Error 1
Comment 1 Dana Jansens 2011-08-30 11:59:33 EDT
This was apparently also reported independently by someone else, and has been fixed.  Should be working correctly in the 3.5.0 release.  Thanks!