bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiling modified glibc 3.2.2


From: Toby Murray
Subject: compiling modified glibc 3.2.2
Date: Thu, 24 Jul 2003 16:51:07 +0930
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624

During compilation of a modified glibc 3.2.2 I am getting the following error:
lic.so.6: undefined reference to address@hidden
this occurs during compilation of iconv/iconvconfig (from iconvcomfig.o etc.)

when doing a
readelf -s libc.so.6 | grep __libc_stack_end I get 2 symbols
address@hidden, undefined, global etc.
as well as __libc_stack_end@@GLIBC_P

the strange thing is that in the vanilla (unmodified) version, the libc.so.6 that is built in the build dir has exactly the same two symbols referenced in it, and it makes it through the entire build process with no problems.

in both cases the elf/ld.so that is built has __libc_stack_end defined as a global symbol.

when doing a
ldd -r libc.so.6  (so that it performs relocation)
I'm given the error:
"symbol __libc_stack_end, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference". the ld-linux.so.2 it is referring to is the one in /lib, which is itself a glibc3.2.2 prebuilt version (Its a redhat linux system).

Any ideas how I can resolve this problem?

In the modified version i'm linking against another shared library so that the libc.so thats produced is dependent on both it and ld-linux.so.2, however I can't really see whats causing hte problem.

both my modified libc.so.6 and the original reference __libc_stack_end, version GLIBC_PRIVATE, however one is able to build and the other complains that it can't because of this symbol reference (at least as far as i can tell)

Any ideas about how to resolve/work around this problem?

failing that,
at this point is the build finished enough to be able to move the libc.so , ld-linux.so into /lib and see how it flies? or is there still other things that are done in the rest ov the build (and during the make install) that I'd need to do before doing this?

any help or advice would be very much appreciated

thanks
Toby

--
Toby Murray
Advanced Computer Capabilities Unit
Information Networks Division
Defence Science and Technology Organisation
Edinburgh, South Australia

Phone: (08) 8259 4134
Email: address@hidden

IMPORTANT: This e-mail remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the
Crimes Act 1914. If you have received this e-mail in error, you are
requested to contact the sender and delete the e-mail.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]