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

Re: mklibs.py, unresolved symbol



On Sun, Sep 16, 2001 at 11:55:21PM -0400, Adam Di Carlo wrote:
> 
> Can you send along the patch?
> 
> I was able to build fine (only patching in one place) so I'm getting
> really confused.  It must be a difference between your build
> environment and mine. I wonder if mklibs.py is especially sensitive to
> your chroot (to wit, the libc which is loaded in memory) but that
> would seem unspeakably bizarre.

i can't really see how... i have init in the real system spawn
/usr/sbin/chroot /archive/chroot/woody /sbin/mingetty tty10 
where i login normally...

here is my patch to mklibs.py:

Index: mklibs.py
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/scripts/rootdisk/mklibs.py,v
retrieving revision 1.4
diff -u -r1.4 mklibs.py
--- mklibs.py   2001/08/11 06:55:18     1.4
+++ mklibs.py   2001/09/17 03:58:23
@@ -352,7 +352,7 @@
             base_name = so_pattern.match(library).group(1)
             # libc needs its soinit.o and sofini.o as well as the pic
             if base_name == "libc":
-                extra_flags = find_lib("ld-linux.so.2")
+                extra_flags = find_lib("ld.so.1")
                 extra_pre_obj = "/usr/lib/libc_pic/soinit.o"
                 extra_post_obj = "/usr/lib/libc_pic/sofini.o"
             else:
@@ -396,6 +396,6 @@
     os.remove(dest_path + "/" + lib)

 # Make the dynamic linker executable
-ld_file = find_lib("ld-linux.so.2")
+ld_file = find_lib("ld.so.1")
 ld_file_name = os.path.basename(ld_file)
 os.chmod(dest_path + "/" + ld_file_name, 0755)

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpZ0JcbBbPRo.pgp
Description: PGP signature


Reply to: