Le 24/01/2020 à 17:28, Chris Gorman via blfs-support a écrit : > Hello All, > > I am trying to update my BLFS system to run the newest firefox and > thunderbird. I have a working BLFS 9.0 installation and a working > with installing packages from the BLFS svn. > > One of the packages I am trying to update is pulseaudio which calls > for libcap-2.31 with PAM. When I go to build the libcap with pam tar > ball, I get an error message from the linker. > > make testlink > make[1]: Entering directory '/home/chris/src/errata/libcap-2.31/pam_cap' > gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall > -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align > -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline > -Wshadow -g -o testlink test.c pam_cap.o -lpam -ldl > -L/home/chris/src/errata/libcap-2.31/pam_cap/../libcap -lcap > -L/home/chris/src/errata/libcap-2.31/pam_cap/../libcap > /usr/bin/ld: pam_cap.o: in function `set_capabilities': > /home/chris/src/errata/libcap-2.31/pam_cap/pam_cap.c:245: undefined > reference to `cap_max_bits' > collect2: error: ld returned 1 exit status > make[1]: *** [Makefile:28: testlink] Error 1 > make[1]: Leaving directory '/home/chris/src/errata/libcap-2.31/pam_cap' > make: *** [Makefile:7: all] Error 2 > make: Leaving directory '/home/chris/src/errata/libcap-2.31/pam_cap' > > I can get it built, however, without error by running make instead of > make -C pam_cap. Has anyone else run into this error? Do the build > instructions need to change for libcap-2.31? > > As a side note, the instructions work properly if I try to rebuild > libcap-2.27. Also the build instructions do produce the needed > libpam_cap.so, they just fail with the next build target. >
I think the reason is that it is supposed that libcap (non pam) has been installed in lfs... Maybe we should add a note telling that, when upgrading to a new version, the lfs instructions should be used (libcap-pam is automatically built if pam is present). Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
