Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123581 - ddccontrol 0.03(-r1) fails to compile - conflicting types for 'u64'
Summary: ddccontrol 0.03(-r1) fails to compile - conflicting types for 'u64'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 123632 123633 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-21 00:28 UTC by Maarten Maathuis
Modified: 2006-02-26 16:17 UTC (History)
4 users (show)

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


Attachments
ddccontrol-0.3-u64-conflicting-types.patch (ddccontrol-0.3-u64-conflicting-types.patch,488 bytes, patch)
2006-02-21 04:44 UTC, Nicolas Boichat
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten Maathuis 2006-02-21 00:28:48 UTC
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../lib  -DLOCAL
EDIR=\"\"    -march=k8 -Os -pipe -msse3 -Wall  -DDATADIR="\"/usr/share/ddccontro
l-db\"" -DBINDIR="\"/usr/bin\"" -MT nvidia.o -MD -MP -MF ".deps/nvidia.Tpo" -c -
o nvidia.o nvidia.c; \
then mv -f ".deps/nvidia.Tpo" ".deps/nvidia.Po"; else rm -f ".deps/nvidia.Tpo"; 
exit 1; fi
In file included from /usr/include/pci/pci.h:14,
                 from ddcpci.h:25,
                 from nvidia.c:33:
/usr/include/pci/types.h:26: error: conflicting types for 'u64'
/usr/include/asm-x86_64/types.h:56: error: previous declaration of 'u64' was her
e
make[3]: *** [nvidia.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/pci/pci.h:14,
                 from ddcpci.h:25,
                 from main.c:35:
/usr/include/pci/types.h:26: error: conflicting types for 'u64'
/usr/include/asm-x86_64/types.h:56: error: previous declaration of 'u64' was her
e
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/ddccontrol-0.3-r1/work/ddccontrol-0
.3/src/ddcpci'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/ddccontrol-0.3-r1/work/ddccontrol-0
.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/ddccontrol-0.3-r1/work/ddccontrol-0
.3/src'
make: *** [all-recursive] Error 1


emerge --info:

Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-ck2 x86_64)
=================================================================
System uname: 2.6.15-ck2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -Os -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -Os -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="amd64 X alsa aotuv avi berkdb bitmap-fonts caps cdr crypt cups dvd dvdr eds emboss encode flac foomaticdb fortran gif gimpprint gpm gstreamer gtk gtk2 imlib ipv6 jack jpeg lzw lzw-tiff matroska mp3 mpeg musepack mysql ncurses nls nptl nvidia ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline sdl spell ssl tcpd tiff truetype-fonts type1-fonts unicode usb userlocales vorbis xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LINGUAS
Comment 1 Nicolas Boichat 2006-02-21 04:43:40 UTC
Thanks for the report, I fixed this upstream.

I don't know if it is a bug in linux-headers, pciutils or ddccontrol. But it seems these kinds of problems appears very frequently...

Patch follows.
Comment 2 Nicolas Boichat 2006-02-21 04:44:53 UTC
Created attachment 80360 [details, diff]
ddccontrol-0.3-u64-conflicting-types.patch

CVS diff fixing this problem.
Comment 3 Maarten Maathuis 2006-02-21 09:43:00 UTC
*** Bug 123632 has been marked as a duplicate of this bug. ***
Comment 4 Maarten Maathuis 2006-02-21 09:43:20 UTC
*** Bug 123633 has been marked as a duplicate of this bug. ***
Comment 5 trefoil 2006-02-24 12:24:15 UTC
0.3 (but not -r1) compiled and worked fine for me.

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.cs.lewisu.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa apm arts asf audiofile avi berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cgi cli crypt cups curl dba dvd dvdr eds emboss encode exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imap imlib ipv6 joystick jpeg kde kdeenablefinal kdexdeltas lcms libg++ libwww lua mad mikmod mmx mmxext mng motif mozilla mp3 mpeg musicbrainz ncurses nls nptl ogg oggvorbis openal opengl oss pam pcre pdflib perl php png python qt quicktime readline sdl sox speex spell sqlite sse ssl tcpd tidy tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs wxwindows xine xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, PORTDIR_OVERLAY


make[3]: Leaving directory `/var/tmp/portage/ddccontrol-0.3-r1/work/ddccontrol-0.3/src/ddccontrol'
Making all in gnome-ddcc-applet
make[3]: Entering directory `/var/tmp/portage/ddccontrol-0.3-r1/work/ddccontrol-0.3/src/gnome-ddcc-applet'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../lib -I.. -DLOCALEDIR=\"/usr/share/locale\"   -I/usr/include/libxml2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   '-DPKGDATADIR="/usr/share/ddccontrol"' -O2 -march=athlon-xp -pipe -Wall  -DDATADIR="\"/usr/share/ddccontrol-db\"" -DBINDIR="\"/usr/bin\"" -MT ddcc-applet.o -MD -MP -MF ".deps/ddcc-applet.Tpo" -c -o ddcc-applet.o ddcc-applet.c; \
then mv -f ".deps/ddcc-applet.Tpo" ".deps/ddcc-applet.Po"; else rm -f ".deps/ddcc-applet.Tpo"; exit 1; fi
sed -e "s|\@PKGLIBDIR\@|/usr/lib/ddccontrol|" GNOME_ddcc-applet.server.in.in > GNOME_ddcc-applet.server.in
LC_ALL=C ../../intltool-merge -o -u -c ../../po/.intltool-merge-cache ../../po GNOME_ddcc-applet.server.in GNOME_ddcc-applet.server
ddcc-applet.c:34:26: panel-applet.h: No such file or directory
Generating and caching the translation database
WARNING: ../../po/fr.po is not in UTF-8 but ISO-8859-1, converting...
Merging translations into GNOME_ddcc-applet.server.
In file included from ddcc-applet.c:39:
ddcc-applet.h:52: error: parse error before "PanelApplet"
ddcc-applet.h:52: warning: no semicolon at end of struct or union
ddcc-applet.h:63: error: parse error before '}' token
ddcc-applet.h:63: warning: type defaults to `int' in declaration of `DdccApplet'
ddcc-applet.h:63: warning: data definition has no type or storage class
ddcc-applet.h:71: error: parse error before '*' token
ddcc-applet.h:74: error: parse error before '*' token
ddcc-applet.h:79: error: parse error before '*' token
ddcc-applet.h:84: error: parse error before '*' token
ddcc-applet.c:53: error: parse error before "ddccapplet_applet_menu_verbs"
ddcc-applet.c:53: warning: type defaults to `int' in declaration of `ddccapplet_applet_menu_verbs'
ddcc-applet.c:55: warning: implicit declaration of function `BONOBO_UI_UNSAFE_VERB'
ddcc-applet.c:55: error: initializer element is not constant
ddcc-applet.c:55: error: (near initialization for `ddccapplet_applet_menu_verbs[0]')
ddcc-applet.c:56: error: initializer element is not constant
ddcc-applet.c:56: error: (near initialization for `ddccapplet_applet_menu_verbs[1]')
ddcc-applet.c:57: error: initializer element is not constant
ddcc-applet.c:57: error: (near initialization for `ddccapplet_applet_menu_verbs[2]')
ddcc-applet.c:59: error: `BONOBO_UI_VERB_END' undeclared here (not in a function)
ddcc-applet.c:59: error: initializer element is not constant
ddcc-applet.c:59: error: (near initialization for `ddccapplet_applet_menu_verbs[3]')
ddcc-applet.c:59: warning: data definition has no type or storage class
ddcc-applet.c:153: error: parse error before '*' token
ddcc-applet.c: In function `menu_properties_cb':
ddcc-applet.c:157: error: `applet' undeclared (first use in this function)
ddcc-applet.c:157: error: (Each undeclared identifier is reported only once
ddcc-applet.c:157: error: for each function it appears in.)
ddcc-applet.c: At top level:
ddcc-applet.c:162: error: parse error before '*' token
ddcc-applet.c:172: error: parse error before '*' token
ddcc-applet.c:201: error: parse error before "DdccApplet"
ddcc-applet.c: In function `applet_button_cb':
ddcc-applet.c:203: error: `event' undeclared (first use in this function)
ddcc-applet.c:205: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:225: error: parse error before "DdccApplet"
ddcc-applet.c: In function `change_profile_cb':
ddcc-applet.c:229: error: `item' undeclared (first use in this function)
ddcc-applet.c:230: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:242: error: parse error before "DdccApplet"
ddcc-applet.c: In function `dialog_delete_cb':
ddcc-applet.c:244: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:251: error: parse error before "DdccApplet"
ddcc-applet.c: In function `dialog_close_button_cb':
ddcc-applet.c:253: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:261: error: parse error before "DdccApplet"
ddcc-applet.c: In function `monitor_combo_cb':
ddcc-applet.c:265: error: `widget' undeclared (first use in this function)
ddcc-applet.c:268: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:285: error: parse error before "DdccApplet"
ddcc-applet.c: In function `destroy_cb':
ddcc-applet.c:287: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:302: error: parse error before '*' token
ddcc-applet.c: In function `fill_profiles_menu':
ddcc-applet.c:307: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:325: error: parse error before '*' token
ddcc-applet.c: In function `fill_monitor_combo':
ddcc-applet.c:334: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:359: error: parse error before '*' token
ddcc-applet.c: In function `ddcc_applet_init':
ddcc-applet.c:380: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:424: error: parse error before '*' token
ddcc-applet.c: In function `create_properties_dialog':
ddcc-applet.c:432: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:471: error: parse error before '*' token
ddcc-applet.c: In function `ddcc_applet_main':
ddcc-applet.c:473: error: `applet' undeclared (first use in this function)
ddcc-applet.c:482: error: `root_applet' undeclared (first use in this function)
ddcc-applet.c:498: warning: implicit declaration of function `panel_applet_setup_menu_from_file'
ddcc-applet.c: At top level:
ddcc-applet.c:531: error: parse error before '*' token
ddcc-applet.c: In function `ddcc_applet_factory':
ddcc-applet.c:535: error: `iid' undeclared (first use in this function)
ddcc-applet.c:538: error: `applet' undeclared (first use in this function)
ddcc-applet.c: At top level:
ddcc-applet.c:540: error: parse error before string constant
ddcc-applet.c:534: warning: 'ddcc_applet_factory' defined but not used
make[3]: *** [ddcc-applet.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/ddccontrol-0.3-r1/work/ddccontrol-0.3/src/gnome-ddcc-applet'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/ddccontrol-0.3-r1/work/ddccontrol-0.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/ddccontrol-0.3-r1/work/ddccontrol-0.3/src'
make: *** [all-recursive] Error 1

!!! ERROR: app-misc/ddccontrol-0.3-r1 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 6 trefoil 2006-02-24 12:26:41 UTC
Just realized this might be better suited to a new bug, please advise.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-02-25 02:33:46 UTC
Nicholas: Thanks for the patch, I'll commit soon.

Kai: open a new bug please, but I suspect you're seeing some weirdness somewhere in your system.
Comment 8 Nicolas Boichat 2006-02-25 03:22:00 UTC
Robin: I also have a patch for Kai's problem (incompatibility with Gnome-2.12), if you want I can put it here, but I think it would be more appropriate in a new bug.
Comment 9 trefoil 2006-02-25 11:18:51 UTC
My issue above is now bug 124093, please excuse the cross-posting. Thanks for the assistance.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-02-26 16:17:22 UTC
-r2 in CVS with patch now.
Thanks Nicolas.