Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 36527

Summary: rplayd does not build when emerging rplay
Product: Gentoo Linux Reporter: Jason Wever (RETIRED) <weeve>
Component: Current packagesAssignee: Tavis Ormandy (RETIRED) <taviso>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jason Wever (RETIRED) gentoo-dev 2003-12-26 08:01:51 UTC
When emerging rplay, rplayd does not succesfully link, but the ebuild will sucessfully emerge.

The error I get is;

gcc -c  -I. -I../include -I. -I./../include -I./../lib -I./../adpcm -I./../gsm -
DHAVE_CONFIG_H -DRPLAY_CONF=\"/etc/rplay.conf\" -DRPLAY_HOSTS=\"/etc/rplay.hosts
\" -DRPLAY_SERVERS=\"/etc/rplay.servers\" -DRPLAY_HELPERS=\"/etc/rplay.helpers\"
 -DRPLAY_CACHE=\"/tmp/.rplay-cache\" -DRPLAY_LOG=\"/tmp/rplay.log\" -DRPLAYDRC=\
"\~/.rplaydrc\" -mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe xhash.c
gcc -o rplayd audio.o buffer.o cache.o cdrom.o command.o connection.o flange.o h
elper.o host.o misc.o native.o rplayd.o server.o sound.o spool.o timer.o ulaw.o
xhash.o  -L../librplay -lrplay -L../lib -lrp -L../adpcm -ladpcm -L../gsm -lgsm
  -lm
misc.o(.text+0xac): In function `udp_socket':
: undefined reference to `errno'
misc.o(.text+0xb4): In function `udp_socket':
: undefined reference to `errno'
misc.o(.text+0xdc): In function `udp_socket':
: undefined reference to `errno'
misc.o(.text+0xe4): In function `udp_socket':
: undefined reference to `errno'
misc.o(.text+0x170): In function `tcp_socket':
: undefined reference to `errno'
misc.o(.text+0x19c): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make[1]: *** [rplayd] Error 1


This happens on sparc and x86
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2003-12-26 08:38:08 UTC
Thanks, "append-flags -include errno.h" does the trick.