Bug 83112 - app-emacs/gnuserv emerge fails, either stable version
Bug#: 83112 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: emacs@gentoo.org Reported By: adsmith@math.duke.edu
Component: Applications
URL: 
Summary: app-emacs/gnuserv emerge fails, either stable version
Keywords:  
Status Whiteboard: 
Opened: 2005-02-23 15:21 0000
Description:   Opened: 2005-02-23 15:21 0000
emerge gnuserv fails here.  This example is using FEATURES="-distcc -ccache"
and MAKEOPTS="-j1",  for simplicity:

(configure stuff... looks okay)
gcc -c -I. -I. -DHAVE_CONFIG_H -I/usr/X11R6/include -O2 -march=athlon-xp
-fomit-frame-pointer -pipe gnuserv.c
gcc -c -I. -I. -DHAVE_CONFIG_H -I/usr/X11R6/include -O2 -march=athlon-xp
-fomit-frame-pointer -pipe getopt.c
gcc -c -I. -I. -DHAVE_CONFIG_H -I/usr/X11R6/include -O2 -march=athlon-xp
-fomit-frame-pointer -pipe gnuslib.c
gcc -I/usr/X11R6/include -O2 -march=athlon-xp -fomit-frame-pointer -pipe
-Wl,-O1,--enable-new-dtags -o gnuserv gnuserv.o gnuslib.o -lnsl  -L -lXau
gnuserv.o(.text+0x685): In function `setup_table':
: undefined reference to `XauGetAuthByAddr'
gnuslib.o(.text+0x43f): In function `connect_to_internet_server':
: undefined reference to `XauGetAuthByAddr'
collect2: ld returned 1 exit status
make: *** [gnuserv] Error 1

!!! ERROR: app-emacs/gnuserv-3.12.5 failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

------- Comment #1 From Abraham Smith 2005-02-25 15:27:13 0000 -------
Note: I have sucessfully compiled with LDFLAGS disabled.  This was the same
LDFLAGS problem that occurs with emacs.  E.G., bug 77430

------- Comment #2 From Mamoru KOMACHI (RETIRED) 2005-05-03 04:03:38 0000 -------
Okay, thanks for the bug report. I unset LDFLAGS in the ebuilds.