Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109516 - sys-libs/libkudzu-1.1.62-r1 fails to compile
Summary: sys-libs/libkudzu-1.1.62-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
: 112711 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-16 16:27 UTC by Timo Gurr (RETIRED)
Modified: 2005-11-16 14:14 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Gurr (RETIRED) gentoo-dev 2005-10-16 16:27:41 UTC
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
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-17 06:27:51 UTC
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.
Comment 2 Timo Gurr (RETIRED) gentoo-dev 2005-10-17 09:21:18 UTC
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.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-17 10:27:56 UTC
When was your snapshot made?

I've updated the ebuild since it was originally added to portage.
Comment 4 Timo Gurr (RETIRED) gentoo-dev 2005-10-20 07:13:09 UTC
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.
Comment 5 Bruno Lustosa 2005-10-28 09:19:43 UTC
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.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-28 10:16:03 UTC
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.
Comment 7 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2005-10-30 01:47:13 UTC
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
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-31 07:24:43 UTC
Well, mkxf86config is pretty useless except on a LiveCD...
Comment 9 Ced 2005-10-31 15:24:23 UTC
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.
Comment 10 Zac Medico gentoo-dev 2005-11-03 11:19:53 UTC
I had the same problem building libkudzu against pciutils-2.2.0-r1.  However, it
built fine against pciutils-2.1.11-r5.
Comment 11 Ced 2005-11-03 11:30:42 UTC
Thanks Zac, using pciutils-2.1.11-r5 made it all good.
Comment 12 Sergey Nezhinsky 2005-11-10 06:29:20 UTC
Solution: typedef unsigned char byte in pci.c or its includes.
Comment 13 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-11 06:49:24 UTC
Got a patch?
Comment 14 guillermo 2005-11-11 10:17:24 UTC
(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.
Comment 15 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-16 07:35:29 UTC
I've fixed this in portage.  Please emerge --sync and try again.

Thanks Sergey for finding the fix.
Comment 16 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-16 12:10:52 UTC
*** Bug 112711 has been marked as a duplicate of this bug. ***