View previous topic :: View next topic |
Author |
Message |
nephros Advocate


Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Mon Oct 13, 2003 8:51 pm Post subject: LD_ASSUME_KERNEL, glibc 2.3.2 and third party apps |
|
|
Hi!
My specific problem is with maya5, but searching google and these forums it appears it aplies to other apps (namely some java apps like JBuilder, and MATLAB) as well.
I have glibc 2.3.2-r1, built with NPTL, and binutils-2.14.90.0.6-r6.
When I try to start maya I get Code: | /usr/aw/maya5.0/bin/maya.bin: relocation error: /usr/aw/maya5.0/lib/libFoundation.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference |
Most things I found on the net (like redhat bugzilla and MLs)say to work around this using LD_ASSUME_KERNEL=2.4.1 or 2.2.5.
However, after setting this the error changes to Code: | /bin/csh: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
| as well as other linking errors with (all?) other binaries (like libdl.so for /bin/sh), while all those libraries _are_ there in /lib or /usr/lib.
I didn't find a solution for this, any takers? _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
 |
skoehler n00b

Joined: 04 Aug 2002 Posts: 26
|
Posted: Wed Feb 04, 2004 11:48 pm Post subject: |
|
|
I've got the same Problem.
I compiled simple test-program to check if NPTL is used.
When i run it normally, it works:
# ./test
thread pid: 5050
main pid: 5050
But when i try to avoid using NPTL what would be necessary to use precompiled stuff that's incompatible with NPTL, ld can't find libpthread.so anymore:
# LD_ASSUME_KERNEL=2.4.1 ./test
./test: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
So what's wrong with the glibc ebuild? It seems that it needs more than the glibc-ebuild does to use LD_ASSUME_KERNEL stuff. |
|
Back to top |
|
 |
alinv Guru


Joined: 19 Nov 2002 Posts: 395 Location: Bucharest
|
Posted: Wed Feb 04, 2004 11:57 pm Post subject: |
|
|
I had this problem a while ago (and still have):
https://forums.gentoo.org/viewtopic.php?t=70548
Still no solution for this
Alin _________________ Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B. |
|
Back to top |
|
 |
Trebiani Tux's lil' helper

Joined: 18 Dec 2003 Posts: 132 Location: Graz, AT
|
Posted: Tue Mar 02, 2004 9:25 am Post subject: a working solution! |
|
|
i think i solved the problem (with a little help from my friends )
set the USE flag nptl (ufed or directly in the make.conf)
compile the glibc:
emerge glibc
now the glibc with nptl support is installed.
... and now compile the glibc a second time "by hand":
1, remove the temp files from the last emerge:
rm -rf /var/tmp/portage/glibc-2.3.3_pre20040207
2, unpack the glibc sources with the patches:
ebuild /usr/portage/sys-libs/glibc/glibc-2.3.3_pre20040207.ebuild unpack
3, goto buildhere:
cd /var/tmp/portage/glibc-2.3.3_pre20040207/work/glibc-2.3.2/buildhere
4, call configure
../configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --with-gd=no --without-cvs --disable-profile --prefix=/usr/glibc-2.3.3-non-nptl --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib/misc --without-__thread --with-tls --enable-add-ons=linuxthreads --with-headers=/usr/include --enable-kernel=2.4.1
5, call make
make
6, call install
make install
7, set library path
nano -w /etc/env.d/99glibc-linuxthreads
LDPATH="/usr/glibc-2.3.3-non-nptl/lib"
8, envirenment update
env-update
if i could - i would make a ebuild file .......
now you can use:
export LD_ASSUME_KERNEL=2.4.20 and run the maxdb
cheers,
joe |
|
Back to top |
|
 |
Trebiani Tux's lil' helper

Joined: 18 Dec 2003 Posts: 132 Location: Graz, AT
|
Posted: Tue Mar 02, 2004 9:35 am Post subject: update: a working solution! |
|
|
step number 6, call install has a problem:
after running make install the script stops with an error that it can not find the file ld.so.conf :
create the file by hand:
touch /usr/glibc-2.3.3-non-nptl/etc/ld.so.conf
and re-run the make install |
|
Back to top |
|
 |
skoehler n00b

Joined: 04 Aug 2002 Posts: 26
|
Posted: Tue Mar 02, 2004 10:07 am Post subject: |
|
|
So let's write an ebuild for that!
I still don't get the point why the gentoo-hackers are refusing to make LD_ASSUME_KERNEL work. |
|
Back to top |
|
 |
Trebiani Tux's lil' helper

Joined: 18 Dec 2003 Posts: 132 Location: Graz, AT
|
Posted: Tue Mar 02, 2004 10:30 am Post subject: |
|
|
skoehler wrote: | So let's write an ebuild for that!
I still don't get the point why the gentoo-hackers are refusing to make LD_ASSUME_KERNEL work. |
can you create one?
it would be best to introduce a new use flag:
assume_kernel |
|
Back to top |
|
 |
nephros Advocate


Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Tue Mar 02, 2004 10:41 am Post subject: |
|
|
Just as a reference: this is the relevant bug: #21132
BTW, I don't have any linking problems anymore (maya 5.1 works), but don't ask me why... _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
 |
Trebiani Tux's lil' helper

Joined: 18 Dec 2003 Posts: 132 Location: Graz, AT
|
Posted: Tue Mar 02, 2004 11:53 am Post subject: |
|
|
nephros wrote: | Just as a reference: this is the relevant bug: #21132
BTW, I don't have any linking problems anymore (maya 5.1 works), but don't ask me why... |
thanx, i allready updated the bug #21132
are the linking problems gone because of my "howto"? |
|
Back to top |
|
 |
nephros Advocate


Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Tue Mar 02, 2004 12:52 pm Post subject: |
|
|
Trebiani wrote: | nephros wrote: | Just as a reference: this is the relevant bug: #21132
BTW, I don't have any linking problems anymore (maya 5.1 works), but don't ask me why... |
thanx, i allready updated the bug #21132
are the linking problems gone because of my "howto"? |
uhm, no.
I never did anything excplicitly about it, it just worked at some point. Maya that is. And I think the problem with maya was related to the Openmotif incompatabilities[1].
Other than this I never used any apps with LD_ASSUME_KERNEL but I just checked Code: | LD_ASSUME_KERNEL=2.4.1 /bin/sh | and it fails as usual. I tseems I was a bit quick with my reply.
[1]I seem to remember problems with openmotif 2.2.2 and either glibc/nptl or libgcc together with the ERRNO issue but can't find it in bugzilla ATM. Anyway those seem to be resolved now and maya runs ok. _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
 |
Trebiani Tux's lil' helper

Joined: 18 Dec 2003 Posts: 132 Location: Graz, AT
|
Posted: Tue Mar 02, 2004 1:26 pm Post subject: |
|
|
a friend reported that maya 5.05 is working with my workaround. |
|
Back to top |
|
 |
alinv Guru


Joined: 19 Nov 2002 Posts: 395 Location: Bucharest
|
Posted: Tue Mar 02, 2004 11:07 pm Post subject: |
|
|
That's great!
I just tried running kylix and it works. I suppose the others should work as well.
Thanks a lot,
Alin _________________ Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B. |
|
Back to top |
|
 |
je_fro Retired Dev


Joined: 14 Dec 2002 Posts: 236 Location: Republic of Texas
|
Posted: Thu Mar 25, 2004 7:29 pm Post subject: Hmm... |
|
|
I followed the above with the following exception, I'm using sys-libs/glibc-2.3.2-r9, so I modified the ./configure
Code: | # ../configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --with-gd=no --without-cvs --disable-profile --prefix=/usr/glibc-2.3.2-non-nptl --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib/misc --without-__thread --with-tls --enable-add-ons=linuxthreads --with-headers=/usr/include --enable-kernel=2.4.1
|
Then...
Code: | touch /usr/glibc-2.3.2-non-nptl/etc/ld.so.conf |
Also, /etc/env.d/99glibc-linuxthreads didn't exist so I made it:
Code: | nano -w /etc/env.d/99glibc-linuxthreads
LDPATH="/usr/glibc-2.3.2-non-nptl/lib" |
Yet, when I try to start Matlabs license manager I still get:
Code: | Starting license manager . . .
Debug logfile = /var/tmp/lm_TMW.log
/var/tmp/lm_TMW.ld: relocation error: /var/tmp/lm_TMW.ld: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
|
Any ideas?
Thanks _________________ Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
--Linus Torvalds
My site with some gentoo config files:
http://je-fro.net/page.html |
|
Back to top |
|
 |
m0sia Tux's lil' helper


Joined: 07 Jul 2003 Posts: 113
|
Posted: Mon Jun 14, 2004 5:53 pm Post subject: Re: Hmm... |
|
|
[quote="je_fro"] <skiped>[/quote]
sorry for upping old topic, but matlab works great with this tutorial. |
|
Back to top |
|
 |
je_fro Retired Dev


Joined: 14 Dec 2002 Posts: 236 Location: Republic of Texas
|
Posted: Mon Jun 14, 2004 6:23 pm Post subject: yeah? |
|
|
which kernel/kernel-headers? which glibc?
tell me more..  _________________ Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
--Linus Torvalds
My site with some gentoo config files:
http://je-fro.net/page.html |
|
Back to top |
|
 |
m0sia Tux's lil' helper


Joined: 07 Jul 2003 Posts: 113
|
Posted: Sun Jun 20, 2004 9:12 am Post subject: |
|
|
1)kernel-2.6.6-love-r2
2)glibc-2.3.3.20040420
3)this tutorial.
and matlab works ok.
ps i have some problems. matlab cannot find symbol font. do you know what to do? |
|
Back to top |
|
 |
era3 n00b


Joined: 02 May 2004 Posts: 13 Location: Milano - Italy
|
Posted: Sun Jun 27, 2004 9:11 pm Post subject: Great Tutorial |
|
|
Thanks a lot, Trebiani tutorial solved my problem !!!! |
|
Back to top |
|
 |
Trebiani Tux's lil' helper

Joined: 18 Dec 2003 Posts: 132 Location: Graz, AT
|
Posted: Tue Jul 06, 2004 12:45 pm Post subject: Re: Great Tutorial |
|
|
era3 wrote: | Thanks a lot, Trebiani tutorial solved my problem !!!! |
nice to hear that - thank you!
can someone do the trick with the USE-flag?
(i'm no ebuild wizard!) |
|
Back to top |
|
 |
alinv Guru


Joined: 19 Nov 2002 Posts: 395 Location: Bucharest
|
Posted: Thu Jul 15, 2004 7:55 am Post subject: |
|
|
Anybody got this working with linux26-headers?
I get a lot of ld errors (undefined references)  _________________ Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B. |
|
Back to top |
|
 |
Lord_BeeJee n00b

Joined: 01 Jun 2004 Posts: 4 Location: Antwerp, Belgium
|
Posted: Thu Aug 05, 2004 7:12 am Post subject: |
|
|
I had the same problem (after compiling glibc with USE flag -ntpl on 2.6.* kernel, segfaults for mplayer) and couldn't get it fixed with any of these solutions but resolved it by compiling nvidia-glx again. This might be a way for the ones not having it fixed yet.  |
|
Back to top |
|
 |
charlesg3 n00b


Joined: 04 Dec 2003 Posts: 14 Location: Boulder, Co
|
Posted: Fri Sep 24, 2004 5:57 pm Post subject: |
|
|
Great... kernel 2.6.8, glibc-2.3.4.20040808, matlab 7 r14 worked after using this tutorial. Thanks! |
|
Back to top |
|
 |
Wiebel n00b


Joined: 05 Feb 2003 Posts: 60 Location: Bad Homburg, Germany
|
Posted: Wed Oct 06, 2004 2:43 am Post subject: |
|
|
the upcoming 2.3.4.20041002 which is still -* is already supporting the LD_ASSUME_KERNEL env, im trying it right now.
Nevertheless the tutorial helped me for several glibc by now, thx a bundle i never could have done this on my own.
[edit] Didn't work for me the lm from matlab seems to get confused by the pathes, really strange thing, doesn't feel utterly broken but it also doesn't work, so I switched back to the good old method for now.[/edit] |
|
Back to top |
|
 |
jamesrt n00b

Joined: 09 Sep 2003 Posts: 47 Location: New Zealand
|
Posted: Mon Oct 11, 2004 9:57 pm Post subject: |
|
|
Wiebel wrote: | the upcoming 2.3.4.20041002 which is still -* is already supporting the LD_ASSUME_KERNEL env | I tried this myself, but had some issues with bugs in the 200410* snapshots, so reverted back to "stable" glibc (2.3.3.20040420) - thank goodness for test environments!
However, I decided that it couldn't be that hard to port the "dual glibc" changes from the latest unstable snapshots, so I tried, and seem to have it working. I've created a glibc-2.3.3.20040420-r3 on my machine which creates both NPTL and LinuxThreads glibc, and it works for me. YMMV.
I've attached the diff to Bug #21132, but if there is sufficient demand, I can repost here. |
|
Back to top |
|
 |
Rainmaker Veteran


Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Mon Oct 11, 2004 10:13 pm Post subject: |
|
|
I am now emerging glibc in the ~x86 arch
It gives a warning at the beginning of the merge, telling me glibc now gets build twice, once with and once without ntpl.
Should solve tis problem once and for all... _________________ If you can't dazzle them with brilliance, baffle them with bullshit. |
|
Back to top |
|
 |
JanErik Guru

Joined: 28 Oct 2002 Posts: 488 Location: Finland
|
Posted: Sun Oct 17, 2004 7:49 pm Post subject: |
|
|
I emerged glibc with ~x86 (2.3.4.20041006) and now Matlab works fine. |
|
Back to top |
|
 |
|