<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>162144</bug_id>
          
          <creation_ts>2007-01-15 03:18 0000</creation_ts>
          <short_desc>sys-block/unieject-5.3.2 fails with linux-headers-2.6.19.2 due to -std=c99</short_desc>
          <delta_ts>2007-06-28 13:29:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>159304</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>dirtyepic@gentoo.org</reporter>
          <assigned_to>toolchain@gentoo.org</assigned_to>
          <cc>arnestaecker@web.de</cc>
    
    <cc>flameeyes@gentoo.org</cc>
    
    <cc>projects.gg.aaron@gmail.com</cc>
    
    <cc>uberlord@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-01-15 03:18:19 0000</bug_when>
            <thetext>i686-pc-linux-gnu-gcc -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -DSYSCONFDIR=\&quot;/etc\&quot; -I. -I. -I.  -I./lib       -std=c99 -O2 -ggdb -march=prescott -fomit-frame-pointer -fno-ident -pipe -fvisibility=hidden -c -o unieject-utils.o `test -f &apos;lib/utils.c&apos; || echo &apos;./&apos;`lib/utils.c
In file included from /usr/include/linux/cdrom.h:15,
                 from lib/lock.c:31:
/usr/include/asm/byteorder.h: In function &apos;___arch__swab64&apos;:
/usr/include/asm/byteorder.h:38: error: expected &apos;)&apos; before &apos;:&apos; token
In file included from /usr/include/asm/byteorder.h:54,
                 from /usr/include/linux/cdrom.h:15,
                 from lib/lock.c:31:
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:43: error: expected &apos;=&apos;, &apos;,&apos;, &apos;;&apos;, &apos;asm&apos; or &apos;__attribute__&apos; before &apos;__cpu_to_le64p&apos;
/usr/include/linux/byteorder/little_endian.h:47: error: expected &apos;;&apos;, &apos;,&apos; or &apos;)&apos; before &apos;*&apos; token
/usr/include/linux/byteorder/little_endian.h:67: error: expected &apos;=&apos;, &apos;,&apos;, &apos;;&apos;, &apos;asm&apos; or &apos;__attribute__&apos; before &apos;__cpu_to_be64p&apos;
/usr/include/linux/byteorder/little_endian.h:71: error: expected &apos;;&apos;, &apos;,&apos; or &apos;)&apos; before &apos;*&apos; token
make[2]: *** [libunieject_la-lock.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -DSYSCONFDIR=\&quot;/etc\&quot; -I. -I. -I. -I./lib -std=c99 -O2 -ggdb -march=prescott -fomit-frame-pointer -fno-ident -pipe -fvisibility=hidden -c lib/linux.c -o libunieject_la-linux.o &gt;/dev/null 2&gt;&amp;1
make[2]: Leaving directory `/var/tmp/portage/sys-block/unieject-5.3.2/work/unieject-5.3.2&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-block/unieject-5.3.2/work/unieject-5.3.2&apos;
make: *** [all] Error 2

!!! ERROR: sys-block/unieject-5.3.2 failed.
Call stack:
  ebuild.sh, line 1611:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call &apos;src_compile&apos;
  environment, line 3483:   Called src_compile
  unieject-5.3.2.ebuild, line 51:   Called die

!!! emake failed




Portage 2.1.2_rc4-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19.1 i686)
=================================================================
System uname: 2.6.19.1 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System version 1.12.8
Timestamp of tree: Unknown
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r1
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17, 2.17.50.0.9
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -ggdb -march=prescott -fomit-frame-pointer -fno-ident -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -ggdb -march=prescott -fomit-frame-pointer -fno-ident -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache cvs digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict test userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot; http://gentoo.chem.wisc.edu/gentoo/&quot;
LANG=&quot;en_CA.UTF-8&quot;
LC_ALL=&quot;en_CA.UTF-8&quot;
LDFLAGS=&quot;-Wl,-O1 -Wl,--hash-style=both&quot;
LINGUAS=&quot;en&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/home/dirtyepic/overlay&quot;
SYNC=&quot;cvs://dirtyepic@cvs.gentoo.org:/var/cvsroot&quot;
USE=&quot;X a52 aac acpi alsa audiofile bash-completion berkdb bzip2 cairo caps cdparanoia cdr crypt cscope curl dbus dri dts dvd dvdr dvdread encode exif expat fam ffmpeg fftw flac gdbm gif gmp gnutls graphviz gtk hal idn imagemagick imap imlib java javascript jikes joystick jpeg kde kdeenablefinal kdehiddenvisibility mad maildir mailwrapper mmap mmx mng mp3 mpeg mplayer ncurses nptl nsplugin ogg opengl oss pam pcmcia pcre pdf perl pic png python qt3 qt4 quicktime readline ruby sdl session sndfile spell sqlite sqlite3 sse sse2 ssl startup-notification svg tcpd test theora threads truetype unicode urandom usb vcd vim-syntax vorbis win32codecs wxwindows x264 x86 xine xml xpm xv xvid zlib&quot; ALSA_CARDS=&quot;hda-intel&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;joystick mouse keyboard synaptics&quot; KERNEL=&quot;linux&quot; LINGUAS=&quot;en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;fglrx radeon&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-01-15 15:14:24 0000</bug_when>
            <thetext>fixed in cvs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-04-15 04:52:44 0000</bug_when>
            <thetext>looks like the little_endian.h bits are fixed but i&apos;m still getting the byteorder.h error.


 i686-pc-linux-gnu-gcc -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -DSYSCONFDIR=\&quot;/etc\&quot; -I. -I. -I. -I./lib -std=c99 -O2 -g -march=prescott -fomit-frame-pointer -fno-ident -pipe -fvisibility=hidden -c lib/linux.c  -fPIC -DPIC -o .libs/libunieject_la-linux.o
In file included from /usr/include/linux/cdrom.h:15,
                 from lib/lock.c:31:
/usr/include/asm/byteorder.h: In function &apos;___arch__swab64&apos;:
/usr/include/asm/byteorder.h:38: error: expected &apos;)&apos; before &apos;:&apos; token
make[2]: *** [libunieject_la-lock.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -DSYSCONFDIR=\&quot;/etc\&quot; -I. -I. -I. -I./lib -std=c99 -O2 -g -march=prescott -fomit-frame-pointer -fno-ident -pipe -fvisibility=hidden -c lib/linux.c -o libunieject_la-linux.o &gt;/dev/null 2&gt;&amp;1
make[2]: Leaving directory `/var/tmp/portage/sys-block/unieject-5.3.2/work/unieject-5.3.2&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-block/unieject-5.3.2/work/unieject-5.3.2&apos;
make: *** [all] Error 2

!!! ERROR: sys-block/unieject-5.3.2 failed.



This is w/ linux-headers-2.6.20-r2.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-04-15 10:21:22 0000</bug_when>
            <thetext>interesting ... fails on i386, but not amd64 ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-04-15 10:24:51 0000</bug_when>
            <thetext>hmm, the __USE_ISOC99 define comes from glibc rather than the compiler ... that sucks ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-04-15 10:26:49 0000</bug_when>
            <thetext>looks like we need to convert the C99 changes to linux-headers to use __STDC_VERSION__ like so:
(defined(__STDC_VERSION__) &amp;&amp; __STDC_VERSION__ &gt;= 199901L)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-05-02 23:15:09 0000</bug_when>
            <thetext>fixed with 2.6.21 headers</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-17 21:35:49 0000</bug_when>
            <thetext>*** Bug 182414 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-17 21:38:42 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; /usr/include/asm/byteorder.h: In function &apos;___arch__swab64&apos;:
&gt; /usr/include/asm/byteorder.h:38: error: expected &apos;)&apos; before &apos;:&apos; token

Is this really fixed?</thetext>
          </long_desc>
      
    </bug>

</bugzilla>