Bug 229653 - sys-apps/sg3_utils-1.26 headers broken: /usr/include/scsi/sg_cmds_basic.h:123: error: expected declaration specifiers or ‘...’ before ‘uint64_t’: should include stdint.h
Bug#: 229653 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: ed@catmur.co.uk
Component: Applications
URL: 
Summary: sys-apps/sg3_utils-1.26 headers broken: /usr/include/scsi/sg_cmds_basic.h:123: error: expected declaration specifiers or ‘...’ before ‘uint64_t’: should include stdint.h
Keywords:  
Status Whiteboard: 
Opened: 2008-06-26 23:24 0000
Description:   Opened: 2008-06-26 23:24 0000
While investigating bug 229641:

if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -Werror -ggdb3
-D_FORTIFY_SOURCE=2 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/hal -I/usr/include/libgtop-2.0 -I/usr/include/libxml2      -g
-O2 -MT hal-ipod-info.o -MD -MP -MF ".deps/hal-ipod-info.Tpo" -c -o
hal-ipod-info.o hal-ipod-info.c; \
        then mv -f ".deps/hal-ipod-info.Tpo" ".deps/hal-ipod-info.Po"; else rm
-f ".deps/hal-ipod-info.Tpo"; exit 1; fi
In file included from /usr/include/scsi/sg_cmds.h:17,
                 from hal-ipod-info.c:9:
/usr/include/scsi/sg_cmds_basic.h:123: error: expected declaration specifiers
or ‘...’ before ‘uint64_t’
In file included from /usr/include/scsi/sg_cmds.h:18,
                 from hal-ipod-info.c:9:
/usr/include/scsi/sg_cmds_extra.h:128: error: expected declaration specifiers
or ‘...’ before ‘uint64_t’
/usr/include/scsi/sg_cmds_extra.h:244: error: expected declaration specifiers
or ‘...’ before ‘uint64_t’
make[2]: *** [hal-ipod-info.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/media-libs/libipoddevice-0.5.3/work/libipoddevice-0.5.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/media-libs/libipoddevice-0.5.3/work/libipoddevice-0.5.3'
make: *** [all] Error 2

For uint64_t to be available, <stdint.h> must be included:
http://www.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html

------- Comment #1 From Ed Catmur 2008-06-26 23:31:54 0000 -------
Created an attachment (id=158565) [details]
stdint.patch

------- Comment #2 From Robin Johnson 2008-06-27 14:38:09 0000 -------
InCVS.