I wanted to emerge the livecd-tools but libkudzu fails to build so I consider this as a blocker. Reproducible: Always Steps to Reproduce: 1. emerge libkudzu 2. 3. Actual Results: # emerge livecd-tools Calculating dependencies ...done! >>> emerge (1 of 4) sys-libs/libkudzu-1.1.62-r1 to / >>> md5 files ;-) libkudzu-1.1.62.ebuild >>> md5 files ;-) libkudzu-1.1.62-r1.ebuild >>> md5 files ;-) files/digest-libkudzu-1.1.62 >>> md5 files ;-) files/ppc.patch >>> md5 files ;-) files/digest-libkudzu-1.1.62-r1 >>> md5 files ;-) files/sunlance.patch >>> md5 src_uri ;-) kudzu-1.1.62.tar.bz2 >>> Unpacking source... >>> Unpacking kudzu-1.1.62.tar.bz2 to /var/tmp/portage/libkudzu-1.1.62-r1/work * Applying sunlance.patch ... [ ok ] * Applying ppc.patch ... [ ok ] >>> Source unpacked. cc -c -O2 -march=i686 -Wall -D_GNU_SOURCE -g -I. -DVERSION=\"1.1.62\" -fpic -o kudzu.o kudzu.c kudzu.c: In function `writeDevice': kudzu.c:196: warning: 'class' might be used uninitialized in this function cc -c -O2 -march=i686 -Wall -D_GNU_SOURCE -g -I. -DVERSION=\"1.1.62\" -fpic -o modules.o modules.c cc -c -O2 -march=i686 -Wall -D_GNU_SOURCE -g -I. -DVERSION=\"1.1.62\" -fpic -o pci.o pci.c pci.c:682: error: parse error before "byte" pci.c: In function `isDisabled': pci.c:692: error: `config' undeclared (first use in this function) pci.c:692: error: (Each undeclared identifier is reported only once pci.c:692: error: for each function it appears in.) pci.c:693: error: `p' undeclared (first use in this function) pci.c: In function `pciProbe': pci.c:753: error: `byte' undeclared (first use in this function) pci.c:753: error: parse error before "config" pci.c:755: error: `config' undeclared (first use in this function) pci.c:766: error: parse error before "config" make: *** [pci.o] Error 1 !!! ERROR: sys-libs/libkudzu-1.1.62-r1 failed. !!! Function src_compile, Line 37, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Expected Results: should have emerged without any problems Portage 2.0.53_rc5 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r2 i686) ================================================================= System uname: 2.6.13-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.0_pre9 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 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.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/" LANG="C" LINGUAS="de" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/kde-live" SYNC="rsync://192.168.0.50/gentoo-portage" USE="x86 X alsa apm avi berkdb bitmap-fonts cdr crypt cups dvd eds emboss encode fam foomaticdb fortran gdbm gif gpm gstreamer gtk2 imlib ipv6 jpeg kde libg++ libwww livecd mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Why in the world were you trying to install livecd-tools on a live system? I just really have to know, as they aren't useful on a normal system and will actually cause breakages, thanks to some of the init script changes it imposes.
I was following the HOWTO (http://gentoo-wiki.com/HOWTO_build_a_LiveCD_from_scratch) on gentoo-wiki.com since I want to build a bootable LiveCD and got some really weird errors on boot. Then I noticed that I have to install the livecd-tools to be able to use the cdboot parameter. I'm aware that it will change my init scripts, thank you for the warning of course.
When was your snapshot made? I've updated the ebuild since it was originally added to portage.
Emerge synced on the date I posted the initial bugreport here. In the meantime I tried kudzu-knoppix-1.1.36-r2 libkudzu-knoppix-1.1.36 kudzu-1.1.62 but all fail with "the same" error message.
emerge sync and then emerge -Du world complains of kudzu-knoppix blocking libkudzu, so I unmerged kudzu-knoppix to proceed with the upgrade. however, libkudzu doesn't compile, giving exactly the same error message as above. emerge -Dup world gives me this: Calculating world dependencies ...done! [ebuild N ] sys-libs/libkudzu-1.1.62-r1 The question is, why do I need kudzu installed? I don't use it, and I wasn't using kudzu-knoppix.
You installed something erroneously that requires it, such as hwsetup or livecd-tools. Try removing these, as you don't need them on a running system.
I'd guess it was pulled in as a dependency of mkxf86config (which depends on hwsetup). And I'm not sure uf this is just a livecd tool - or a helpfull tool for the average gentoo beginner to easily build a fully configured xorg.conf
Well, mkxf86config is pretty useless except on a LiveCD...
As I am building a livecd, libkudzu is almost a must, i'd like to have mkx86config and livecd-tools. As mentioned before, I tried installing libkudzu-1.1.62-r1, libkudzu-1.1.62, libkudzu-knoppix, basically everything with all the same result (as mentioned in the original post) The system has only a few more packages than the stage3 I used to create the base, and I compiled the rest with the minimal flag (except for perl). I cannot find what would cause this problem.
I had the same problem building libkudzu against pciutils-2.2.0-r1. However, it built fine against pciutils-2.1.11-r5.
Thanks Zac, using pciutils-2.1.11-r5 made it all good.
Solution: typedef unsigned char byte in pci.c or its includes.
Got a patch?
(In reply to comment #13) > Got a patch? I did what Sergey said and added it to my forum post: http://forums.gentoo.org/viewtopic-p-2870104.html#2870104 it worked, thanks Sergey.
I've fixed this in portage. Please emerge --sync and try again. Thanks Sergey for finding the fix.
*** Bug 112711 has been marked as a duplicate of this bug. ***