On one of my LFS-7.0 systems I'm still ploughing through the
remaining gnome-3.2 packages I haven't built. [ Or at least, I will
be once I've sorted out why my mouse now only works on the new
machine - probably I've dislodged a cable. ] Just gnome-screensaver
and gdm, i.e. the packages which require Linux-PAM.

 Built PAM with only self-inflicted problems (I didn't have
--enable-dbm in BerkeleyDB, and I'd suppressed libfl.a (flex)
because "nothing that I build uses it", so had to go back and build
a shared libfl.so, but shadow was different:

 I'd been using the older version for LFS-7.0, but I'd already built
the current 4.1.5 on a 7.1 system without problems so I was happy to
use 4.1.5 which is in the book.  I was extremely surprised to find it
failing to build.  Fortunately, gentoo have a patch because it "fails
to build with recent toolchains" which quotes the error :

copydir.c: In function 'error_acl':
copydir.c:126:2: warning: implicit declaration of function 'va_start' 
[-Wimplicit-function-declaration]
copydir.c:132:2: warning: implicit declaration of function 'va_end' 
[-Wimplicit-function-declaration]
...
libmisc/copydir.c:126: undefined reference to 'va_start'
libmisc/copydir.c:132: undefined reference to 'va_end'
...
make[2]: *** [useradd] Error 1

 For me, a simple sed does the job -
sed -i -e 's/^#include <stdio.h>/&\n#include <stdarg.h>/' \
  libmisc/copydir.c

 The big questions are:
1. Why didn't I need to do this in LFS ?
2. Why didn't whoever updated shadow in BLFS have to do this ?
(or "why does only *my* BLFS build of shadow after PAM break?").

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to