I included -ldbm, which fixed the unresolved references to 'dbopen'.
However, i still get the following warnings:

/home/......./lib/libnspr4.a(prnetdb.o): In function
`PR_GetAddrInfoByName':../../../../pr/src/misc/prnetdb.c:2113:
warning: Using 'getaddrinfo' in statically linked applications
requires at runtime the shared libraries from the glibc version used
for linking
/home/......./lib/libnspr4.a(prnetdb.o): In function
`PR_GetHostByAddr':../../../../pr/src/misc/prnetdb.c:1103: warning:
Using 'gethostbyaddr_r' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/home/......./lib/libnspr4.a(prnetdb.o): In function
`PR_GetIPNodeByName':../../../../pr/src/misc/prnetdb.c:892: warning:
Using 'gethostbyname2_r' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/home/......./lib/libnspr4.a(prnetdb.o): In function
`PR_GetHostByName':../../../../pr/src/misc/prnetdb.c:699: warning:
Using 'gethostbyname_r' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking
/home/......./lib/libnspr4.a(prnetdb.o): In function
`PR_GetProtoByNumber':../../../../pr/src/misc/prnetdb.c:1331: warning:
Using 'getprotobynumber_r' in statically linked applications requires
at runtime the shared libraries from the glibc version used for
linking
/home/......./lib/libnspr4.a(prnetdb.o): In function
`PR_GetProtoByName':../../../../pr/src/misc/prnetdb.c:1251: warning:
Using 'getprotobyname_r' in statically linked applications requires at
runtime the shared libraries from the glibc version used for linking

Is there any way to link my static executable, so that the shared
glibc library is not required during runtime?  I want to run the
executable in an isolated part of the filesystem, where it will not
have access to the shared libraries.

Thanks!

Regards,
Peter Djalaliev
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to