Bug 78219 - dev-libs/pth-2.0.2: compilation fails with undeclared identifier
Bug#: 78219 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: crypto@gentoo.org Reported By: felix@hsgheli.de
Component: Unspecified
URL: 
Summary: dev-libs/pth-2.0.2: compilation fails with undeclared identifier
Keywords:  
Status Whiteboard: 
Opened: 2005-01-16 07:39 0000
Description:   Opened: 2005-01-16 07:39 0000
The compilation of pth-2.0.2 fails with missing identifiers to pth_scheduler
(see Actual Results). Switching to clean {C,CXX,LD}FLAGS doesn't help.

Reproducible: Always
Steps to Reproduce:
1. emerge dev-libs/pth-2.0.2

Actual Results:  
./libtool --mode=compile --quiet i686-pc-linux-gnu-gcc -c -I.
-fexpensive-optimizations -O2 -march=athlon-xp -mtune=athlon-xp -ftracer -msse
-m3dnow -mmmx -fomit-frame-pointer -pipe pth_sched.c
pth_sched.c: In function `pth_scheduler_drop':
pth_sched.c:84: warning: assignment makes pointer from integer without a cast
pth_sched.c:89: warning: assignment makes pointer from integer without a cast
pth_sched.c:94: warning: assignment makes pointer from integer without a cast
pth_sched.c:99: warning: assignment makes pointer from integer without a cast
pth_sched.c:104: warning: assignment makes pointer from integer without a cast
pth_sched.c: In function `pth_scheduler':
pth_sched.c:200: warning: assignment makes pointer from integer without a cast
./libtool --mode=compile --quiet i686-pc-linux-gnu-gcc -c -I.
-fexpensive-optimizations -O2 -march=athlon-xp -mtune=athlon-xp -ftracer -msse
-m3dnow -mmmx -fomit-frame-pointer -pipe pth_attr.c
./libtool --mode=compile --quiet i686-pc-linux-gnu-gcc -c -I.
-fexpensive-optimizations -O2 -march=athlon-xp -mtune=athlon-xp -ftracer -msse
-m3dnow -mmmx -fomit-frame-pointer -pipe 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:317: error: `pth_scheduler' undeclared (first use in this function)
make: *** [pth_lib.lo] Fehler 1

!!! ERROR: dev-libs/pth-2.0.2 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! emake failed


Expected Results:  
finish compiling

Portage 2.0.51-r13 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-nitro4 i686)
=================================================================
System uname: 2.6.10-nitro4 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 28 2004, 18:29:46)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r2, 1.9.4, 1.4_p6, 1.6.3, 1.7.9, 1.5
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="-fexpensive-optimizations -O2 -march=athlon-xp -mtune=athlon-xp
-ftracer
-msse -m3dnow -mmmx -fomit-frame-pointer -pipe"
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/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-fexpensive-optimizations -O2 -march=athlon-xp -mtune=athlon-xp
-ftracer -msse -m3dnow -mmmx -fomit-frame-pointer -pipe
-fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt
cups dvd encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gnome
gpm gstreamer gtk gtk2 guile hal imagemagick imlib ipv6 java jpeg junit kde
libg++ libwww mad mikmod mmx motif mozilla moznomail mpeg mysql ncurses nls
nptl
oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline samba
scanner sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff truetype
truetype-fonts type1-fonts unicode x86 xml xml2 xmms xv zlib"

------- Comment #1 From Felix Riemann 2005-01-16 08:45:19 0000 -------
Created an attachment (id=48662) [details]
quick'n dirty patch

this is my try of a patch
I bet it's not a good try, but pth compiles and passes it's own testsuite

------- Comment #2 From Arne Stäcker 2005-01-19 00:48:58 0000 -------
How do you apply the patch ??
I tried the epatch way, but it failed right at the appling with "Failed Patch ..."

Can you help me ?

------- Comment #3 From Felix Riemann 2005-01-19 07:54:12 0000 -------
You need to cd into the source directory first before epatch works.

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/pth-2.0.2-undeclared-ids.patch
	ht_fix_file ${S}/configure
}

------- Comment #4 From Daniel Black 2005-01-19 12:53:04 0000 -------
This have been fixed in 2.0.3 that I have just commited. Removed 2.0.2 version.
Thanks for the bug report.

------- Comment #5 From Andrew Gaydenko 2005-01-19 15:28:28 0000 -------
Probably, something wrong with the fix. During updating 
to dev-libs/pth-2.0.3 I have got the error shown below.

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] Error 1

------- Comment #6 From Charles Goodwin 2005-01-20 05:37:00 0000 -------
Confirmed - 2.0.3 fails and has been re-reported as Bug 78749