[blfs-book] [BLFS Trac] #4731: Fix to build with ne libcap

BLFS Trac trac at linuxfromscratch.org
Fri Feb 21 07:51:15 PST 2014

#4731: Fix to build with ne libcap
 Reporter:  fo           |      Owner:  blfs-book@…
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  7.5
Component:  BOOK         |    Version:  SVN
 Severity:  normal       |   Keywords:
 gcc  -s -shared -o sched.so   sched..o    -lgdbm -lpcre -lcap -ldl
 -lncursesw -lrt -lm  -lc
 make[3]: Leaving directory '/home/fernando/tmp/paco-
 make[3]: Entering directory '/home/fernando/tmp/paco-
 gcc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I.  -DHAVE_CONFIG_H
 -DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o attr..o attr.c
 In file included from /usr/include/sys/capability.h:30:0,
                  from ../../Src/zsh_system.h:510,
                  from ../../Src/zsh.mdh:17,
                  from attr.mdh:17,
                  from attr.c:30:
 /usr/include/sys/xattr.h:31:3: error: expected identifier before numeric
    XATTR_CREATE = 1, /* set value, fail if attr already exists.  */
 Makefile:241: recipe for target 'attr..o' failed
 make[3]: *** [attr..o] Error 1
 make[3]: Leaving directory '/home/fernando/tmp/paco-
 Makemod:373: recipe for target 'modules' failed
 make[2]: *** [modules] Error 1
 make[2]: Leaving directory '/home/fernando/tmp/paco-
 Makefile:451: recipe for target 'modules' failed
 make[1]: *** [modules] Error 2
 make[1]: Leaving directory '/home/fernando/tmp/paco-
 Makefile:189: recipe for target 'all' failed
 make: *** [all] Error 1

 real    0m31.894s
 user    0m26.546s
 sys 0m5.145s


 patch already committed to patches-blfs

 add gdbm as optional

Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/4731>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch

More information about the blfs-book mailing list