Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 4904
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Ahlberg (RETIRED) <aliz@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sam Yates <sam@quux.dropbear.id.au>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 4904 depends on: Show dependency tree
Bug 4904 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-07-12 03:26 0000
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 From Seemant Kulleen (RETIRED) 2002-07-12 12:25:19 0000 -------
it's the perfect workaround, in fact,

------- Comment #2 From Daniel Ahlberg (RETIRED) 2002-07-14 08:27:34 0000 -------
Commited, thanks for the find and fix! 

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug