This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Trying the cvs version of glibc
- To: libc-alpha@sourceware.cygnus.com
- Subject: Trying the cvs version of glibc
- From: Jonas Utterström <jonas.utterstrom@vittran.norrnod.se>
- Date: Tue, 06 Jul 1999 21:04:19 +0200 (CEST)
- Organization: Hemma på Vittervägen
- Reply-To: jonas.utterstrom@vittran.norrnod.se
Hi,
So I decided to try out glibc from the cvs-repository. (I wanted to try some
wide-char functionality that wasn't available in glibc-2.1.1)
The compilation succeeded without hassle, and also 'make check' worked.
Then I tried to compile a 'hello world' example with egcs-1.1.2.
I got this error message when trying to run it:
./a.out: Command not found.
And ldd tells me:
/home/jonas/cvs-glibc/bin/ldd: ./a.out: Filen eller katalogen finns inte
Is there a FAQ or a simple explanation of how to set up a test-version of
glibc? The glibc-FAQ was helpful but didn't get me all the way to a runnable
executable.
A description of what I've done:
compiled glibc and installed it in a separate cvs-glibc directory.
export PATH=${HOME}/cvs-glibc/bin:${PATH}
gcc -Wl,--dynamic-linker=${HOME}/cvs-glibc/lib/ld-linux.so.2
-Wl,--rpath=${HOME}/cvs-glibc/lib
-I${HOME}/cvs-glibc/include hello.c -L${HOME}/cvs-glibc/lib
Getting a verbose output from gcc tells me that something is fishy with
my settings:
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/collect2 -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/crtbegin.o
-L/home/jonas/cvs-glibc/lib -L/usr/lib/gcc-lib/i486-linux/egcs-2.91.66
--dynamic-linker=/home/jonas/cvs-glibc/ld-linux.so.2
--rpath=/home/jonas/cvs-glibc/lib /tmp/ccm5Rsk7.o -lgcc -lc -lgcc
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/crtend.o /usr/lib/crtn.o
Those /usr/lib/crt*.o should have been /home/jonas/cvs-glibc/lib. (I guess)
I know that the cvs-repository is for glibc-developers, but I like to
experiment.
Sorry for bothering you,
/Jonas U
------------------------------------------------------
Jonas Utterstrom <jonas.utterstrom@vittran.norrnod.se>