<?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>72898</bug_id>
          
          <creation_ts>2004-11-30 02:22 0000</creation_ts>
          <short_desc>pth-2.0.2 wont compile</short_desc>
          <delta_ts>2004-11-30 08:09:10 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>Ebuilds</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>flo@dotbox.org</reporter>
          <assigned_to>bug-wranglers@gentoo.org</assigned_to>
          <cc>bugs-gentoo@blubbmon.de</cc>
    
    <cc>harrisl@lhjonline.com</cc>
    
    <cc>polynomial-c@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>flo@dotbox.org</who>
            <bug_when>2004-11-30 02:22:19 0000</bug_when>
            <thetext>pth-2.0.2 does not compile

Reproducible: Always
Steps to Reproduce:
1. emerge pth
2.
3.

Actual Results:  
Now please type `make&apos; to compile. Good luck.

./shtool scpp -o pth_p.h -t pth_p.h.in -Dcpp -Cintern -M &apos;==#==&apos; pth_compat.c
pth_debug.c pth_syscall.c pth_errno.c pth_ring.c pth_mctx.c pth_uctx.c
pth_clean.c pth_time.c pth_tcb.c pth_util.c pth_pqueue.c pth_event.c pth_sched.c
pth_data.c pth_msg.c pth_cancel.c pth_sync.c pth_attr.c pth_lib.c pth_fork.c
pth_high.c pth_ext.c pth_string.c
./libtool --mode=compile --quiet i686-pc-linux-gnu-gcc -c -I. -march=pentium4
-Os -s -pipe -fomit-frame-pointer -funroll-loops pth_uctx.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_std.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_common.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_mp.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_misc.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_philo.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_sig.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_select.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_httpd.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_sfio.c
i686-pc-linux-gnu-gcc -c -I. -march=pentium4 -Os -s -pipe -fomit-frame-pointer
-funroll-loops test_uctx.c
pth_uctx.c:31:19: pth_p.h: No such file or directory
pth_uctx.c:37: error: parse error before &quot;size_t&quot;
pth_uctx.c:37: warning: no semicolon at end of struct or union
pth_uctx.c:39: error: parse error before &quot;uc_mctx&quot;
pth_uctx.c:39: warning: data definition has no type or storage class
pth_uctx.c:45: error: parse error before &apos;*&apos; token
pth_uctx.c: In function `pth_uctx_create&apos;:
pth_uctx.c:47: error: `pth_uctx_t&apos; undeclared (first use in this function)
pth_uctx.c:47: error: (Each undeclared identifier is reported only once
pth_uctx.c:47: error: for each function it appears in.)
pth_uctx.c:47: error: parse error before &quot;uctx&quot;
pth_uctx.c:50: error: `puctx&apos; undeclared (first use in this function)
pth_uctx.c:50: error: `NULL&apos; undeclared (first use in this function)
pth_uctx.c:51: error: `FALSE&apos; undeclared (first use in this function)
pth_uctx.c:51: error: `EINVAL&apos; undeclared (first use in this function)
pth_uctx.c:54: error: `uctx&apos; undeclared (first use in this function)
pth_uctx.c:54: error: parse error before &quot;malloc&quot;
pth_uctx.c:62: error: `pth_mctx_t&apos; undeclared (first use in this function)
pth_uctx.c:67: error: `TRUE&apos; undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:72: error: parse error before &quot;pth_mctx_t&quot;
pth_uctx.c:72: warning: no semicolon at end of struct or union
pth_uctx.c:73: warning: data definition has no type or storage class
pth_uctx.c:74: error: parse error before &quot;uctx_after&quot;
pth_uctx.c:74: warning: data definition has no type or storage class
pth_uctx.c:77: error: parse error before &apos;}&apos; token
pth_uctx.c:77: warning: data definition has no type or storage class
pth_uctx.c:78: error: parse error before &quot;pth_uctx_trampoline_ctx&quot;
pth_uctx.c:78: warning: data definition has no type or storage class
pth_uctx.c: In function `pth_uctx_trampoline&apos;:
pth_uctx.c:83: error: syntax error before &quot;ctx&quot;
pth_uctx.c:86: error: `ctx&apos; undeclared (first use in this function)
pth_uctx.c:86: error: request for member `mctx_parent&apos; in something not a
structure or union
pth_uctx.c:87: error: request for member `uctx_this&apos; in something not a
structure or union
pth_uctx.c:88: error: request for member `uctx_after&apos; in something not a
structure or union
pth_uctx.c:89: error: request for member `start_func&apos; in something not a
structure or union
pth_uctx.c:90: error: request for member `start_arg&apos; in something not a
structure or union
pth_uctx.c:99: error: `NULL&apos; undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:112: error: parse error before &quot;uctx&quot;
pth_uctx.c:115: error: `pth_uctx_make&apos; declared as function returning a function
pth_uctx.c:115: error: parse error before &quot;void&quot;
pth_uctx.c:119: warning: data definition has no type or storage class
pth_uctx.c:153: error: parse error before &apos;&amp;&apos; token
pth_uctx.c:153: warning: data definition has no type or storage class
pth_uctx.c:168: error: parse error before &quot;uctx&quot;
pth_uctx.c: In function `pth_uctx_save&apos;:
pth_uctx.c:171: error: `uctx&apos; undeclared (first use in this function)
pth_uctx.c:171: error: `NULL&apos; undeclared (first use in this function)
pth_uctx.c:172: error: `FALSE&apos; undeclared (first use in this function)
pth_uctx.c:172: error: `EINVAL&apos; undeclared (first use in this function)
pth_uctx.c:176: error: `TRUE&apos; undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:184: error: parse error before &quot;uctx&quot;
pth_uctx.c: In function `pth_uctx_restore&apos;:
pth_uctx.c:187: error: `uctx&apos; undeclared (first use in this function)
pth_uctx.c:187: error: `NULL&apos; undeclared (first use in this function)
pth_uctx.c:188: error: `FALSE&apos; undeclared (first use in this function)
pth_uctx.c:188: error: `EINVAL&apos; undeclared (first use in this function)
pth_uctx.c:190: error: `EPERM&apos; undeclared (first use in this function)
pth_uctx.c:195: error: `TRUE&apos; undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:201: error: parse error before &quot;uctx_from&quot;
pth_uctx.c: In function `pth_uctx_switch&apos;:
pth_uctx.c:205: error: `uctx_from&apos; undeclared (first use in this function)
pth_uctx.c:205: error: `NULL&apos; undeclared (first use in this function)
pth_uctx.c:205: error: `uctx_to&apos; undeclared (first use in this function)
pth_uctx.c:206: error: `FALSE&apos; undeclared (first use in this function)
pth_uctx.c:206: error: `EINVAL&apos; undeclared (first use in this function)
pth_uctx.c:208: error: `EPERM&apos; undeclared (first use in this function)
pth_uctx.c:211: error: `TRUE&apos; undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:220: error: parse error before &quot;uctx&quot;
pth_uctx.c: In function `pth_uctx_destroy&apos;:
pth_uctx.c:223: error: `uctx&apos; undeclared (first use in this function)
pth_uctx.c:223: error: `NULL&apos; undeclared (first use in this function)
pth_uctx.c:224: error: `FALSE&apos; undeclared (first use in this function)
pth_uctx.c:224: error: `EINVAL&apos; undeclared (first use in this function)
pth_uctx.c:233: error: `TRUE&apos; undeclared (first use in this function)
make: *** [pth_uctx.lo] Error 1
make: *** Waiting for unfinished jobs....

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


Expected Results:  
it should compile

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.4.2, glibc-2.3.4.20041102-r0,
2.6.10-rc2 i686)
=================================================================
System uname: 2.6.10-rc2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.10
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=pentium4 -Os -s -pipe -fomit-frame-pointer -funroll-loops&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=pentium4 -Os -s -pipe -fomit-frame-pointer -funroll-loops&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://gentoo.inode.at/source/&quot;
MAKEOPTS=&quot;-j6&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;X alsa apm avi berkdb bitmap-fonts cdr crypt cups dillo directfb dvd encode
f77 fam fbcon foomaticdb fortran gdbm gif gpm gtk gtk2 gtkhtml imagemagick imlib
jpeg libg++ libwww mad maildir mbox mikmod mmx motif moznoxft mpeg ncurses nls
nntp nptl nptlonly oggvorbis opengl oracle oss pam pdflib perl png python
quicktime readline samba sdl slang spell sse sse2 ssl svga tcpd tiff truetype
x86 xml xml2 xmms xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugs-gentoo@blubbmon.de</who>
            <bug_when>2004-11-30 03:08:39 0000</bug_when>
            <thetext>There is a workaround discribed in http://forums.gentoo.org/viewtopic.php?t=232109

In short:
ebuild /usr/portage/dev-libs/pth/pth-2.0.2.ebuild install
ebuild /usr/portage/dev-libs/pth/pth-2.0.2.ebuild qmerge

HTH.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2004-11-30 05:27:21 0000</bug_when>
            <thetext>*** Bug 72908 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2004-11-30 06:25:02 0000</bug_when>
            <thetext>Hi,

I got the ebuild working (on ~x86) after changing MAKEOPTS to -j1

Poly</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>devurandom@gmx.net</who>
            <bug_when>2004-11-30 06:51:25 0000</bug_when>
            <thetext>The critical line seems to be:
pth_uctx.c:31:19: pth_p.h: No such file or directory</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flo@dotbox.org</who>
            <bug_when>2004-11-30 07:35:49 0000</bug_when>
            <thetext>That works:

MAKEOPTS=&quot;-j1&quot; emerge -1 pth</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swegener@gentoo.org</who>
            <bug_when>2004-11-30 08:09:10 0000</bug_when>
            <thetext>Fixed in CVS. Thanks for reporting!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>