Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54632 - cdrdao-1.1.8 fails to compile with linux-headers-2.6.7
Summary: cdrdao-1.1.8 fails to compile with linux-headers-2.6.7
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Lars Weiler (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-21 06:40 UTC by Selecter
Modified: 2004-07-13 05:03 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 Selecter 2004-06-21 06:40:19 UTC
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../trackdb -I./../paranoia -I./../scsilib/export -I./../scsilib/export/libschily   -DDRIVER_TABLE_FILE=\"/usr/share/cdrdao/drivers\" -O2 -march=pentium4 -pipe -c -o dao.o `test -f 'dao.cc' || echo './'`dao.cc
In file included from /usr/include/asm/processor.h:20,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/sysctl.h:23,
                 from dao.cc:35:
/usr/include/asm/system.h:247: error: parse error before `new'
/usr/include/asm/system.h: In function `long unsigned int __cmpxchg(...)':
/usr/include/asm/system.h:250: error: `size' undeclared (first use this
   function)
/usr/include/asm/system.h:250: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
/usr/include/asm/system.h:254: error: parse error before `)' token
/usr/include/asm/system.h:260: error: parse error before `)' token
/usr/include/asm/system.h:266: error: parse error before `)' token
/usr/include/asm/system.h:270: error: `old' undeclared (first use this
   function)
In file included from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/sysctl.h:23,
                 from dao.cc:35:
/usr/include/asm/processor.h: In function `void load_esp0(tss_struct*,
   thread_struct*)':
/usr/include/asm/processor.h:461: error: `unlikely' undeclared (first use this
   function)
In file included from /usr/include/linux/list.h:5,
                 from /usr/include/linux/sysctl.h:23,
                 from dao.cc:35:
/usr/include/linux/prefetch.h: In function `void prefetch_range(void*, unsigned
   int)':
/usr/include/linux/prefetch.h:62: error: pointer of type `void *' used in
   arithmetic
/usr/include/linux/prefetch.h:62: error: invalid conversion from `void*' to `
   char*'
/usr/include/linux/prefetch.h:64: error: invalid conversion from `void*' to `
   char*'
In file included from /usr/include/linux/sysctl.h:23,
                 from dao.cc:35:
/usr/include/linux/list.h: At global scope:
/usr/include/linux/list.h:45: error: parse error before `new'
/usr/include/linux/list.h: In function `void __list_add(...)':
/usr/include/linux/list.h:49: error: `next' undeclared (first use this
   function)
/usr/include/linux/list.h:49: error: parse error before `;' token
/usr/include/linux/list.h:52: error: `prev' undeclared (first use this
   function)
/usr/include/linux/list.h:52: error: parse error before `;' token
/usr/include/linux/list.h: At global scope:
/usr/include/linux/list.h:63: error: parse error before `new'
/usr/include/linux/list.h: In function `void list_add(...)':
/usr/include/linux/list.h:65: error: parse error before `,' token
/usr/include/linux/list.h: At global scope:
/usr/include/linux/list.h:76: error: parse error before `new'
/usr/include/linux/list.h: In function `void list_add_tail(...)':
/usr/include/linux/list.h:78: error: parse error before `,' token
/usr/include/linux/list.h: At global scope:
/usr/include/linux/list.h:87: error: parse error before `new'
/usr/include/linux/list.h: In function `void __list_add_rcu(...)':
/usr/include/linux/list.h:90: error: parse error before `->' token
/usr/include/linux/list.h:93: error: parse error before `;' token
/usr/include/linux/list.h:94: error: parse error before `;' token
/usr/include/linux/list.h: At global scope:
/usr/include/linux/list.h:113: error: parse error before `new'
/usr/include/linux/list.h: In function `void list_add_rcu(...)':
/usr/include/linux/list.h:115: error: parse error before `,' token
/usr/include/linux/list.h: At global scope:
/usr/include/linux/list.h:134: error: parse error before `new'
/usr/include/linux/list.h: In function `void list_add_tail_rcu(...)':
/usr/include/linux/list.h:137: error: parse error before `,' token
/usr/include/linux/list.h: In function `void list_del(list_head*)':
/usr/include/linux/list.h:162: error: invalid conversion from `void*' to `
   list_head*'
/usr/include/linux/list.h:163: error: invalid conversion from `void*' to `
   list_head*'
/usr/include/linux/list.h: In function `void list_del_rcu(list_head*)':
/usr/include/linux/list.h:193: error: invalid conversion from `void*' to `
   list_head*'
/usr/include/linux/list.h: In function `void hlist_del(hlist_node*)':
/usr/include/linux/list.h:517: error: invalid conversion from `void*' to `
   hlist_node*'
/usr/include/linux/list.h:518: error: invalid conversion from `void*' to `
   hlist_node**'
/usr/include/linux/list.h: In function `void hlist_del_rcu(hlist_node*)':
/usr/include/linux/list.h:543: error: invalid conversion from `void*' to `
   hlist_node**'
make[2]: *** [dao.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/cdrdao-1.1.8/work/cdrdao-1.1.8/dao'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cdrdao-1.1.8/work/cdrdao-1.1.8'
make: *** [all] Error 2

!!! ERROR: app-cdr/cdrdao-1.1.8 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)

Reproducible: Always
Steps to Reproduce:




Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo)
=================================================================
System uname: 2.6.7-gentoo i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo
http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 arts avi cdr crypt cups encode esd gdbm gif gpm gtk
gtk2 imlib java jpeg kde libg++ libwww linguas_ru mad mikmod mmx motif mozilla
mpeg ncurses nls nptl oggvorbis opengl pam pdflib perl png ppds python qt
quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml xml2 xmms
xv zlib"
Comment 1 Karol Wojtaszek (RETIRED) gentoo-dev 2004-06-23 13:03:23 UTC
No problems with new version. See Bug#: 54312
Comment 2 Selecter 2004-06-28 02:39:44 UTC
Confirm successful build of cdrdao 1.1.9 with headers-2.6.7
Comment 3 Christian Schmidt 2004-07-13 05:03:45 UTC
It doesn't compile against linux26-headers-2.6.7-r1, either. This is because

a) several bugs in the headers (mainly CPU and optimization specific)
b) the use of "new" as a variable name in list.h, which gcc 3.4.1 apparently doesn't like
c) the use of void* arithmetic.

To prepare for the c) problem, I'd recommend adding

# /usr/include/list.h from linux26-headers uses void* arithmetic
CXXFLAGS="${CXXFLAGS} -fpermissive"

to the ebuild script. This and modified includes makes it compile for me with linux26-headers-2.6.7-r1, gcc-3.4.1-r1, glibc-2.3.4.20040619.