Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc doesn't compile with nptl - why?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
revo
n00b
n00b


Joined: 02 Feb 2003
Posts: 57

PostPosted: Tue Jul 22, 2003 7:55 am    Post subject: glibc doesn't compile with nptl - why? Reply with quote

i'd like to try glibc with nptl. But somehow i can't compile it.
I have tried to compile it against 2.6.0-test1-mm1, -mm2 and development-sources-2.6.0-test1, all stop with the same error.
I have even tried an emerge -e glibc as i thought that it might have something to do with some needed pakage compiled against 2.4. /usr/src/linux is pointing to mm-sources now.
gcc is 3.2.3-r1, binutils is 2.14.90.0.2. i tried glibc-2.3.2-r1 from portage. the problem is this: it configures fine, tells me md5 of nptl is ok (so it uses it) and stops at this point:

Code:
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/csu/version.o
In file included from ../sysdeps/unix/sysv/linux/sys/sysctl.h:29,
                 from ../include/sys/sysctl.h:2,
                 from ../sysdeps/unix/sysv/linux/dl-osinfo.h:22,
                 from ../sysdeps/generic/libc-start.c:33:
/lib/modules/2.6.0-test1-mm2/build/include/linux/sysctl.h:33: parse error before '*' token
/lib/modules/2.6.0-test1-mm2/build/include/linux/sysctl.h:35: parse error before '*' token
/lib/modules/2.6.0-test1-mm2/build/include/linux/sysctl.h:36: parse error before '*' token
/lib/modules/2.6.0-test1-mm2/build/include/linux/sysctl.h:37: parse error before '*' token
/lib/modules/2.6.0-test1-mm2/build/include/linux/sysctl.h:40: parse error before '}' token
../sysdeps/generic/libc-start.c: In function `__libc_start_main':
../sysdeps/generic/libc-start.c:166: warning: assignment of read-only variable `ptr'
make[2]: *** [/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/csu/libc-start.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.2-r1 failed.
!!! Function src_compile, Line 404, Exitcode 2
!!! (no error message)


it cfompiles fine without nptl. am i doing something very wrong? i've searched forums and bugs.gentoo.org but can't find any help.
any hints?

thanks, revo
_________________
3 wang-tan soup, 3 garlic chicken and 3 orders of fortune cookies, that's it. - and then?
Back to top
View user's profile Send private message
Lin_Matt
Guru
Guru


Joined: 23 Jun 2002
Posts: 581
Location: TechWasteland (Mississippi)

PostPosted: Tue Jul 22, 2003 2:22 pm    Post subject: Reply with quote

Ya need this patch:
http://www.breakmygentoo.net/ebuilds/sysctl_libc.patch

Apply it as follows:
Code:

cd /usr/src/
patch -p0 /path/to/sysctl_libc.patch


and after your new glibc emerges, reverse the patch :
Code:

patch -p0 -R /path/to/sysctl_libc.patch


HTH!
Back to top
View user's profile Send private message
revo
n00b
n00b


Joined: 02 Feb 2003
Posts: 57

PostPosted: Tue Jul 22, 2003 9:04 pm    Post subject: Reply with quote

well, maybe i am too stupid, but the patch won't apply. when i enter the command patch -p0 ... it starts, sits there and waits till i kill it. top shows no cpu time for it and 0.1% consumption of my memory. i changed the linux-2.5.69 in the second line to 2.6.0-test1-mm2 and just to linux, but it behaves the same.
_________________
3 wang-tan soup, 3 garlic chicken and 3 orders of fortune cookies, that's it. - and then?
Back to top
View user's profile Send private message
Lin_Matt
Guru
Guru


Joined: 23 Jun 2002
Posts: 581
Location: TechWasteland (Mississippi)

PostPosted: Tue Jul 22, 2003 9:09 pm    Post subject: Reply with quote

ehhh... no... my stupidity... the patch commands should be:
Code:

patch -p0 < /path/to/sysctl_libc.patch

patch -p0 -R < /path/to/sysctl_libc.patch
Back to top
View user's profile Send private message
revo
n00b
n00b


Joined: 02 Feb 2003
Posts: 57

PostPosted: Tue Jul 22, 2003 9:24 pm    Post subject: Reply with quote

oh well, obviously i did a typo... :oops:

obviously it has to be
Code:
patch -p0 -i /path/to/sysctl_libc.patch

then it works... i forgot the -i ...

thanks you very much! wouldn't it be a great deal to modify the ebuild of glibc in portage in such a way that it applies the patch itself and reverses it after emerging glibc?
_________________
3 wang-tan soup, 3 garlic chicken and 3 orders of fortune cookies, that's it. - and then?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum