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
Thanks, "append-flags -include errno.h" does the trick.