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

Bug#203014: libc6-dev: Missing libnss_{db,dns,files,compat}.a files in libc6-dev, just add --enable-static-nss to configure params



Package: libc6-dev
Version: 2.2.5-11.5
Severity: normal

This makes impossible to statically link a program using
gethostname/byname etc. since it uses dlopen and
need .so files, ld-so and libc.so.
This bug was reported as #76451 on libc6 2.1.96-1
and it's not resolved since woody version and
2.3.1-17 on sid.
The old bug report was also talking about a way
to make this "transparent" to the linker:

-- quote --
For now I fixed it with

mv /usr/lib/libc.a /usr/lib/libc_ns.a
cat > /usr/lib/libc.a <<EOF
/* GNU ld script
   Use the static library, but some functions are in other strange
   libraries :-( So try them secondarily. */
GROUP ( /usr/lib/libc_ns.a /usr/lib/libnss_files.a /usr/lib/libnss_dns.a
/usr/lib/libresolv.a )
EOF
-- quote --

I dunno if this stuff works, but at least I need .a files to
use gethostname/byname in a statically linked application.


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux flender 2.4.21 #2 Sat Jul 19 11:52:56 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6-dev depends on:
ii  libc6                         2.2.5-11.5 GNU C Library: Shared libraries an




Reply to: