[ 0%] Building C object wodim/CMakeFiles/wodimstuff.dir/cd_misc.o [ 0%] [ 1%] Building C object libusal/CMakeFiles/usal.dir/usalsettarget.o In file included from /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/wodim/cd_misc.c:38: /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/wodim/../include/schily.h:193: error: conflicting types for ‘getline’ /usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here Building C object libunls/CMakeFiles/unls.dir/nls_base.o make[2]: *** [wodim/CMakeFiles/wodimstuff.dir/cd_misc.o] Error 1 make[1]: *** [wodim/CMakeFiles/wodimstuff.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 1%] Building C object libusal/CMakeFiles/usal.dir/usaltimes.o [ 2%] Building C object libunls/CMakeFiles/unls.dir/nls_config.o [ 3%] Building C object libusal/CMakeFiles/usal.dir/scsierrs.o In file included from /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/libusal/scsierrs.c:39: /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/libusal/../include/schily.h:119: error: conflicting types for ‘fexecve’ /usr/include/unistd.h:524: note: previous declaration of ‘fexecve’ was here /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/libusal/../include/schily.h:193: error: conflicting types for ‘getline’ /usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here [ 3%] Building C object libusal/CMakeFiles/usal.dir/scsihack.o make[2]: *** [libusal/CMakeFiles/usal.dir/scsierrs.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 3%] Building C object libunls/CMakeFiles/unls.dir/nls_cp10000.o In file included from /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/libusal/scsihack.c:66: /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/libusal/../include/schily.h:119: error: conflicting types for ‘fexecve’ /usr/include/unistd.h:524: note: previous declaration of ‘fexecve’ was here /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/libusal/../include/schily.h:193: error: conflicting types for ‘getline’ /usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here
Looks like the same problems with fexecve and getdelim. In file included from /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/libusal/scsierrs.c:39: /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/libusal/../include/schily.h:119: error: conflicting types for ‘fexecve’ /usr/include/unistd.h:524: note: previous declaration of ‘fexecve’ was here and Building C object wodim/CMakeFiles/wodim.dir/cue.o /var/tmp/portage/app-cdr/cdrkit-1.1.9-r1/work/cdrkit-1.1.9/wodim/cue.c:256: error: conflicting types for ‘getdelim’ /usr/include/stdio.h:641: note: previous declaration of ‘getdelim’ was here The terribly hacky solution of modifying function names seems to work around the problem. Updating prototypes to match the Real Thing would probably be better (using actual libc routines would be better...).
Created attachment 191945 [details, diff] Allow cdrkit to be compiled with glibc 2.10 This patch is from the Paldo distribution: http://www.paldo.org/index-section-packages-page-main-releaseid-125068.html
*** Bug 270629 has been marked as a duplicate of this bug. ***
With this patch I'm able to compile 1.1.9-r1 with glibc 2.10, thank you very much. I'll attach a modified ebuild, which can be used for an local overlay to apply the patch.
Created attachment 192139 [details] ebuild to make use of the patch Newb tut: echo PORTAGE_OVERLAY=/usr/local/portage/overlay/ >> /etc/make.conf mkdir -p /usr/local/portage/overlay/app-cdr/cdrkit/files place this ebuild in /usr/local/portage/overlay/app-cdr/cdrkit/ run 'ebuild /usr/local/portage/overlay/app-cdr/cdrkit/cdrkit-1.1.9-r1.ebuild digest' place the patch from this bugzilla entry into /usr/local/portage/overlay/app-cdr/cdrkit/files emerge cdrkit :)
+ 24 May 2009; Peter Alfredsen <loki_val@gentoo.org> cdrkit-1.1.9-r1.ebuild, + +files/cdrkit-1.1.9-glibc-2.10.patch: + Fix build with glibc-2.10, bug 191945. Thanks to Curtis Magyar + <curtm4n@gmail.com> for getting us the patch from Paldo linux and to + Jonathan Adamczewski <jadamcze@utas.edu.au> for reporting. +