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

library reducation with woody

I've been playing around on a woody box, trying to get library reduction
to work in the d-i demo system. I needed the following patch to make it
find libc6-pic stuff at all:

--- mklibs.sh   Tue Jan  2 16:11:17 2001
+++ mklibs.sh~  Tue Jan  2 16:10:06 2001
@@ -520,7 +520,7 @@
     echo `find-files $src_path libc_pic/soinit.so libc_pic.a libc_pic/sofini.so`
     return 0
-  if [ "x$1" = "xlibc-2.1.2.so" -o "x$1" = "xlibc-2.1.3.so" ] ; then
+  if [ "x$1" = "xlibc-2.1.2.so" -o "x$1" = "xlibc-2.1.3.so" -o "x$1" = "xlibc-2.2.so" ] ; then
     # Order does matter! First init, then lib, then fini!
     echo `find-files $src_path libc_pic/soinit.o libc_pic.a libc_pic/sofini.o libc_pic/interp.o`
     return 0

Then it failed like this:

Make small lib from /usr/lib/libc_pic/soinit.o /usr/lib/libc_pic.a /usr/lib/libc_pic/sofini.o in ./libc-2.2.so.
/usr/bin/ld: /tmp/,mklibs.10024/lib-so: undefined versioned symbol name getgrgid_r@GLIBC_2.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
/home/joey/mklibs.sh: install-small-lib: gcc or objcopy failed.

see shy jo

Reply to: