Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6 Kernel (and headers) + NPTL Guide
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Kow
Apprentice
Apprentice


Joined: 28 Dec 2003
Posts: 227

PostPosted: Wed Apr 07, 2004 1:03 am    Post subject: Reply with quote

IMPORTANT:
When I tried doing a bootstrap-2.6 or just simple glibc compile using glibc-2.3.3_pre20040207 during a 2004.0 install on a x86_64 architecture (amd64) using 2.6.4 headers it failed with a bunch of already defined errors, however using 2.6.3-r1 it worked fine. I recommend using 2.6.3-r1 headers for now, as it fixed all my glibc compilation errors which were not correct by any CFLAG or arch mask or even glibc version changing modifications.
_________________
-Kow
Back to top
View user's profile Send private message
brettlpb
Apprentice
Apprentice


Joined: 27 May 2003
Posts: 197

PostPosted: Thu Apr 08, 2004 2:08 pm    Post subject: Reply with quote

Hmm, last night I did a new install.

I added the use flag, I unmasked headers-2.6.3-r1, I used ~x86 and I did bootstrap-2.6

Code:

/lib/glibc.so.6
GNU C Library stable release version 2.3.3, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7).Compiled on a Linux 2.6.3 system on 2004-04-07.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.


I guess I don't really mind if nptl isn't working... the question is, since I don't see it here, should I take it out of my use flags? Are there any apps that use the nptl flag that won't compile right for non-nptl systems?
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Fri Apr 09, 2004 3:34 am    Post subject: Reply with quote

brettlpb, are you sure you had nptl in your USE falgs when
you bootstrapped?
can you post the output of
Code:

emerge info

hth
Back to top
View user's profile Send private message
monkey89
Guru
Guru


Joined: 08 Mar 2004
Posts: 596

PostPosted: Sat Apr 24, 2004 5:28 pm    Post subject: Reply with quote

Just a little success report:

Installed Gentoo by adding nptl to the use flags as the original doc said, emerge sync'd, made the /etc/portage directory, made a text file package.keywords and added:

sys-libs/zlib ~x86
sys-kernel/linux-headers -*
sys-devel/gcc ~x86
x11-base/xfree ~x86
sys-libs/glibc ~x86
sys-devel/binutils ~x86
sys-devel/automake ~x86
app-emulation/wine ~x86

(Actually, I removed the wine and xfree lines, since this is a server machine)

Then, I used bootstrap-2.6.sh, did an emerge system, and for the kernel, used "emerge =development-sources-2.6.5", since it was going to install 2.6.6_rc2 and I prefer stability (and matching headers), but 2.6.6_rc2 should be fine. Rebooted and things worked fine, so I did "emerge glibc", restarted when finished, and when I turned it back on, did "/lib/libc.so.6" and it showed nptl as installed.

Just keeping people who are just now reading this thread up to date on what can be done to install nptl at this point, since there are quite a few posts in here.
Back to top
View user's profile Send private message
jonaswidarsson
Apprentice
Apprentice


Joined: 16 Jan 2004
Posts: 273
Location: Göteborg, Sweden

PostPosted: Sat Apr 24, 2004 6:31 pm    Post subject: Reply with quote

monkey89 wrote:
Just a little success report:
I have managed to do it as well, on an existing install.
I have not bootstrapped with the 2.6 script. I used the 2.4 script when installing it some months ago.
I added those lines in that file too, except for gcc. Then a simple emerge -e world made a success.
Back to top
View user's profile Send private message
nadin
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2003
Posts: 103

PostPosted: Mon May 03, 2004 10:15 pm    Post subject: Reply with quote

Why do I only get the benefit if I do a emerge -e world?

Nadin
Back to top
View user's profile Send private message
t_2199
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2004
Posts: 146

PostPosted: Wed May 05, 2004 9:16 pm    Post subject: Reply with quote

nadin wrote:
Why do I only get the benefit if I do a emerge -e world?

Nadin


No, you only need to recompile glibc and all progs which are using linuxthreads. After you have recompiled them theyll use NPTL (correct me If Im wrong)
Back to top
View user's profile Send private message
nadin
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2003
Posts: 103

PostPosted: Mon May 10, 2004 2:29 pm    Post subject: Reply with quote

So I would use emerge -e world since I have no idea whcih programs are using linuxthreads?

Nadin
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon May 10, 2004 3:01 pm    Post subject: Reply with quote

Just be caseful doing update world. It can be catastrophic.

do emerge -p world to see what can be updated and search forum for threads about update world going wrong . Best to do bit by bit.

HTH
Back to top
View user's profile Send private message
nadin
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2003
Posts: 103

PostPosted: Sun Jun 13, 2004 12:52 am    Post subject: Reply with quote

Is there any way of getting it to work correctly when boostraping or do I have to wait for a 2.6 live cd to come out?

I wonder if Knoppix with the 2.6 kernel might save me the trouble have having to reemerge everything after ther initial reboot
Back to top
View user's profile Send private message
ka0ttic
Retired Dev
Retired Dev


Joined: 23 Oct 2003
Posts: 46
Location: Ormond Beach, FL

PostPosted: Sun Jun 13, 2004 1:03 am    Post subject: Reply with quote

nadin wrote:
Is there any way of getting it to work correctly when boostraping or do I have to wait for a 2.6 live cd to come out?

I wonder if Knoppix with the 2.6 kernel might save me the trouble have having to reemerge everything after ther initial reboot


Just boot the 'smp' or 'smp-nofb' kernel on the gentoo livecd. This will provide you with a 2.6 kernel.
Back to top
View user's profile Send private message
nadin
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2003
Posts: 103

PostPosted: Mon Jun 14, 2004 1:26 pm    Post subject: Reply with quote

crap, I just finished stage 3 on my laptop

oh well,

at least ill know for next time

Thanks,

Nadin
Back to top
View user's profile Send private message
seltrus
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 102

PostPosted: Tue Jun 22, 2004 3:14 am    Post subject: Reply with quote

Hi all! I have a couple of gentoo boxen and I decided to give the 2.6 headers a try. Everything went smoothly until I tried to emerge xorg-x11 which produced the following errors. This is the xorg-x11-6.7.0-r1 build, but the 6.7.0 build fails as well. It seems to be complaining about the headers. I built the box using the guide in this thread as a reference.

Code:
gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w    -fno-merge-constants -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I. -I../../../../../../programs/Xserver/include            -I../../../../../../exports/include/X11 -I../../../../../../include/extensions -I../../../../../../programs/Xserver/hw/xfree86/os-support/shared  -I../../../../../.. -I../../../../../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                             -D_GNU_SOURCE                           -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP       -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension    -DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                                 -DXFreeXDGA -DXvExtension                               -DXFree86LOADER  -DXFree86Server       -DXF86VIDMODE                            -DXvMCExtension                        -DSMART_SCHEDULE                                 -DBUILDDEBUG -DXResExtension   -DX_BYTE_ORDER=X_LITTLE_ENDIAN                           -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((7) * 100000) + ((0) * 1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO   -DHAS_MTRR_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC  -DXVENDORNAME='"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'  lnx_KbdMap.c
In file included from /usr/include/linux/bitops.h:4,
                 from /usr/include/asm/cpufeature.h:10,
                 from /usr/include/asm/processor.h:18,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/bitops.h:242: error: syntax error before "int"
In file included from /usr/include/asm/cpufeature.h:10,
                 from /usr/include/asm/processor.h:18,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/bitops.h:12: error: syntax error before "int"
/usr/include/linux/bitops.h:87: error: syntax error before "unsigned"
/usr/include/linux/bitops.h:96: error: syntax error before "unsigned"
/usr/include/linux/bitops.h:104: error: syntax error before "unsigned"
/usr/include/linux/bitops.h:111: error: syntax error before "unsigned"
/usr/include/linux/bitops.h:127: error: syntax error before "unsigned"
In file included from /usr/include/asm/processor.h:19,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/msr.h:27: error: syntax error before "void"
In file included from /usr/include/asm/processor.h:20,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/system.h:134: error: syntax error before "unsigned"
/usr/include/asm/system.h:166: error: syntax error before "void"
/usr/include/asm/system.h:182: error: syntax error before "void"
/usr/include/asm/system.h:190: error: syntax error before "void"
/usr/include/asm/system.h:211: error: syntax error before "unsigned"
/usr/include/asm/system.h:246: error: syntax error before "unsigned"
In file included from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/processor.h:130: error: syntax error before "void"
/usr/include/asm/processor.h:143: error: syntax error before "unsigned"
/usr/include/asm/processor.h:153: error: syntax error before "unsigned"
/usr/include/asm/processor.h:163: error: syntax error before "unsigned"
/usr/include/asm/processor.h:173: error: syntax error before "unsigned"
/usr/include/asm/processor.h:211: error: syntax error before "void"
/usr/include/asm/processor.h:221: error: syntax error before "void"
/usr/include/asm/processor.h:273: error: syntax error before "void"
/usr/include/asm/processor.h: In function `__monitor':
/usr/include/asm/processor.h:277: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:277: error: (Each undeclared identifier is reported only once
/usr/include/asm/processor.h:277: error: for each function it appears in.)
/usr/include/asm/processor.h:277: error: syntax error before "volatile"
/usr/include/asm/processor.h: At top level:
/usr/include/asm/processor.h:282: error: syntax error before "void"
/usr/include/asm/processor.h: In function `__mwait':
/usr/include/asm/processor.h:285: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:285: error: syntax error before "volatile"
/usr/include/asm/processor.h: At top level:
/usr/include/asm/processor.h:457: error: syntax error before "void"
/usr/include/asm/processor.h:554: error: syntax error before "void"
/usr/include/asm/processor.h:629: error: syntax error before "void"
/usr/include/asm/processor.h: In function `prefetch':
/usr/include/asm/processor.h:631: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:631: error: syntax error before "volatile"
/usr/include/asm/processor.h: At top level:
/usr/include/asm/processor.h:643: error: syntax error before "void"
/usr/include/asm/processor.h: In function `prefetchw':
/usr/include/asm/processor.h:645: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:645: error: syntax error before "volatile"
In file included from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/prefetch.h: At top level:
/usr/include/linux/prefetch.h:58: error: syntax error before "void"
In file included from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/list.h:45: error: syntax error before "void"
/usr/include/linux/list.h:63: error: syntax error before "void"
/usr/include/linux/list.h:76: error: syntax error before "void"
/usr/include/linux/list.h:87: error: syntax error before "void"
/usr/include/linux/list.h:113: error: syntax error before "void"
/usr/include/linux/list.h:134: error: syntax error before "void"
/usr/include/linux/list.h:147: error: syntax error before "void"
/usr/include/linux/list.h:159: error: syntax error before "void"
/usr/include/linux/list.h:190: error: syntax error before "void"
/usr/include/linux/list.h:200: error: syntax error before "void"
/usr/include/linux/list.h:211: error: syntax error before "void"
/usr/include/linux/list.h:222: error: syntax error before "void"
/usr/include/linux/list.h:233: error: syntax error before "int"
/usr/include/linux/list.h:250: error: syntax error before "int"
/usr/include/linux/list.h:256: error: syntax error before "void"
/usr/include/linux/list.h:275: error: syntax error before "void"
/usr/include/linux/list.h:288: error: syntax error before "void"
/usr/include/linux/list.h:495: error: syntax error before "int"
/usr/include/linux/list.h:500: error: syntax error before "int"
/usr/include/linux/list.h:505: error: syntax error before "void"
/usr/include/linux/list.h:514: error: syntax error before "void"
/usr/include/linux/list.h:540: error: syntax error before "void"
/usr/include/linux/list.h:546: error: syntax error before "void"
/usr/include/linux/list.h:556: error: syntax error before "void"
/usr/include/linux/list.h:586: error: syntax error before "void"
/usr/include/linux/list.h:599: error: syntax error before "void"
/usr/include/linux/list.h:608: error: syntax error before "void"
In file included from /usr/include/linux/spinlock.h:39,
                 from /usr/include/linux/wait.h:15,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/spinlock.h:72: error: syntax error before "void"
/usr/include/asm/spinlock.h:104: error: syntax error before "int"
/usr/include/asm/spinlock.h:114: error: syntax error before "void"
/usr/include/asm/spinlock.h:172: error: syntax error before "void"
/usr/include/asm/spinlock.h: In function `_raw_read_lock':
/usr/include/asm/spinlock.h:177: error: `asm' undeclared (first use in this function)
/usr/include/asm/spinlock.h:177: error: syntax error before "volatile"
/usr/include/asm/spinlock.h: At top level:
/usr/include/asm/spinlock.h:180: error: syntax error before "void"
/usr/include/asm/spinlock.h: In function `_raw_write_lock':
/usr/include/asm/spinlock.h:185: error: `asm' undeclared (first use in this function)
/usr/include/asm/spinlock.h:185: error: syntax error before "volatile"
/usr/include/asm/spinlock.h: At top level:
/usr/include/asm/spinlock.h:191: error: syntax error before "int"
In file included from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/wait.h:56: error: syntax error before "void"
/usr/include/linux/wait.h:62: error: syntax error before "void"
/usr/include/linux/wait.h:69: error: syntax error before "void"
/usr/include/linux/wait.h:77: error: syntax error before "int"
/usr/include/linux/wait.h:86: error: syntax error before "void"
/usr/include/linux/wait.h:94: error: syntax error before "void"
/usr/include/linux/wait.h:100: error: syntax error before "void"
/usr/include/linux/wait.h:206: error: syntax error before "void"
/usr/include/linux/wait.h:216: error: syntax error before "void"
make[7]: *** [lnx_KbdMap.o] Error 1
make[7]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/programs/Xserver/hw/xfree86/os-support/linux'
make[6]: *** [linux] Error 2
make[6]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/programs/Xserver/hw/xfree86/os-support'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/programs/Xserver/hw/xfree86'
make[4]: *** [hw/xfree86] Error 2
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/programs'make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r1/work/xc'
make: *** [World] Error 2
 
!!! ERROR: x11-base/xorg-x11-6.7.0-r1 failed.
!!! Function src_compile, Line 706, Exitcode 2
!!! (no error message)


Here is my /libc/libc.so.6 info:
Code:
GNU C Library stable release version 2.3.3, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6).
Compiled on a Linux 2.6.7 system on 2004-06-20.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        NPTL 0.61 by Ulrich Drepper
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
Report bugs using the `glibcbug' script to <bugs@gnu.org>.


Any ideas?
Back to top
View user's profile Send private message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 225
Location: Rzeszów, POLAND

PostPosted: Tue Jun 22, 2004 11:40 am    Post subject: same problem here... Reply with quote

seltrus wrote:
Quote:
Hi all! I have a couple of gentoo boxen and I decided to give the 2.6 headers a try. Everything went smoothly until I tried to emerge xorg-x11 which produced the following errors. This is the xorg-x11-6.7.0-r1 build, but the 6.7.0 build fails as well. It seems to be complaining about the headers. I built the box using the guide in this thread as a reference.


i have exactly the same prolem as You do. Except unlike You I had several issues before. It didnt start there. Progs like util-linux, iputils, sash, kbd (parts of emerge system) whould not compile because of the missing /usr/include/linux/autoconf.h. I read on forum that partial fix to it would be coping autoconf.h form your /usr/src/linux there. It worked for util-linux, iputils, kbd. Sash still didnt compile.

my system

glibc 2004 06 19 + nptl + linux-headers 2.6.7
kernel 2.6.6-love5

Sash
----------------------------------
original compile problem
Quote:

>>> Source unpacked.
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o sash.o sash.c
sash.c: In function `fileman_completion':
sash.c:536: warning: implicit declaration of function `completion_matches'
sash.c:536: warning: assignment makes pointer from integer without a cast
sash.c: In function `command_generator':
sash.c:561: warning: suggest parentheses around assignment used as truth value
sash.c: At top level:
sash.c:1454: warning: `showPrompt' defined but not used
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmds.o cmds.c
In file included from /usr/include/linux/fs.h:9,
from cmds.c:21:
/usr/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from /usr/include/linux/prefetch.h:14,
from /usr/include/linux/list.h:5,
from /usr/include/linux/wait.h:12,
from /usr/include/linux/fs.h:12,
from cmds.c:21:
/usr/include/asm/processor.h:69: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:69: error: requested alignment is not a constant
In file included from /usr/include/linux/list.h:5,
from /usr/include/linux/wait.h:12,
from /usr/include/linux/fs.h:12,
from cmds.c:21:
/usr/include/linux/prefetch.h: In function `prefetch_range':
/usr/include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
/usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
/usr/include/linux/prefetch.h:64: error: for each function it appears in.)
make: *** [cmds.o] Error 1

!!! ERROR: app-shells/sash-3.7 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)

----------------------------------
Sash -- copied autoconf.h
----------------------------------
Quote:

>>> Source unpacked.
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o sash.o sash.c
sash.c: In function `fileman_completion':
sash.c:536: warning: implicit declaration of function `completion_matches'
sash.c:536: warning: assignment makes pointer from integer without a cast
sash.c: In function `command_generator':
sash.c:561: warning: suggest parentheses around assignment used as truth value
sash.c: At top level:
sash.c:1454: warning: `showPrompt' defined but not used
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmds.o cmds.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_dd.o cmd_dd.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_ed.o cmd_ed.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_grep.o cmd_grep.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_ls.o cmd_ls.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_tar.o cmd_tar.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_gzip.o cmd_gzip.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_find.o cmd_find.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_file.o cmd_file.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_chattr.o cmd_chattr.c
In file included from /usr/include/linux/ext2_fs_sb.h:20,
from /usr/include/linux/ext2_fs.h:20,
from cmd_chattr.c:15:
/usr/include/linux/percpu_counter.h: In function `percpu_counter_mod':
/usr/include/linux/percpu_counter.h:79: error: invalid type argument of `->'
/usr/include/linux/percpu_counter.h:81: error: invalid type argument of `->'
/usr/include/linux/percpu_counter.h:81: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/percpu_counter.h:81: error: (Each undeclared identifier is reported only once
/usr/include/linux/percpu_counter.h:81: error: for each function it appears in.)make: *** [cmd_chattr.o] Error 1

!!! ERROR: app-shells/sash-3.7 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)


You notice if fails on /usr/include/linux/ext2_fs_sb.h. Simply reemerging e2fsprogs again would not help. What i did is
Code:
 cp /usr/incude/ext2fs/ext2* /usr/include/linux
. After that it did. Only thing I did not copy is bitops.h as it would fail. Maybe that would be a solution for the xorg-x11 problem?

Two question however.
1) why e2fsprogs headers install itself in two separt places?
2) does it bring more inconsistencies to the system, sinse compile gave me many warnings.
----------------------------------
Sash -- e2fsprogs recompile
----------------------------------
Quote:

gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wa ll -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 - DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o utils.o utils.c
gcc --disable-shared -static -s -o sash sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep .o cmd_ls.o cmd_tar.o cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o uti ls.o -lz -lreadline -lncurses
cmd_ls.o(.text+0x5dd): In function `listFile':
: warning: Using 'getgrgid' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
cmds.o(.text+0x44b): In function `do_chgrp':
: warning: Using 'getgrnam' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libreadline.a(complete.o)(.tex t+0x16df): In function `rl_username_completion_function':
: warning: Using 'getpwent' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
cmds.o(.text+0x39a): In function `do_chown':
: warning: Using 'getpwnam' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
cmd_ls.o(.text+0x542): In function `listFile':
: warning: Using 'getpwuid' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libreadline.a(complete.o)(.tex t+0x16ae): In function `rl_username_completion_function':
: warning: Using 'setpwent' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libreadline.a(complete.o)(.tex t+0x16f6): In function `rl_username_completion_function':
: warning: Using 'endpwent' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking

>>> Install sash-3.7 into /var/tmp/portage/sash-3.7/image/ category app-shells
man:
prepallstrip:
strip:
strip:
bin/sash
>>> Completed installing into /var/tmp/portage/sash-3.7/image/


p.s. maybe it is problem with new glibc-20040619 which got masked again in portage :?:
_________________
Sky is not the limit...
Back to top
View user's profile Send private message
seltrus
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 102

PostPosted: Tue Jun 22, 2004 12:54 pm    Post subject: Reply with quote

I am not an expert at kernel headers or anything and I know that they do not have to be matched, but perhaps the newest kernel headers, 2.6.7 are a bit different than previous 2.6.x versions? I don't understand how the header files that are in /usr/src/linux would be different from those in /usr/include/linux. I will check to see if the two bitops.h files are different and get back to you.

EDIT: The files are identical according to diff.

All I know is that using ~x86 and both headers-2.6.7 and gentoo-dev-sources-2.6.7 from the beginning, everything has been flawless up until this point (xorg-x11 failing).


Last edited by seltrus on Tue Jun 22, 2004 3:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
seltrus
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 102

PostPosted: Tue Jun 22, 2004 3:11 pm    Post subject: Reply with quote

Quote:
p.s. maybe it is problem with new glibc-20040619 which got masked again in portage


my glibc version is 2.3.3.20040420, and i haven't touched 20040619.
Back to top
View user's profile Send private message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 225
Location: Rzeszów, POLAND

PostPosted: Tue Jun 22, 2004 6:46 pm    Post subject: kernel headers issue? Reply with quote

Quote:

my glibc version is 2.3.3.20040420, and i haven't touched 20040619.


then it may simply look as a kernel-headers issue. I heard today on #gentoo that the most stable headers from 2.6 series are 2.6.6 and maybe should be worth a try

other thing is that i just foundout that some say (2.6 headers are not nessesery to build glibc with nptl) and that 2.4.22 which is standard on gentoo is enough...[/quote]
_________________
Sky is not the limit...
Back to top
View user's profile Send private message
seltrus
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 102

PostPosted: Wed Jun 23, 2004 1:36 am    Post subject: Reply with quote

I know nptl can be used with the 2.4 headers, but I am specifically building a box to be on the bleeding edge, so I wanted to start with 2.6 headers. I tried the 2.6.6 headers as per your suggestion, and that cleared my problems with xorg-x11 right up.

Now onto more box breakage! Gnome 2.7, KDE 3.3 alpha here I come!
Back to top
View user's profile Send private message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 225
Location: Rzeszów, POLAND

PostPosted: Wed Jun 23, 2004 6:31 am    Post subject: happy it worked Reply with quote

I am glad it worked for You. :D I didnt try it myself yet as it would take some time to compile on my box, therefore I wanted to find out all the possibilities before I do so.
Other thing I just found out is that one should never have kernel headers newer then the running kernel. Should not be a problem, but some say it may be. I guess for now i'll wait for the new 2.6.7-love :) Should be here shortly :)
_________________
Sky is not the limit...
Back to top
View user's profile Send private message
Da_Big_G
n00b
n00b


Joined: 18 Oct 2003
Posts: 10

PostPosted: Fri Jun 25, 2004 6:13 pm    Post subject: Threaded Perl Reply with quote

My desire to get a threaded perl on my Gentoo box has brought me here.

I was running kernel 2.4.25 and put "threads" into my make.conf USE= line and re-emerged perl. This caused Perl to get rebuilt with the -IUSE_THREADS (so I got a threaded perl) but it also caused a ton of other stuff to get rebuilt with threads as well (most notably apache2 which is using the worker mpm instead of prefork).

After a few days of developing my threaded perl app, I found I was getting all sorts of errors. It seems that I should be running perl 5.8.4 (still masked) and not 5.8.2 (stable for x86).

After reading up on nptl, I'm ready to switch to 2.6.7, but I'm wondering if the USE="nptl threads" will cause a problem - do the two conflict? And will using nptl benefit the threaded perl? Can I just remove "threads" from the USE line and still get threading support in perl, etc.?

I just finished compiling the kernel, rebooted, and am rebuilding glibc now. I'll update this post if I come up with answers to those questions.
Back to top
View user's profile Send private message
eelleemmeenntt
n00b
n00b


Joined: 02 Jul 2004
Posts: 6
Location: London Ont. Canada

PostPosted: Fri Jul 02, 2004 11:37 pm    Post subject: Reply with quote

I have successfully install glibc with nptl and 2.6 headers bootstrap. If you dont follow the guide which tells how to do a 2.4 install then you should emerge udev, hotplug alsa-utils, alsa-tools and some other stuff and rc-update add for hotplug and alsa-utils boot not default.
_________________
Haunted-Cave
Back to top
View user's profile Send private message
umass66
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2003
Posts: 82
Location: USA

PostPosted: Sun Jul 04, 2004 2:11 pm    Post subject: Reply with quote

i am planning to use the linux-headers-2.6.6-r1 so that i can recompile glibc with nptl support. it will not work with linux-headers-2.4. learnt that the hardway. my question is what packages are the linux-headers-2.6.6-r1 know to break and what is the downside to using nptl.
Back to top
View user's profile Send private message
eelleemmeenntt
n00b
n00b


Joined: 02 Jul 2004
Posts: 6
Location: London Ont. Canada

PostPosted: Sun Jul 04, 2004 5:11 pm    Post subject: Reply with quote

From what I know there is no downside to usng nptl, "it's a good thing". As for programs that break, I didnt have any trouble. I use kernel-2.6.5, all the system tools as in the guide, you must have hotplug, and very importantly also udev, everything goes fine, I also got X, kde 3.2.2, ximian office, xcdroast and a lot more programs working even realplayer. Dont worry about it unless your machine is really old everything should go fine. I have an athlon xp and also a duron. On my athlon everything is prefect from start to finish, but my duron is pretty old and so it failed with a stage1 but not stage2. Bootstrap with 2.6 headers, which ever, you might have to define "arch". So good luck.
_________________
Haunted-Cave
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Mon Jul 05, 2004 3:18 am    Post subject: Reply with quote

I don't know if this is relevant, but I might as well ask - where is the userspace library implementation for 'futexes' ? Does NTPL provide a set of locking primitives using futexes? I have read documents that indicate no such userspace implementation exists yet...
Back to top
View user's profile Send private message
cpu
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2003
Posts: 122
Location: POLAND/ZG

PostPosted: Sun Jul 11, 2004 11:18 am    Post subject: Re: same problem here... Reply with quote

ryszardzonk wrote:
seltrus wrote:
Quote:
Hi all! I have a couple of gentoo boxen and I decided to give the 2.6 headers a try. Everything went smoothly until I tried to emerge xorg-x11 which produced the following errors. This is the xorg-x11-6.7.0-r1 build, but the 6.7.0 build fails as well. It seems to be complaining about the headers. I built the box using the guide in this thread as a reference.


i have exactly the same prolem as You do. Except unlike You I had several issues before. It didnt start there. Progs like util-linux, iputils, sash, kbd (parts of emerge system) whould not compile because of the missing /usr/include/linux/autoconf.h. I read on forum that partial fix to it would be coping autoconf.h form your /usr/src/linux there. It worked for util-linux, iputils, kbd. Sash still didnt compile.

my system

glibc 2004 06 19 + nptl + linux-headers 2.6.7
kernel 2.6.6-love5

Sash
----------------------------------
original compile problem
Quote:

>>> Source unpacked.
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o sash.o sash.c
sash.c: In function `fileman_completion':
sash.c:536: warning: implicit declaration of function `completion_matches'
sash.c:536: warning: assignment makes pointer from integer without a cast
sash.c: In function `command_generator':
sash.c:561: warning: suggest parentheses around assignment used as truth value
sash.c: At top level:
sash.c:1454: warning: `showPrompt' defined but not used
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmds.o cmds.c
In file included from /usr/include/linux/fs.h:9,
from cmds.c:21:
/usr/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from /usr/include/linux/prefetch.h:14,
from /usr/include/linux/list.h:5,
from /usr/include/linux/wait.h:12,
from /usr/include/linux/fs.h:12,
from cmds.c:21:
/usr/include/asm/processor.h:69: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:69: error: requested alignment is not a constant
In file included from /usr/include/linux/list.h:5,
from /usr/include/linux/wait.h:12,
from /usr/include/linux/fs.h:12,
from cmds.c:21:
/usr/include/linux/prefetch.h: In function `prefetch_range':
/usr/include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
/usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
/usr/include/linux/prefetch.h:64: error: for each function it appears in.)
make: *** [cmds.o] Error 1

!!! ERROR: app-shells/sash-3.7 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)

----------------------------------
Sash -- copied autoconf.h
----------------------------------
Quote:

>>> Source unpacked.
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o sash.o sash.c
sash.c: In function `fileman_completion':
sash.c:536: warning: implicit declaration of function `completion_matches'
sash.c:536: warning: assignment makes pointer from integer without a cast
sash.c: In function `command_generator':
sash.c:561: warning: suggest parentheses around assignment used as truth value
sash.c: At top level:
sash.c:1454: warning: `showPrompt' defined but not used
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmds.o cmds.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_dd.o cmd_dd.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_ed.o cmd_ed.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_grep.o cmd_grep.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_ls.o cmd_ls.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_tar.o cmd_tar.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_gzip.o cmd_gzip.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_find.o cmd_find.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_file.o cmd_file.c
gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o cmd_chattr.o cmd_chattr.c
In file included from /usr/include/linux/ext2_fs_sb.h:20,
from /usr/include/linux/ext2_fs.h:20,
from cmd_chattr.c:15:
/usr/include/linux/percpu_counter.h: In function `percpu_counter_mod':
/usr/include/linux/percpu_counter.h:79: error: invalid type argument of `->'
/usr/include/linux/percpu_counter.h:81: error: invalid type argument of `->'
/usr/include/linux/percpu_counter.h:81: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/percpu_counter.h:81: error: (Each undeclared identifier is reported only once
/usr/include/linux/percpu_counter.h:81: error: for each function it appears in.)make: *** [cmd_chattr.o] Error 1

!!! ERROR: app-shells/sash-3.7 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)


You notice if fails on /usr/include/linux/ext2_fs_sb.h. Simply reemerging e2fsprogs again would not help. What i did is
Code:
 cp /usr/incude/ext2fs/ext2* /usr/include/linux
. After that it did. Only thing I did not copy is bitops.h as it would fail. Maybe that would be a solution for the xorg-x11 problem?

Two question however.
1) why e2fsprogs headers install itself in two separt places?
2) does it bring more inconsistencies to the system, sinse compile gave me many warnings.
----------------------------------
Sash -- e2fsprogs recompile
----------------------------------
Quote:

gcc -march=pentium3 -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -Wa ll -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 - DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE -c -o utils.o utils.c
gcc --disable-shared -static -s -o sash sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep .o cmd_ls.o cmd_tar.o cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o uti ls.o -lz -lreadline -lncurses
cmd_ls.o(.text+0x5dd): In function `listFile':
: warning: Using 'getgrgid' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
cmds.o(.text+0x44b): In function `do_chgrp':
: warning: Using 'getgrnam' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libreadline.a(complete.o)(.tex t+0x16df): In function `rl_username_completion_function':
: warning: Using 'getpwent' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
cmds.o(.text+0x39a): In function `do_chown':
: warning: Using 'getpwnam' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
cmd_ls.o(.text+0x542): In function `listFile':
: warning: Using 'getpwuid' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libreadline.a(complete.o)(.tex t+0x16ae): In function `rl_username_completion_function':
: warning: Using 'setpwent' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libreadline.a(complete.o)(.tex t+0x16f6): In function `rl_username_completion_function':
: warning: Using 'endpwent' in statically linked applications requires at runtim e the shared libraries from the glibc version used for linking

>>> Install sash-3.7 into /var/tmp/portage/sash-3.7/image/ category app-shells
man:
prepallstrip:
strip:
strip:
bin/sash
>>> Completed installing into /var/tmp/portage/sash-3.7/image/


p.s. maybe it is problem with new glibc-20040619 which got masked again in portage :?:


This is linux-headers 2.6.7 problem - downprgade to 2.6.6-r1 - works fine
_________________
[img]http://imagegen.last.fm/top5-green/artists/cpu.gif[/img]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
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