dev-libs/pth-2.0.3 fails to build and exits with the following error: pth_sched.c:207: warning: assignment makes pointer from integer without a cast ./libtool --mode=compile --quiet i686-pc-linux-gnu-gcc -c -I. -march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse,387 -ffast-math pth_attr.c ./libtool --mode=compile --quiet i686-pc-linux-gnu-gcc -c -I. -march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse,387 -ffast-math pth_lib.c pth_lib.c: In function `pth_init': pth_lib.c:95: error: `pth_scheduler' undeclared (first use in this function) pth_lib.c:95: error: (Each undeclared identifier is reported only once pth_lib.c:95: error: for each function it appears in.) pth_lib.c: In function `pth_spawn': pth_lib.c:321: error: `pth_scheduler' undeclared (first use in this function) make: *** [pth_lib.lo] Fout 1 make: *** Wachten op onafgeronde taken... Reproducible: Always Steps to Reproduce: 1. echo dev-libs/pth \~86 >> /etc/portage/package.keywords 2. emerge pth Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-nitro2 i686) ================================================================= System uname: 2.6.10-nitro2 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Nov 24 2004, 18:21:57)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.8.5-r2, 1.6.3, 1.9.4, 1.5, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse,387 -ffast-math" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/share/config /var/qmail/alias /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse,387 -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks parallel-fetch sandbox sfperms" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib alsa apache2 apm arts audiofile avi bitmap-fonts bzlib calender cdparanoia cdr chroot crypt cups dba divx4linux dvd dvdr encode esd f77 fam filepro flac font-server foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile imagemagick imlib insecure-drivers java jpeg jpeg2k junit kde ldap libg++ libwww live mad mikmod mime mmx motif mpeg msn mysql ncurses nls nptl odbc offensive oggvorbis ooo-kde opengl pam pdflib perl php pic png postgres python qmail qt quicktime readline real rplay samba scanner sdk sdl session sftplogging slang softmmu speex spell sse ssl stroke svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts usb userlocales wmf xine xinerama xml xml2 xmms xprint xscreensaver xv xvid zlib video_cards_nvidia linguas_nl" Unset: LDFLAGS
Created attachment 49001 [details] Full build log
Same here. :(
me too .. ;(
the same
Add ~ppc to the list of architectures where it does not compile.
Wild guess, everyone who had trouble building this was using a non-default locale. That was affecting the awk script that generates the header file. The fix: LANG=C emake pth_p.h
On my system this is not enough... may I suggest LC_ALL=C instead of LANG=C (or possibly with LANG=C I'm no expert in Languages issues :) with LC_ALL=C pth 2.0.3 compiles for me, otherwise it fails. the default setting on my system for LC_ALL is it_IT.utf8
Created attachment 49215 [details, diff] pth-2.0.3-locale.diff Fabio's fix works for me too, on amd64. Here is the patch
Basesystem/vapier - FYI another locale gawk problem. Reporters with problems which verions of gawk were you using?
Fabio, Simone - changed to LC_ALL=C LANG=C as you suggested.
On my system: cova@kefk ~ $ gawk --version GNU Awk 3.1.4
I'm using GNU Awk 3.1.4
awk 3.1.4 too.
actually, i dont think this is a gawk bug ... the pth package uses non-locale-portable character matching: [a-zA-Z_][a-zA-Z0-9_] [a-zA-Z] is known to be wrong ... it should use [:alpha:] since the order of some alphabets is such that 'a' is not the first letter and 'z' is not the last letter (see the estonian alphabet for a very good example of this)
well, maybe it is a gawk bug (see #78227) ... however, my previous statement about gawk using [A-Z] still stands ... packages should never do that
can you guys try gawk-3.1.4-r1 and see if that works w/out screwing with LC_ALL / LANG ?
It works for me, thanks a lot.
removed - LC_ALL from pth ebuild