Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78749 - gawk causing dev-libs/pth-2.0.3 fails to compile
Summary: gawk causing dev-libs/pth-2.0.3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Bart Verwilst
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 16:51 UTC by Roel Brook
Modified: 2005-02-09 02:18 UTC (History)
8 users (show)

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


Attachments
Full build log (4614-pth-2.0.3.log,14.71 KB, text/plain)
2005-01-19 16:51 UTC, Roel Brook
Details
pth-2.0.3-locale.diff (pth-locale.diff,468 bytes, patch)
2005-01-22 11:38 UTC, Simone Piunno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roel Brook 2005-01-19 16:51:17 UTC
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
Comment 1 Roel Brook 2005-01-19 16:51:57 UTC
Created attachment 49001 [details]
Full build log
Comment 2 Charles Goodwin 2005-01-20 05:35:56 UTC
Same here. :(
Comment 3 Arthur I. 2005-01-20 07:59:55 UTC
me too .. ;(
Comment 4 Andrew Gaydenko 2005-01-20 20:06:22 UTC
the same
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2005-01-20 22:26:19 UTC
Add ~ppc to the list of architectures where it does not compile.
Comment 6 Scott Taylor (RETIRED) gentoo-dev 2005-01-22 01:47:59 UTC
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
Comment 7 Fabio Coatti 2005-01-22 06:14:52 UTC
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

Comment 8 Simone Piunno 2005-01-22 11:38:26 UTC
Created attachment 49215 [details, diff]
pth-2.0.3-locale.diff

Fabio's fix works for me too, on amd64.
Here is the patch
Comment 9 Daniel Black (RETIRED) gentoo-dev 2005-01-22 14:06:02 UTC
Basesystem/vapier - FYI another locale gawk problem.

Reporters with problems which verions of gawk were you using?
Comment 10 Daniel Black (RETIRED) gentoo-dev 2005-01-22 14:15:35 UTC
Fabio, Simone - changed to LC_ALL=C LANG=C as you suggested.
Comment 11 Fabio Coatti 2005-01-22 15:22:57 UTC
On my system:
cova@kefk ~ $ gawk --version
GNU Awk 3.1.4
Comment 12 Roel Brook 2005-01-22 17:38:41 UTC
I'm using GNU Awk 3.1.4
Comment 13 Andrew Gaydenko 2005-01-22 18:12:10 UTC
awk 3.1.4 too.
Comment 14 SpanKY gentoo-dev 2005-01-28 22:33:37 UTC
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)
Comment 15 SpanKY gentoo-dev 2005-01-28 22:53:51 UTC
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
Comment 16 SpanKY gentoo-dev 2005-01-28 23:00:38 UTC
can you guys try gawk-3.1.4-r1 and see if that works w/out screwing with LC_ALL / LANG ?
Comment 17 Jean Bréfort 2005-01-30 00:12:58 UTC
It works for me, thanks a lot.
Comment 18 Daniel Black (RETIRED) gentoo-dev 2005-02-09 02:18:38 UTC
removed - LC_ALL from pth ebuild