Opened 8 years ago

Closed 8 years ago

#4731 closed defect (fixed)

Fix zsh-5.0.5 to build with libcap 2.24

Reported by: Fernando de Oliveira Owned by: Fernando de Oliveira
Priority: normal Milestone: 7.5
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

gcc  -s -shared -o sched.so   sched..o    -lgdbm -lpcre -lcap -ldl -lncursesw -lrt -lm  -lc 
make[3]: Leaving directory '/home/fernando/tmp/paco-build-2014.02.21-11h19m15s/zsh-5.0.5/Src/Builtins'
make[3]: Entering directory '/home/fernando/tmp/paco-build-2014.02.21-11h19m15s/zsh-5.0.5/Src/Modules'
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 constant
   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-build-2014.02.21-11h19m15s/zsh-5.0.5/Src/Modules'
Makemod:373: recipe for target 'modules' failed
make[2]: *** [modules] Error 1
make[2]: Leaving directory '/home/fernando/tmp/paco-build-2014.02.21-11h19m15s/zsh-5.0.5/Src'
Makefile:451: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/fernando/tmp/paco-build-2014.02.21-11h19m15s/zsh-5.0.5/Src'
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

Change History (5)

comment:1 by Fernando de Oliveira, 8 years ago

Owner: changed from blfs-book@… to Fernando de Oliveira
Status: newassigned
Summary: Fix to build with ne libcapFix zsh-5.0.5 to build with libcap 2.24

comment:2 by Fernando de Oliveira, 8 years ago

Type: enhancementdefect

comment:3 by Fernando de Oliveira, 8 years ago

Bruce, as I wrote yesterday in dev, I added a patch for this. Knew that an sed could be used. instead. Took me a while (always does, to me) to find out how to add new lines, to match exactly the patch, here it is:

sed -e '/attr.mdh/ d' -e '/attr.pro/ d' \
    -e '/include <sys\/xattr.h>/ a\\n#include "attr.mdh"\n#include "attr.pro"' \
    -i Src/Modules/attr.c

I am telling that here, because I had already fixed "qemu-1.7.0 won't build with libcap-2.24", in ticket #4553, created by Wayne, so we can remember, because it is possible that it will be needed elsewhere, again.

Last edited 8 years ago by Fernando de Oliveira (previous) (diff)

comment:4 by Fernando de Oliveira, 8 years ago

Edited the sed, to remove unneeded space.

comment:5 by Fernando de Oliveira, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r12764.

Note: See TracTickets for help on using tickets.