glibc do not really static compile my project.

Bug #134400 reported by ELY M.
2
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I compiled this same project on older system and can run other newer system fine.

when I come to compile this ssh project on latest ubuntu.
I got some warnings.

ssh.c:342: warning: conflicting types for built-in function âpowâ
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
(.text+0x676): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libssh.a(options.o): In function `get_username_from_uid':
/home/admin/kssh/libssh-0.2/libssh/options.c:295: warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/admin/kssh/libssh-0.2/libssh/options.c:298: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libssh.a(connect.o): In function `getai':
/home/admin/kssh/libssh-0.2/libssh/connect.c:68: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccB7VpsK.o: In function `get':
ssh.c:(.text+0xe5b): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

It refused to run on any systems :(
glibc developers need to fix this asap or provide patch for this annoying bug.

is there any patches for this problem?

Revision history for this message
Chris Halse Rogers (raof) wrote :

Thank you for reporting this bug, and trying to help make Ubuntu better. However, I don't believe that it's possible to really statically link against glibc. See <http://people.redhat.com/drepper/no_static_linking.html> for more details.

You could try to convince upstream glibc developers to support real static linking, but that would be a major architectural change, and I'm not sure that it's technically possible. It's certainly outside the scope of changes that the Ubuntu project could reasonably make.

Changed in glibc:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.