Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4904 - cdcd-0.5.0 fails to build in gentoo 1.3b
Summary: cdcd-0.5.0 fails to build in gentoo 1.3b
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-12 03:26 UTC by Sam Yates
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Yates 2002-07-12 03:26:41 UTC
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
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-12 12:25:19 UTC
it's the perfect workaround, in fact,
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2002-07-14 08:27:34 UTC
Commited, thanks for the find and fix!