Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196521 - dev-libs/klibc-1.5 broken headers install on ppc
Summary: dev-libs/klibc-1.5 broken headers install on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-20 11:43 UTC by Massimo Burcheri
Modified: 2007-11-12 10:38 UTC (History)
2 users (show)

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


Attachments
klibc-1.5 asm-ppc include dir fix (klibc-1.5-asm-ppc-include-dir-fix.patch,1.08 KB, patch)
2007-11-04 15:31 UTC, nixnut (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Burcheri 2007-10-20 11:43:20 UTC
emerge splashutils fails with:


/usr/lib/klibc/include/stdio.h:62: error: expected declaration specifiers or '...' before 'off_t' 
/usr/lib/klibc/include/stdio.h: In function 'fseek': 
/usr/lib/klibc/include/stdio.h:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lseek' 
/usr/lib/klibc/include/stdio.h:64: error: expected expression before 'int' 
/usr/lib/klibc/include/stdio.h:65: error: '__o' undeclared (first use in this function) 
/usr/lib/klibc/include/stdio.h:65: error: (Each undeclared identifier is reported only once 
/usr/lib/klibc/include/stdio.h:65: error: for each function it appears in.) 
/usr/lib/klibc/include/stdio.h:65: error: 'off_t' undeclared (first use in this function) 
/usr/lib/klibc/include/stdio.h: At top level: 
/usr/lib/klibc/include/stdio.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ftell' 
make[1]: *** [jcapimin.o] Error 1 
make: *** [jpeglib] Error 2 
 * 
 * ERROR: media-gfx/splashutils-1.5.2.1 failed.



Solved with:
cp /usr/include/asm/* /usr/lib/klibc/include/asm-ppc/
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-20 11:49:36 UTC
Err, your klibc sucks, not splashutils. Which version are you using? Also, attach the complete log and emerge --info.
Comment 2 Massimo Burcheri 2007-10-20 12:28:37 UTC
It's dev-libs/klibc-1.5


emerge splashutils
...
/usr/lib/klibc/include/stdio.h:62: error: expected declaration specifiers or '...' before 'off_t' 
 /usr/lib/klibc/include/stdio.h: In function 'fseek': 
 /usr/lib/klibc/include/stdio.h:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lseek' 
 /usr/lib/klibc/include/stdio.h:64: error: expected expression before 'int' 
 /usr/lib/klibc/include/stdio.h:65: error: '__o' undeclared (first use in this function) 
 /usr/lib/klibc/include/stdio.h:65: error: (Each undeclared identifier is reported only once 
 /usr/lib/klibc/include/stdio.h:65: error: for each function it appears in.) 
 /usr/lib/klibc/include/stdio.h:65: error: 'off_t' undeclared (first use in this function) 
 /usr/lib/klibc/include/stdio.h: At top level: 
 /usr/lib/klibc/include/stdio.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ftell' 
 make[1]: *** [jcapimin.o] Error 1 
 make: *** [jpeglib] Error 2 
  * 
  * ERROR: media-gfx/splashutils-1.5.2.1 failed.
Comment 3 Massimo Burcheri 2007-10-20 12:29:04 UTC
# emerge --info
Portage 2.1.3.9 (default-linux/ppc/ppc32/2007.0/desktop/G4, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 ppc)
=================================================================
System uname: 2.6.22-gentoo-r5 ppc 7447A, altivec supported
Timestamp of tree: Sun, 14 Oct 2007 08:50:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7450 -O2 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -ftracer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-mcpu=7450 -O2 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -ftracer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/lila-theme /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/genstef /usr/portage/local/layman/enlightenment /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl aim alsa altivec ansi automount bash-completion berkdb bitmap-fonts branding bzip2 cairo cdparanoia cdr cdrom cli cracklib crypt cups dbus divx4linux dri dvd dvdr dvdread eds emboss encode evo fam fbcon flac gdbm gecko-sdk geoip gif gimp glibc-omitfp gpm gstreamer gtk gtk2 hal hbci ibam iconv icq ieee1394 imap isdnlog jabber javascript jpeg kde kdehiddenvisibility libcaca mad midi mikmod mjpeg mmap mp3 mpeg mplayer msn mudflap musepack ncurses network nls nptl nptlonly nsplugin ogg oggvorbis opengl openmp pam pcre pdf perl pic png ppc ppds pppd pthreads python qt3 qt3support qt4 quicktime quotes radeon readline reflection samba sasl scanner sdl session slang spell spl ssl subversion svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vim vorbis wifi xine xml xorg xprint xscreensaver xv xvid yahoo zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 nixnut (RETIRED) gentoo-dev 2007-10-20 12:34:43 UTC
This happens with klibc-1.5. It seems that klibc-1.5 grabs the wrong asm include directory from the kernel sources. The headers that splashutils needs are in asm-powerpc, but klibc picks asm-ppc.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-10-20 12:51:49 UTC
Yeah, indeed.
Comment 6 Michal Januszewski (RETIRED) gentoo-dev 2007-10-20 13:35:35 UTC
Perhaps this will turn out to be related to the PPC problems reported in bug #195443.
Comment 7 nixnut (RETIRED) gentoo-dev 2007-11-04 15:31:56 UTC
Created attachment 135154 [details, diff]
klibc-1.5 asm-ppc include dir fix

patch for klibc-1.5 to grab the correct asm include dir for ppc; i.e. asm-powerpc instead of asm-ppc
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-11-12 10:38:56 UTC
fixed in CVS.