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

Re: d-i experiences



On Thu, Sep 18, 2003 at 09:54:33PM +0200, Steinar H. Gunderson wrote:
> An strace seems to indicate that, yes -- it looks for libnss_files.so.1 but
> can't find it. Without it, it finds and parses /etc/passwd correctly, but not
> /etc/group for some reason. busybox has a libpwdgrp that can do these things
> without NSS, but it appears our busybox isn't built with that ATM...

The problem appears to be a classic case of ordering on the command line.
Since libbb.a is put after libpwdgrp.a, newer gcc/binutils can't find any
functions in libpwdgrp.a from within libbb.a, and thus resorts to gcc's
versions instead, giving these problems.

Simply adding "./libpwdgrp/libpwdgrp.a ./libbb/libbb.a" (libpwdgrp.a needs
stuff from libbb.a, too) to the end of the command line linking busybox fixes
the problem, but there must surely be a more elegant way?

/* Steinar */
-- 
Homepage: http://www.sesse.net/



Reply to: