Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148446 - dev-libs/pth-1.4.0 fail to compile
Summary: dev-libs/pth-1.4.0 fail to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-20 19:09 UTC by Brad Beglin
Modified: 2006-09-21 13:43 UTC (History)
1 user (show)

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


Attachments
pth_p.h file (pth_p.h,25.96 KB, text/plain)
2006-09-21 06:58 UTC, Brad Beglin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Beglin 2006-09-20 19:09:59 UTC
Now please type `[1mmake[0;10m' 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_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
gcc -c -I. -O3 -march=pentium2 -pipe test_std.c
gcc -c -I. -O3 -march=pentium2 -pipe test_common.c
gcc -c -I. -O3 -march=pentium2 -pipe test_mp.c
gcc -c -I. -O3 -march=pentium2 -pipe test_misc.c
gcc -c -I. -O3 -march=pentium2 -pipe test_philo.c
/bin/wc: line 1: syntax error near unexpected token `;'
/bin/wc: line 1: `est_strncpy ();'
gcc -c -I. -O3 -march=pentium2 -pipe test_sig.c
gcc -c -I. -O3 -march=pentium2 -pipe test_select.c
gcc -c -I. -O3 -march=pentium2 -pipe test_httpd.c
gcc -c -I. -O3 -march=pentium2 -pipe test_sfio.c
./libtool --mode=compile --quiet gcc -c -I. -O3 -march=pentium2 -pipe pth_debug.c
./libtool --mode=compile --quiet gcc -c -I. -O3 -march=pentium2 -pipe pth_ring.c
In file included from pth_debug.c:29:
pth_string.c:694:8: error: ""pth_p.h.in"" after #line is not a positive integer
make: *** [pth_debug.lo] Error 1
make: *** Waiting for unfinished jobs....
In file included from pth_ring.c:42:
pth_string.c:694:8: error: ""pth_p.h.in"" after #line is not a positive integer
make: *** [pth_ring.lo] Error 1

!!! ERROR: dev-libs/pth-1.4.0 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 608:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Gentoo Base System version 1.12.5
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16-hardened-r11 i686)
=================================================================
System uname: 2.6.16-hardened-r11 i686 Celeron (Mendocino)
Last Sync: Thu, 21 Sep 2006 00:00:08 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O3 -march=pentium2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi apm bzip2 crypt dri fastcgi gdbm hardened hardenedphp imap input_devices_keyboard input_devices_mouse kernel_linux libcaca minimal mysql mysqli nptl nptlonly opengl php python readline session ssl symlink tcpd type1-fonts udev unicode usb userland_GNU video_cards_mach64 xml xorg"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-21 01:36:04 UTC
Can you please attach the file pth_p.h from your compilation.
It should be located at:
/var/tmp/portage/pth-1.4.0/work/pth-1.4.0
Comment 2 Brad Beglin 2006-09-21 06:58:55 UTC
Created attachment 97638 [details]
pth_p.h file
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-21 07:17:33 UTC
Thanks.
Found the problem...

Last statement is:
#line  "pth_p.h.in"
While it should be:
#line 105 "pth_p.h.in"

Now we just need to know why... :)
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-21 07:31:04 UTC
Can you please try:
MAKEOPTS="-j1" emerge --oneshot pth
Comment 5 Brad Beglin 2006-09-21 08:14:07 UTC
compile still fails with MAKEOPTS="-j1" --oneshot

Now please type `[1mmake[0;10m' 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_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
/bin/wc: line 1: syntax error near unexpected token `;'
/bin/wc: line 1: `est_strncpy ();'
./libtool --mode=compile --quiet gcc -c -I. -O3 -march=pentium2 -pipe pth_debug.c
In file included from pth_debug.c:29:
pth_string.c:694:8: error: ""pth_p.h.in"" after #line is not a positive integer
make: *** [pth_debug.lo] Error 1

!!! ERROR: dev-libs/pth-1.4.0 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 608:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-21 10:43:14 UTC
Something in the following command does not work at your side:
( echo '' ; sed -e <pth_p.h.in '1,/^==#== *$/p' -e d ) | wc -l | sed -e 's;^ *\([0-9]*\) *$;\1;'

I cannot figure out why it fails.
I tried sh, bash, csh, busybox all works!

Can you please cd to /var/tmp/portage/pth-1.4.0/work/pth-1.4.0, and try to run this command?
The output should be 105.
Comment 7 Brad Beglin 2006-09-21 11:54:58 UTC
command returns:

/bin/wc: line 1: syntax error near unexpected token `;'
/bin/wc: line 1: `est_strncpy ();'
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-21 12:02:30 UTC
(In reply to comment #7)
> command returns:
> 
> /bin/wc: line 1: syntax error near unexpected token `;'
> /bin/wc: line 1: `est_strncpy ();'

Yes, I know. I could see this in your previous messages... :)

I need to know why it fails...

Try:
echo alon | wc -l
wc -l <pth_p.h.in
sed -e <pth_p.h.in '1,/^==#== *$/p' -e d > /dev/null
( echo '' ; sed -e <pth_p.h.in '1,/^==#== *$/p' -e d ) > /dev/null
( echo '' ; sed -e <pth_p.h.in '1,/^==#== *$/p' -e d ) | wc -l

Since I don't see why this error happens, I need a little help from your side...
Each individual command should succeed... If it fails, attach the output of the first one which fails.
Comment 9 Brad Beglin 2006-09-21 12:22:43 UTC
Alon, I was not trying to be smart, that is really what the terminal outputted to me when I executed the command you told me to execute. I am trying to do exactly what you say...

echo alon | wc -l fails outputting the same message as before

wc -l <pth_p.h.in & ( echo '' ; sed -e <pth_p.h.in '1,/^==#== *$/p' -e d ) | wc -l also fail with the same output as before also

the other two commonds work though :)

Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-21 12:33:54 UTC
(In reply to comment #9)
> Alon, I was not trying to be smart, that is really what the terminal outputted
> to me when I executed the command you told me to execute. I am trying to do
> exactly what you say...

Oh... I didn't meant to say you are being smart, just to explain why I need your help.

> echo alon | wc -l fails outputting the same message as before

Wow... so your wc is invalid!

Try to see if the following gives you the same output:
# which wc
/usr/bin/wc
# ls -l /usr/bin/wc
lrwxrwxrwx 1 root root 7 2006-09-03 05:10 /usr/bin/wc -> /bin/wc

Maybe re-emerge the wc:
# emerge --oneshot sys-apps/coreutils
# revdep-rebuild
Comment 11 Brad Beglin 2006-09-21 12:47:12 UTC
all right, just making sure; um, I got the same outputs as you for the which and ls command. I am re-emerging coreutils and will let you know if I can compile pth when I am done re-emerging.
Comment 12 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-21 12:50:32 UTC
(In reply to comment #11)
> all right, just making sure; um, I got the same outputs as you for the which
> and ls command. I am re-emerging coreutils and will let you know if I can
> compile pth when I am done re-emerging.

All you need to do after re-emerge is:

# echo alon | wc -l

If that fails, we need to know which wc is run... And why it fails...
There is no point in testing pth as long as a basic component of your system is not working properly.
Comment 13 Brad Beglin 2006-09-21 13:05:59 UTC
wc is re-emerged and echo alon | wc -l works. Also the output of the original command you gave me is now correct, so I am re-attemping to emerge pth.
Comment 14 Brad Beglin 2006-09-21 13:06:49 UTC
everything emerge nicely. Thanks a lot.
Comment 15 Brad Beglin 2006-09-21 13:11:12 UTC
Oops, should have read the resolution discription, changing to invalid.
Comment 16 Brad Beglin 2006-09-21 13:11:44 UTC
correcting resolution state
Comment 17 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-21 13:43:54 UTC
I am glad.

Had I were you, I would have re-compiled my whole system. One basic invalid component may suggest there are others.

# emerge --sync
# emerge --emptytree system
# emerge --emptytree world