From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Work in progress Date: Mon, 05 Apr 2021 16:44:09 +0200 Message-ID: In-Reply-To: <4702aaf1-1cd3-fd44-421f-9fd451f60128@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6564841259363887248==" List-Id: --===============6564841259363887248== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi All, I had failures with building libcap-2.25 with the new gperf. From the=20 fail messages I can see that the libcap build calls gperf and is finding=20 unknown type names in the response. I have seen that Matthias has updated libcap and submitted the patch. I will wait till the updated libcap is merged and then redo my gperf=20 build and see if that solves the problem. Until then I have excluded=20 gperf from my current builds. Here is the log output from building libcap with gperf updated from=20 3.0.4 (2009) to 3.1 (2017). Apr=C2=A0 5 13:45:53: Building libcap libcap-2.25.tar.xz checksum OK + cd /usr/src/lfs + make -f libcap LFS_BASEDIR=3D/usr/src install =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Installing libcap-2.25 ... Install started; saving file list to /usr/src/lsalr ... # Prevent a static library from being installed cd /usr/src/libcap-2.25 && sed -i '/install.*STALIBNAME/d' libcap/Makefile cd /usr/src/libcap-2.25 && make make[1]: Entering directory '/usr/src/libcap-2.25' make -C libcap all make[2]: Entering directory '/usr/src/libcap-2.25/libcap' =3D> making cap_names.list.h from=20 /usr/src/libcap-2.25/libcap/../libcap/include/uapi/linux/capability.h perl -e 'while ($l=3D<>) { if ($l =3D~ /^\#define[ \t](CAP[_A-Z]+)[=20 \t]+([0-9]+)\s+$/) { $tok=3D$1; $val=3D$2; $tok =3D~ tr/A-Z/a-z/; print=20 "{\"$tok\",$val},\n"; } }'=20 /usr/src/libcap-2.25/libcap/../libcap/include/uapi/linux/capability.h |=20 fgrep -v 0x > cap_names.list.h gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -fPIC=20 -I/usr/src/libcap-2.25/libcap/../libcap/include/uapi=20 -I/usr/src/libcap-2.25/libcap/../libcap/include _makenames.c -o _makenames ./_makenames > cap_names.h gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -Dlinux -Wall=20 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align=20 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline=20 -Wshadow -g=C2=A0 -fPIC -I/usr/src/libcap-2.25/libcap/../libcap/include/uapi = -I/usr/src/libcap-2.25/libcap/../libcap/include -c cap_alloc.c -o=20 cap_alloc.o gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -Dlinux -Wall=20 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align=20 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline=20 -Wshadow -g=C2=A0 -fPIC -I/usr/src/libcap-2.25/libcap/../libcap/include/uapi = -I/usr/src/libcap-2.25/libcap/../libcap/include -c cap_proc.c -o cap_proc.o gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -Dlinux -Wall=20 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align=20 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline=20 -Wshadow -g=C2=A0 -fPIC -I/usr/src/libcap-2.25/libcap/../libcap/include/uapi = -I/usr/src/libcap-2.25/libcap/../libcap/include -c cap_extint.c -o=20 cap_extint.o gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -Dlinux -Wall=20 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align=20 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline=20 -Wshadow -g=C2=A0 -fPIC -I/usr/src/libcap-2.25/libcap/../libcap/include/uapi = -I/usr/src/libcap-2.25/libcap/../libcap/include -c cap_flag.c -o cap_flag.o perl -e 'print "struct __cap_token_s { const char *name; int index;=20 };\n%{\nconst struct __cap_token_s *__cap_lookup_name(const char *,=20 unsigned int);\n%}\n%%\n"; while ($l =3D <>) { $l =3D~ s/[\{\"]//g; $l =3D~=20 s/\}.*// ; print $l; }' < cap_names.list.h | gperf --ignore-case=20 --language=3DANSI-C --readonly --null-strings --global-table=20 --hash-function-name=3D__cap_hash_name=20 --lookup-function-name=3D"__cap_lookup_name" -c -t -m20=C2=A0 > _caps_output.= gperf gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -Dlinux -Wall=20 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align=20 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline=20 -Wshadow -g=C2=A0 -fPIC -I/usr/src/libcap-2.25/libcap/../libcap/include/uapi = -I/usr/src/libcap-2.25/libcap/../libcap/include -include=20 _caps_output.gperf -c cap_text.c -o cap_text.o In file included from : ./_caps_output.gperf:71:80: error: unknown type name 'size_t' =C2=A0=C2=A0 71 | gperf_case_strncmp (register const char *s1, register cons= t=20 char *s2, register size_t n) | ^~~~~~ ./_caps_output.gperf:96:53: error: unknown type name 'size_t' =C2=A0=C2=A0 96 | __cap_hash_name (register const char *str, register size_t= len) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~ ./_caps_output.gperf:200:55: error: unknown type name 'size_t' =C2=A0 200 | __cap_lookup_name (register const char *str, register size_t le= n) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | ^~~~~~ ./_caps_output.gperf:200:1: error: conflicting types for '__cap_lookup_name' =C2=A0 200 | __cap_lookup_name (register const char *str, register size_t le= n) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | ^~~~~~~~~~~~~~~~~ ./_caps_output.gperf:33:29: note: previous declaration of=20 '__cap_lookup_name' was here =C2=A0=C2=A0 33 | const struct __cap_token_s *__cap_lookup_name(const char *= ,=20 unsigned int); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:63: cap_text.o] Error 1 make[2]: Leaving directory '/usr/src/libcap-2.25/libcap' make[1]: *** [Makefile:12: all] Error 2 make[1]: Leaving directory '/usr/src/libcap-2.25' make: *** [libcap:75: /usr/src/log/libcap-2.25] Error 2 On 05/04/2021 13:36, Adolf Belka wrote: > Hi all, > > For information I am working on the following updates:- > > gettext > gmp > go > gperf > grep > libmpc > mpc > mpd > zstd > > > Regards, > > Adolf. > --=20 Sent from my laptop --===============6564841259363887248==--