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

Bug#562906: mklibs: fails on libc on hurd-i386



[Samuel Thibault 2009-12-29]
> On hurd-i386, when applying mklibs on libc, link fails with
> 
> /usr/lib//libc_pic.a(dtable.os): In function `init_dtable':
> (.text+0x192): undefined reference to `__start__hurd_fd_subinit'
> 
> This is due to the DEFINE_HOOK() mecanism that uses symbols which only
> eventually get defined in the shlib.lds script. Linux & kfreebsd are
> lucky that d-i seemingly never uses atexit and thus doesn't need it,
> but hurd-i386 does.

How can this issue be reproduced?  I tried, but failed:

  # mkdir foo; mklibs -d foo /bin/ls
  I: Using /lib/ld.so as dynamic linker.
  I: library reduction pass 1
  108 symbols, 108 unresolved
  I: library reduction pass 2
  291 symbols, 178 unresolved
  I: library reduction pass 3
  325 symbols, 9 unresolved
  I: library reduction pass 4
  325 symbols, 9 unresolved
  # ls foo/
  ld.so.1  libc.so.0.3  libhurduser.so.0.3  libmachuser.so.1
  #

Is the issue fixed, or is something else needed to reproduce it?

-- 
Happy hacking
Petter Reinholdtsen


Reply to: