Next problem with --disable-shared
Andreas Schwab
schwab@suse.de
Wed Apr 5 03:03:00 GMT 2000
jaeger@informatik.uni-kl.de writes:
|> I get now:
|> gcc -nostdlib -nostartfiles -o /home/aj/build-glibc-static/nss/makedb /home/aj/build-glibc-static/csu/crt1.o /home/aj/build-glibc-static/csu/crti.o `gcc --print-file-name=crtbegin.o` /home/aj/build-glibc-static/nss/makedb.o /home/aj/build-glibc-static/dlfcn/libdl.a /home/aj/builld-glibc-static/nss/db-open.o /home/aj/build-glibc-static/libc.a -lgcc /home/aj/build-glibc-static/libc.a -lgcc `gcc --print-file-name=crtend.o` /home/aj/build-glibc-static/csu/crtn.o
|> /home/aj/build-glibc-static/nss/db-open.o: In function `load_db':
|> /home/aj/glibc-2.2/nss/nss_db/db-open.c:82: undefined reference to `dlopen'
|> /home/aj/glibc-2.2/nss/nss_db/db-open.c:87: undefined reference to `dlsym'
|> /home/aj/glibc-2.2/nss/nss_db/db-open.c:91: undefined reference to `dlsym'
|> /home/aj/glibc-2.2/nss/nss_db/db-open.c:98: undefined reference to `dlsym'
|> /home/aj/glibc-2.2/nss/nss_db/db-open.c:156: undefined reference to `dlclose'
|> /home/aj/glibc-2.2/nss/nss_db/db-open.c:159: undefined reference to `dlerror'
|> /home/aj/build-glibc-static/nss/db-open.o: In function `unload_db':
|> /home/aj/glibc-2.2/nss/nss_db/db-open.c:172: undefined reference to `dlclose'
|> collect2: ld returned 1 exit status
|> make[2]: *** [/home/aj/build-glibc-static/nss/makedb] Error 1
|> make[2]: Leaving directory `/home/aj/glibc-2.2/nss'
|> make[1]: *** [nss/others] Error 2
|>
|> Changing the link order (adding libdl.a after db-open) fixes this -
|> but I didn't succeed in changing the Makefile :-(.
Please try this patch:
2000-04-05 Andreas Schwab <schwab@suse.de>
* nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
Index: nss/Makefile
===================================================================
RCS file: /cvs/glibc/libc/nss/Makefile,v
retrieving revision 1.34
diff -u -a -u -r1.34 nss/Makefile
--- nss/Makefile 2000/01/27 01:45:37 1.34
+++ nss/Makefile 2000/04/05 10:00:21
@@ -72,7 +72,7 @@
distribute += $(addprefix nss_db/, db-XXX.c nss_db.h dummy-db.h)
-$(objpfx)makedb: $(libdl) $(objpfx)db-open.o
+$(objpfx)makedb: $(objpfx)db-open.o $(libdl)
# Build static module if requested
ifneq ($(build-static-nss),yes)
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
More information about the Libc-hacker
mailing list