<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>78219</bug_id>
          
          <creation_ts>2005-01-16 07:39 0000</creation_ts>
          <short_desc>dev-libs/pth-2.0.2: compilation fails with undeclared identifier</short_desc>
          <delta_ts>2007-03-16 09:30:06 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Unspecified</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>felix@hsgheli.de</reporter>
          <assigned_to>crypto@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>felix@hsgheli.de</who>
            <bug_when>2005-01-16 07:39:14 0000</bug_when>
            <thetext>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&apos;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&apos;:
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&apos;:
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&apos;:
pth_lib.c:95: error: `pth_scheduler&apos; 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&apos;:
pth_lib.c:317: error: `pth_scheduler&apos; 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=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-fexpensive-optimizations -O2 -march=athlon-xp -mtune=athlon-xp -ftracer
-msse -m3dnow -mmmx -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-fexpensive-optimizations -O2 -march=athlon-xp -mtune=athlon-xp
-ftracer -msse -m3dnow -mmmx -fomit-frame-pointer -pipe -fvisibility-inlines-hidden&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/&quot;
LDFLAGS=&quot;-Wl,-O1&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>felix@hsgheli.de</who>
            <bug_when>2005-01-16 08:45:19 0000</bug_when>
            <thetext>Created an attachment (id=48662)
quick&apos;n dirty patch

this is my try of a patch
I bet it&apos;s not a good try, but pth compiles and passes it&apos;s own testsuite</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arnestaecker@web.de</who>
            <bug_when>2005-01-19 00:48:58 0000</bug_when>
            <thetext>How do you apply the patch ??
I tried the epatch way, but it failed right at the appling with &quot;Failed Patch ...&quot;

Can you help me ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>felix@hsgheli.de</who>
            <bug_when>2005-01-19 07:54:12 0000</bug_when>
            <thetext>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
}
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-01-19 12:53:04 0000</bug_when>
            <thetext>This have been fixed in 2.0.3 that I have just commited. Removed 2.0.2 version. Thanks for the bug report.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>a@gaydenko.com</who>
            <bug_when>2005-01-19 15:28:28 0000</bug_when>
            <thetext>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&apos;:
pth_lib.c:95: error: `pth_scheduler&apos; 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&apos;:
pth_lib.c:321: error: `pth_scheduler&apos; undeclared (first use in this function)
make: *** [pth_lib.lo] Error 1
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>charlie@vexi.org</who>
            <bug_when>2005-01-20 05:37:00 0000</bug_when>
            <thetext>Confirmed - 2.0.3 fails and has been re-reported as Bug 78749</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>48662</attachid>
            <date>2005-01-16 08:45 0000</date>
            <desc>quick&apos;n dirty patch</desc>
            <filename>pth-2.0.2-undeclared-ids.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHB0aF9saWIuYy5vcmlnCTIwMDUtMDEtMTYgMTc6MDk6NTkuMTUwMDkxNTkyICswMTAwCisr
KyBwdGhfbGliLmMJMjAwNS0wMS0xNiAxNzoxMDo0NC44ODUxMzg4MDggKzAxMDAKQEAgLTI5LDYg
KzI5LDggQEAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLS0g
VW5rbm93biAgICAgICAgICAgICAgICAqLwogI2luY2x1ZGUgInB0aF9wLmgiCiAKK2V4dGVybiB2
b2lkICpwdGhfc2NoZWR1bGVyKHZvaWQgKmR1bW15KTsKKwogLyogcmV0dXJuIHRoZSBoZXhhZGVj
aW1hbCBQdGggbGlicmFyeSB2ZXJzaW9uIG51bWJlciAqLwogbG9uZyBwdGhfdmVyc2lvbih2b2lk
KQogewotLS0gcHRoX2hpZ2guYy5vcmlnCTIwMDUtMDEtMTYgMTc6MDk6MDYuOTkwMDIxMTI4ICsw
MTAwCisrKyBwdGhfaGlnaC5jCTIwMDUtMDEtMTYgMTc6MTA6NTMuODYwNzc0MzA0ICswMTAwCkBA
IC0zNSw2ICszNSw4IEBACiAKICNpbmNsdWRlICJwdGhfcC5oIgogCitleHRlcm4gaW50IHB0aF9p
bml0aWFsaXplZDsKKwogLyogUHRoIHZhcmlhbnQgb2YgbmFub3NsZWVwKDIpICovCiBpbnQgcHRo
X25hbm9zbGVlcChjb25zdCBzdHJ1Y3QgdGltZXNwZWMgKnJxdHAsIHN0cnVjdCB0aW1lc3BlYyAq
cm10cCkKIHsK
</data>        

          </attachment>
    </bug>

</bugzilla>