Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334099 - app-cdr/cdrdao fails to compile (/usr/include/linux/../scsi/scsi.h:152: error: ‘u8’ does not name a type)
Summary: app-cdr/cdrdao fails to compile (/usr/include/linux/../scsi/scsi.h:152: error...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-23 16:47 UTC by Johannes Bauer
Modified: 2012-10-27 19:20 UTC (History)
2 users (show)

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


Attachments
The build log of the failed app-cdr/cdrdao-1.2.3 build process (build.log,27.81 KB, text/plain)
2010-08-24 08:11 UTC, Johannes Bauer
Details
complete build.log (build.log,27.94 KB, text/plain)
2010-09-01 22:41 UTC, bugsgentoo
Details
cave info cdrdao (cave_info_cdrdao.txt,21.30 KB, text/plain)
2010-10-18 02:48 UTC, Aleksandar Petrinic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Bauer 2010-08-23 16:47:35 UTC
When trying to emerge app-cdr/cdrdao, I receive the following error:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../trackdb -I./../paranoia    -DDRIVER_TABLE_FILE=\"/usr/share/cdrdao/drivers\" -O2 -pipe -march=nocona -c -o sg_err.o sg_err.cc
sg_err.cc:29:1: warning: "COMMAND_SIZE" redefined
In file included from sg_err.h:3,
                 from sg_err.cc:3:
/usr/include/linux/../scsi/scsi.h:167:1: warning: this is the location of the previous definition
In file included from sg_err.h:3,
                 from sg_err.cc:3:
/usr/include/linux/../scsi/scsi.h:152: error: ‘u8’ does not name a type
/usr/include/linux/../scsi/scsi.h:153: error: ‘u8’ does not name a type
/usr/include/linux/../scsi/scsi.h:154: error: ‘u8’ does not name a type
/usr/include/linux/../scsi/scsi.h:155: error: ‘u8’ does not name a type
/usr/include/linux/../scsi/scsi.h: In function ‘unsigned int scsi_varlen_cdb_length(const void*)’:
/usr/include/linux/../scsi/scsi.h:163: error: ‘struct scsi_varlen_cdb_hdr’ has no member named ‘additional_cdb_length’
sg_err.cc: At global scope:
sg_err.cc:26: error: ‘const unsigned char scsi_command_size [8]’ redeclared as different kind of symbol
/usr/include/linux/../scsi/scsi.h:170: error: previous declaration of ‘unsigned int scsi_command_size(const unsigned char*)’
sg_err.cc: In function ‘void sg_print_command(const unsigned char*)’:
sg_err.cc:129: error: pointer to a function used in arithmetic
sg_err.cc:129: error: invalid conversion from ‘unsigned int (*)(const unsigned char*)’ to ‘int’
sg_err.cc: In function ‘int sg_get_command_size(unsigned char)’:
sg_err.cc:663: error: pointer to a function used in arithmetic
sg_err.cc:663: error: invalid conversion from ‘unsigned int (*)(const unsigned char*)’ to ‘int’
make[2]: *** [sg_err.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/app-cdr/cdrdao-1.2.3/work/cdrdao-1.2.3/dao'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-cdr/cdrdao-1.2.3/work/cdrdao-1.2.3'
make: *** [all] Error 2
 * ERROR: app-cdr/cdrdao-1.2.3 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2335:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =app-cdr/cdrdao-1.2.3',
 * the complete build log and the output of 'emerge -pqv =app-cdr/cdrdao-1.2.3'.
 * The complete build log is located at '/var/tmp/portage/app-cdr/cdrdao-1.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-cdr/cdrdao-1.2.3/temp/environment'.
 * S: '/var/tmp/portage/app-cdr/cdrdao-1.2.3/work/cdrdao-1.2.3'

>>> Failed to emerge app-cdr/cdrdao-1.2.3, Log file:

>>>  '/var/tmp/portage/app-cdr/cdrdao-1.2.3/temp/build.log'

 * Messages for package app-cdr/cdrdao-1.2.3:

 * ERROR: app-cdr/cdrdao-1.2.3 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2335:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =app-cdr/cdrdao-1.2.3',
 * the complete build log and the output of 'emerge -pqv =app-cdr/cdrdao-1.2.3'.
 * The complete build log is located at '/var/tmp/portage/app-cdr/cdrdao-1.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-cdr/cdrdao-1.2.3/temp/environment'.
 * S: '/var/tmp/portage/app-cdr/cdrdao-1.2.3/work/cdrdao-1.2.3'


Reproducible: Always




Kernel: Linux joequad 2.6.34 #8 SMP PREEMPT Wed Jun 9 18:45:45 CEST 2010 x86_64 Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz GenuineIntel GNU/Linux

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.34 x86_64)
=================================================================
System uname: Linux-2.6.34-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 23 Aug 2010 13:30:04 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/hollow /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac acl acpi aiglx alsa amd64 apache2 avi bash-completion berkdb bluetooth bzip2 cairo cddax cddb cdparanoia cdr cli cracklib crypt cups cxx dbus dri dts dvb dvd dvdr dvdread encode exif fbcon ffmpeg flac foomaticdb gd gdbm gimp gimpprint gnome gpm gstreamer gtk gtk2 hbci iconv ipv6 jpeg kpathsea kqemu lirc matroska mbrola mikmod mmx mmxext mng modules mp3 mpeg multilib ncurses nls nodrm nptl nptlonly nvidia ogg oggvorbis opengl openmp openntpd pam pcre png postgres postscript ppds pppd python qt3support qt4 readline recode reflection replytolist rtc rtsp samba sasl session smartcard smp snmp spl sqlite3 sse sse2 ssl subversion svg sysfs tcpd theora threads tiff timidity truetype unicode usb v4l v4l2 vorbis wavpack x264 xanim xinerama xmms xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dane Smith (RETIRED) gentoo-dev 2010-08-23 23:00:14 UTC
Johannes,
Can you please attach a full build.log? It will be located in /var/tmp/portage/app-cdr/cdrdao-1.2.3/temp/build.log

Thanks.
Comment 2 Johannes Bauer 2010-08-24 08:11:31 UTC
Created attachment 244345 [details]
The build log of the failed app-cdr/cdrdao-1.2.3 build process

Hi Dane,

surely I can - here it is :-)

Regards,
Comment 3 bugsgentoo 2010-09-01 22:41:20 UTC
Created attachment 245699 [details]
complete build.log

My error message are slightly different but I'm not sure if I should file a new bug or not so I just post it here for now.

cdrdao-1.2.3 fail to build, 1.2.3-r1 build OK.

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.12.1-r1, 2.6.34-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5750_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 31 Aug 2010 19:00:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -mtune=core2 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -mtune=core2 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/yp-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cups cxx dbus directfb dri dts dvd dvdr emacs emboss encode exif fam fbcon firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd pulseaudio python qt3support qt4 readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Johannes Bauer 2010-09-26 18:44:06 UTC
Just wanted to say: app-cdr/cdrdao-1.2.3_rc2 also fails to build. It's quite annoying, I'd throw it out but Gnome appearently depends on it. Here it goes:



x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I./../trackdb -I./../paranoia    -DDRIVER_TABLE_FILE=\"/usr/share/cdrdao/drivers\" -O2 -pipe -march=nocona -c -o sg_err.o sg_err.cc
sg_err.cc:29:1: warning: "COMMAND_SIZE" redefined
In file included from sg_err.h:3,
                 from sg_err.cc:3:
/usr/include/linux/../scsi/scsi.h:167:1: warning: this is the location of the previous definition
In file included from sg_err.h:3,
                 from sg_err.cc:3:
/usr/include/linux/../scsi/scsi.h:152: error: ‘u8’ does not name a type
/usr/include/linux/../scsi/scsi.h:153: error: ‘u8’ does not name a type
/usr/include/linux/../scsi/scsi.h:154: error: ‘u8’ does not name a type
/usr/include/linux/../scsi/scsi.h:155: error: ‘u8’ does not name a type
/usr/include/linux/../scsi/scsi.h: In function ‘unsigned int scsi_varlen_cdb_length(const void*)’:
/usr/include/linux/../scsi/scsi.h:163: error: ‘struct scsi_varlen_cdb_hdr’ has no member named ‘additional_cdb_length’
sg_err.cc: At global scope:
sg_err.cc:26: error: ‘const unsigned char scsi_command_size [8]’ redeclared as different kind of symbol
/usr/include/linux/../scsi/scsi.h:170: error: previous declaration of ‘unsigned int scsi_command_size(const unsigned char*)’
sg_err.cc: In function ‘void sg_print_command(const unsigned char*)’:
sg_err.cc:129: error: pointer to a function used in arithmetic
sg_err.cc:129: error: invalid conversion from ‘unsigned int (*)(const unsigned char*)’ to ‘int’
sg_err.cc: In function ‘int sg_get_command_size(unsigned char)’:
sg_err.cc:644: error: pointer to a function used in arithmetic
sg_err.cc:644: error: invalid conversion from ‘unsigned int (*)(const unsigned char*)’ to ‘int’
make[2]: *** [sg_err.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-cdr/cdrdao-1.2.3_rc2/work/cdrdao-1.2.3rc2/dao'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-cdr/cdrdao-1.2.3_rc2/work/cdrdao-1.2.3rc2'
make: *** [all] Error 2
 * ERROR: app-cdr/cdrdao-1.2.3_rc2 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2894:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =app-cdr/cdrdao-1.2.3_rc2',
 * the complete build log and the output of 'emerge -pqv =app-cdr/cdrdao-1.2.3_rc2'.
 * The complete build log is located at '/var/tmp/portage/app-cdr/cdrdao-1.2.3_rc2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-cdr/cdrdao-1.2.3_rc2/temp/environment'.
 * S: '/var/tmp/portage/app-cdr/cdrdao-1.2.3_rc2/work/cdrdao-1.2.3rc2'
Comment 5 Aleksandar Petrinic 2010-10-18 02:48:06 UTC
Created attachment 251091 [details]
cave info cdrdao
Comment 6 Aleksandar Petrinic 2010-10-18 02:50:05 UTC
I hit the #3 bug.
cdrdao-1.2.3-r1 compiled fine.
Comment 7 Pacho Ramos gentoo-dev 2012-10-27 19:20:49 UTC
please retest with 1.2.3-r1