Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38872 - pwlib-1.5.2-r2 does not build with linux-headers-2.6.0
Summary: pwlib-1.5.2-r2 does not build with linux-headers-2.6.0
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefan Knoblich (RETIRED)
URL:
Whiteboard:
Keywords:
: 40872 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-20 20:22 UTC by Michel Valdrighi
Modified: 2004-09-27 23:00 UTC (History)
2 users (show)

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


Attachments
pwlib videoio.h patch (pwlib-1.5.0-gentoo.patch,391 bytes, patch)
2004-02-11 00:40 UTC, Steve Arnold
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Valdrighi 2004-01-20 20:22:50 UTC
Building pwlib fails with some time.h errors, probably something that changed in 2.6.0 headers.

Reproducible: Always
Steps to Reproduce:

Actual Results:  
g++ -DP_LINUX=2.6.1-love5 -ffunction-sections -fdata-sections -D_REENTRANT 
-Wall  -fPIC -DP_USE_PRAGMA -DPHAS_TEMPLATES
-I/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/include/ptlib/unix
-I/usr/include/pwlib -I/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/include -fPIC
-DP_USE_PRAGMA -Os -DNDEBUG -march=athlon-xp -O2 -pipe -fomit-frame-pointer
-DPTRACING=1 -x c++ -c ../../ptclib/asner.cxx -o
/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/lib/obj_linux_x86_r/asner.o
In file included from
/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/include/ptlib/unix/ptlib/socket.h:110,
                 from
/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/include/ptlib/ipsock.h:227,
                 from
/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/include/ptlib/unix/ptlib/ipsock.h:80,
                 from
/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/include/ptclib/http.h:234,
                 from
/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/include/ptclib/pxml.h:66,
                 from ../../ptclib/asner.cxx:299:
/usr/include/sys/time.h:57: error: redefinition of `struct timezone'
/usr/include/linux/time.h:25: error: previous definition of `struct timezone'
/usr/include/sys/time.h:94: error: erreur d'analyse syntaxique before numeric
   constant
/usr/include/sys/time.h:108: error: redefinition of `struct itimerval'
/usr/include/linux/time.h:369: error: previous definition of `struct itimerval'
make[1]: ***
[/var/tmp/portage/pwlib-1.5.2-r2/work/pwlib/lib/obj_linux_x86_r/asner.o] Erreur 1


Expected Results:  
Completed building of pwlib, of course.

Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0,
2.6.1-love5)
=================================================================
System uname: 2.6.1-love5 i686 AMD Athlon(tm) XP processor 1800+
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/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/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apache2 avi berkdb cdr cjk clisp crypt cups curl doc
emacs encode ffmpeg flash foomaticdb freetds freewnn gd gdbm gif gnome gnomedb
gpm gstreamer gtk gtk2 imap imlib innodb ipv6 java jikes jpeg kakasi ldap leim
libg++ libgda libwww mad matroska mbox motif mozilla mpeg mysql ncurses nls nptl
odbc oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline
ruby samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype usb wmf
wxwindows x86 xchattext xface xml xml2 xv xvid zlib"
Comment 1 Steve Arnold archtester gentoo-dev 2004-02-08 17:35:05 UTC
I had this with kernel 2.6.1 headers too.  There's a fix in portage for 1.5.0 
(look for the 1.5.0-r1 ebuild) but it didn't work on 1.5.2 :(  Openh323 still 
fails for me (and I'm still working on it) and I haven't even looked at 
gnomemeeting yet (all were failing due to the same time.h silliness).  A global 
fix would be cool, but I don't pretend to have it all worked out...
Comment 2 Michel Valdrighi 2004-02-08 19:03:48 UTC
These issues are resolved in the CVS versions of pwlib, openh323, and gnomemeeting.

I haven't tried building them in the last two weeks, but at the last attempt they all built... and gnomemeeting would segfault on startup.
(You can't run 0.98.5 with CVS versions of pwlib and openh323.)
Comment 3 Steve Arnold archtester gentoo-dev 2004-02-11 00:37:32 UTC
I finally got through all three builds, ie, pwlib, openh323, and gnomemeeting.

I started with the following small patch (as mentioned, it only seems to work 
with the 1.5.0 ebuild of pwlib).  It all seems to be related tot he time.h 
silliness, but I didn't have to revert to any CVS versions or anything outside 
portage.
Comment 4 Steve Arnold archtester gentoo-dev 2004-02-11 00:40:44 UTC
Created attachment 25381 [details, diff]
pwlib videoio.h patch

Small patch for include/ptlib/unix/ptlib/videoio.h that fixes the time.h
include bug.
Comment 5 Dale K Dicks 2004-03-31 05:26:34 UTC
I'm getting this error with -r3 

g++ -DP_LINUX=2.6.4 -ffunction-sections -fdata-sections -D_REENTRANT  -Wall  -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include/ptlib/unix -I/usr/include/pwlib -I/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include -DP_USE_PRAGMA -Os -DNDEBUG -O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -msse -msse2 -mmmx -pipe -x c++ -c main.cxx -o obj_linux_x86_r/main.o
g++ -o obj_linux_x86_r/asnparser -O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -msse -msse2 -mmmx -pipe -Wl,--gc-sections -DP_LINUX=2.6.4 -ffunction-sections -fdata-sections -D_REENTRANT -I/usr/include  -s -L/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/lib   ./obj_linux_x86_r/asn_grammar.o  ./obj_linux_x86_r/asn_lex.o  ./obj_linux_x86_r/main.o -lpt_linux_x86_r -lpthread -llber -lldap -lldap_r -lssl -lcrypto -lexpat -lSDL -lresolv -ldl 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libldap_r.so: undefined reference to `pthread_kill_other_threads_np'
collect2: ld returned 1 exit status
make[1]: *** [obj_linux_x86_r/asnparser] Error 1
make[1]: Leaving directory `/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/tools/asnparser'
make: *** [opt] Error 2

!!! ERROR: dev-libs/pwlib-1.5.2-r3 failed.
!!! Function src_compile, Line 61, Exitcode 2
!!! make failed
Comment 6 Steve Arnold archtester gentoo-dev 2004-04-05 19:10:08 UTC
Trying to upgrade after my previous success is bombing with everything over 
1.5.0-r1 of pwlib (various random segfaults and whatnot).  This also ocurrs 
frequently with many kde ebuilds, but if I keep trying they will usually 
build successfully (sometimes it requires a -j1, no distcc, etc).

No amount of trying, however, seems to make pwlib (anything newer than above) 
build successfully against the current 2.6.4 headers, rebuilt glibc, etc.  I'm 
not sure what the deal is, but it's getting to be a PITA.  Any movement 
would be great :)
Comment 7 Steve Arnold archtester gentoo-dev 2004-04-05 19:19:19 UTC
I just rebuilt 1.5.0-r1 (to see if I could make gnomemeeting work again) but the 
current stable 1.5.2-r3 will *not* build for me :(  My system info:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4)
=================================================================
System uname: 2.6.4 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.13p1
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -mcpu=athlon-xp -Os -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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="-march=i686 -mcpu=athlon-xp -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs distcc sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://megatron.arnolds.bogus/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://megatron.arnolds.bogus/gentoo-portage"
USE="3dnow X aalib acl acpi alsa apm arts avi bonobo cdr crypt cups dga directfb dvd emacs encode esd evo fam fbcon foomaticdb freetype freetype2 gb gd gdbm gif gnome gpm gtk gtk2 gtkhtml imap imlib ipv6 java jpeg junit kde lame lcms ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pda pdflib perl plotutils png python qt quicktime readline samba sasl sdl slang slp spell sse ssl tcltk tcpd tetex tiff truetype video_cards_radeon vorbis x86 xml xml2 xmms xv zeo zlib"
Comment 8 Steve Arnold archtester gentoo-dev 2004-04-05 21:34:34 UTC
*** Bug 40872 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2004-04-06 11:57:35 UTC
does pwlib-1.6.x work ?
Comment 10 Steve Arnold archtester gentoo-dev 2004-04-06 18:09:49 UTC
Nope :(  I just updated to gcc 3.3.3 (which seemed to help with some other
stuff) and tried again; both 1.6.3 and 1.5.2 fail in a similar (but not 
identical) place.  My emerge info is the same as above, except for the 
bump to gcc 3.3.3 (I tried with and without distcc, and even went to -j1).

Here's the output of the 1.5.2-3 ebuild barf:

g++ -DP_LINUX=2.6.4 -ffunction-sections -fdata-sections -D_REENTRANT  -Wall  -fPIC -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include/ptlib/unix -I/usr/include/pwlib -I/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include -fPIC -DP_USE_PRAGMA -Os -DNDEBUG -march=i686 -mcpu=athlon-xp -O2 -pipe -DPTRACING=1 -x c++ -c ../../ptclib/httpsvc.cxx -o /var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/lib/obj_linux_x86_r/httpsvc.o
../../ptclib/httpsvc.cxx: In function `void ServiceOnLoadedText(PString&)':
../../ptclib/httpsvc.cxx:2012: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/pwlib-1.5.2-r3/temp/ccisKYFT.out file, please attach this to your bugreport
distcc[6469] ERROR: compile on localhost failed
make[1]: *** [/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/lib/obj_linux_x86_r/httpsvc.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/src/ptlib/unix'
make: *** [opt] Error 2

!!! ERROR: dev-libs/pwlib-1.5.2-r3 failed.
!!! Function src_compile, Line 61, Exitcode 2
!!! make failed
Comment 11 Stefan Knoblich (RETIRED) gentoo-dev 2004-04-07 16:04:14 UTC
ok, built a new instance on my test system:

profile: 2004.0
linux-headers-2.6.4
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
pwlib-1.5.2-r3 (current stable)

running in a chroot

portage snapshot (emerge-webrsync), timestamp:
Wed, 07 Apr 2004 01:41:02 +0000

and no problems compiling pwlib:
alpha / # genlop -t pwlib
 * dev-libs/pwlib
     Wed Apr  7 20:13:57 2004 --> dev-libs/pwlib-1.5.2-r3
       merge time: 6 minutes and 47 seconds.
 
 merged totally 1 ebuild in 6 minutes and 47 seconds.

[ebuild   R   ] dev-libs/pwlib-1.5.2-r3  +ldap +sdl +ssl

emerge info:
Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-nd1)
=================================================================
System uname: 2.4.25-nd1 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="3dnow X apm avi berkdb crypt cups dga encode foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg ldap libg++ libwww mad maildir mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell sse ssl tcpd truetype x86 xml2 xmms xv zlib"

system information:

model name      : AMD Athlon(tm) XP 2800+
cpu MHz         : 2088.124
memory		: 1024MB Corsair PC400
Comment 12 Martijn Koster 2004-05-01 23:56:18 UTC
I ran into the same error as Dale in #5:

  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libldap_r.so:
    undefined reference to `pthread_kill_other_threads_np

when building pwlib 1.5.2-r3. re-emerging openldap fixed it.

$ emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.4.8
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imap imlib java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xv zlib"
Comment 13 SpanKY gentoo-dev 2004-09-27 23:00:07 UTC
the build should be fine now; everything else is unrelated to the original bug reported