emerge for cdcd-0.5.0 fails with a linking error. This is from /usr/portage synched on the 11th of July, 2002. With ncurses specified in USE variable: >>> emerge media-sound/cdcd-0.5.0 to / [...] checking for tputs in -lcurses... yes checking for readline in -lreadline... yes [...] gcc -DHAVE_CONFIG_H -I. -I. -I. -march=pentium -O2 -pipe -c cdcd.c cdcd.c: In function `cdcd_completion': cdcd.c:839: warning: assignment makes pointer from integer without a cast cdcd.c: In function `main': cdcd.c:1671: warning: assignment from incompatible pointer type gcc -march=pentium -O2 -pipe -o cdcd cdcd.o -lcurses -lreadline -lcdaudio /usr/lib/gcc-lib/i586-pc-linux-gnu/3.1/../../../libreadline.a(display.o): In function `rl_redisplay': display.o(.text+0x8b1): undefined reference to `tputs' [...] collect2: ld returned 1 exit status make: *** [cdcd] Error 1 Problem seems to be a library ordering issue. On my system at least, the following is an effective workaround: # ebuild /usr/portage/media-sound/cdcd/cdcd-0.5.0.ebuild unpack # cd /var/tmp/portage/cdcd-0.5.0/work/cdcd-0.5.0 # patch <<'_end_' *** configure.in.orig Sat Jul 13 04:19:25 2002 --- configure.in Sat Jul 13 04:19:01 2002 *************** *** 58,62 **** fi fi ! LIBS="$CURSES $READLINE $CDAUDIO_LIBS" AC_OUTPUT(Makefile) --- 58,62 ---- fi fi ! LIBS="$READLINE $CURSES $CDAUDIO_LIBS" AC_OUTPUT(Makefile) _end_ # ebuild /usr/portage/media-sound/cdcd/cdcd-0.5.0.ebuild merge
it's the perfect workaround, in fact,
Commited, thanks for the find and fix!