static linked glibc

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

 



Hi All

I want static linked glibc (v2.8) with my program and after that run on any
other linux, but i get error: 
./hamo: /lib/libc.so.6: version `GLIBC_2.8' not found (required by ./hamo)


I build and linking my program on OpenSUSE 11.0
Run on SLES 10.1 for this example

# gcc -o hamo  -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0
/usr/lib/libglib-2.0.a 
hamo.c -static-libgcc

# ldd -v ./hamo
./hamo: /lib/libc.so.6: version `GLIBC_2.8' not found (required by ./hamo)
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0xb7dca000)
        /lib/ld-linux.so.2 (0xb7eff000)

        Version information:
        ./hamo:
                libc.so.6 (GLIBC_2.8) => not found
                libc.so.6 (GLIBC_2.2.4) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
        /lib/libc.so.6:
                ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2

Where I made mistake?

Best Regards
Kolear

-- 
View this message in context: http://www.nabble.com/static-linked-glibc-tp21561568p21561568.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux