Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72898 - pth-2.0.2 wont compile
Summary: pth-2.0.2 wont compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 72908 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-30 02:22 UTC by Florian Engelhardt
Modified: 2004-11-30 08:09 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Engelhardt 2004-11-30 02:22:19 UTC
pth-2.0.2 does not compile

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

Actual Results:  
Now please type `make' to compile. Good luck.

./shtool scpp -o pth_p.h -t pth_p.h.in -Dcpp -Cintern -M '==#==' 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 "size_t"
pth_uctx.c:37: warning: no semicolon at end of struct or union
pth_uctx.c:39: error: parse error before "uc_mctx"
pth_uctx.c:39: warning: data definition has no type or storage class
pth_uctx.c:45: error: parse error before '*' token
pth_uctx.c: In function `pth_uctx_create':
pth_uctx.c:47: error: `pth_uctx_t' 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 "uctx"
pth_uctx.c:50: error: `puctx' undeclared (first use in this function)
pth_uctx.c:50: error: `NULL' undeclared (first use in this function)
pth_uctx.c:51: error: `FALSE' undeclared (first use in this function)
pth_uctx.c:51: error: `EINVAL' undeclared (first use in this function)
pth_uctx.c:54: error: `uctx' undeclared (first use in this function)
pth_uctx.c:54: error: parse error before "malloc"
pth_uctx.c:62: error: `pth_mctx_t' undeclared (first use in this function)
pth_uctx.c:67: error: `TRUE' undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:72: error: parse error before "pth_mctx_t"
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 "uctx_after"
pth_uctx.c:74: warning: data definition has no type or storage class
pth_uctx.c:77: error: parse error before '}' token
pth_uctx.c:77: warning: data definition has no type or storage class
pth_uctx.c:78: error: parse error before "pth_uctx_trampoline_ctx"
pth_uctx.c:78: warning: data definition has no type or storage class
pth_uctx.c: In function `pth_uctx_trampoline':
pth_uctx.c:83: error: syntax error before "ctx"
pth_uctx.c:86: error: `ctx' undeclared (first use in this function)
pth_uctx.c:86: error: request for member `mctx_parent' in something not a
structure or union
pth_uctx.c:87: error: request for member `uctx_this' in something not a
structure or union
pth_uctx.c:88: error: request for member `uctx_after' in something not a
structure or union
pth_uctx.c:89: error: request for member `start_func' in something not a
structure or union
pth_uctx.c:90: error: request for member `start_arg' in something not a
structure or union
pth_uctx.c:99: error: `NULL' undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:112: error: parse error before "uctx"
pth_uctx.c:115: error: `pth_uctx_make' declared as function returning a function
pth_uctx.c:115: error: parse error before "void"
pth_uctx.c:119: warning: data definition has no type or storage class
pth_uctx.c:153: error: parse error before '&' token
pth_uctx.c:153: warning: data definition has no type or storage class
pth_uctx.c:168: error: parse error before "uctx"
pth_uctx.c: In function `pth_uctx_save':
pth_uctx.c:171: error: `uctx' undeclared (first use in this function)
pth_uctx.c:171: error: `NULL' undeclared (first use in this function)
pth_uctx.c:172: error: `FALSE' undeclared (first use in this function)
pth_uctx.c:172: error: `EINVAL' undeclared (first use in this function)
pth_uctx.c:176: error: `TRUE' undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:184: error: parse error before "uctx"
pth_uctx.c: In function `pth_uctx_restore':
pth_uctx.c:187: error: `uctx' undeclared (first use in this function)
pth_uctx.c:187: error: `NULL' undeclared (first use in this function)
pth_uctx.c:188: error: `FALSE' undeclared (first use in this function)
pth_uctx.c:188: error: `EINVAL' undeclared (first use in this function)
pth_uctx.c:190: error: `EPERM' undeclared (first use in this function)
pth_uctx.c:195: error: `TRUE' undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:201: error: parse error before "uctx_from"
pth_uctx.c: In function `pth_uctx_switch':
pth_uctx.c:205: error: `uctx_from' undeclared (first use in this function)
pth_uctx.c:205: error: `NULL' undeclared (first use in this function)
pth_uctx.c:205: error: `uctx_to' undeclared (first use in this function)
pth_uctx.c:206: error: `FALSE' undeclared (first use in this function)
pth_uctx.c:206: error: `EINVAL' undeclared (first use in this function)
pth_uctx.c:208: error: `EPERM' undeclared (first use in this function)
pth_uctx.c:211: error: `TRUE' undeclared (first use in this function)
pth_uctx.c: At top level:
pth_uctx.c:220: error: parse error before "uctx"
pth_uctx.c: In function `pth_uctx_destroy':
pth_uctx.c:223: error: `uctx' undeclared (first use in this function)
pth_uctx.c:223: error: `NULL' undeclared (first use in this function)
pth_uctx.c:224: error: `FALSE' undeclared (first use in this function)
pth_uctx.c:224: error: `EINVAL' undeclared (first use in this function)
pth_uctx.c:233: error: `TRUE' 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="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -Os -s -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -Os -s -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="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/"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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"
Comment 1 Andre Kloth 2004-11-30 03:08:39 UTC
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.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-30 05:27:21 UTC
*** Bug 72908 has been marked as a duplicate of this bug. ***
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2004-11-30 06:25:02 UTC
Hi,

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

Poly
Comment 4 Dennis Schridde 2004-11-30 06:51:25 UTC
The critical line seems to be:
pth_uctx.c:31:19: pth_p.h: No such file or directory
Comment 5 Florian Engelhardt 2004-11-30 07:35:49 UTC
That works:

MAKEOPTS="-j1" emerge -1 pth
Comment 6 Sven Wegener gentoo-dev 2004-11-30 08:09:10 UTC
Fixed in CVS. Thanks for reporting!