Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 460354 Details for
Bug 604802
sys-libs/libcap-2.25 with dev-util/gperf-3.1: ./_caps_output.gperf:71:80: error: unknown type name ‘size_t’
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix build with gperf-3.1
0001-Fix-build-with-gperf-3.1.patch (text/plain), 1.57 KB, created by
Mike Gilbert
on 2017-01-16 17:13:03 UTC
(
hide
)
Description:
fix build with gperf-3.1
Filename:
MIME Type:
Creator:
Mike Gilbert
Created:
2017-01-16 17:13:03 UTC
Size:
1.57 KB
patch
obsolete
>From 13992f56d80c0ee20e08f99b8e8ff37d63e65f9d Mon Sep 17 00:00:00 2001 >From: Mike Gilbert <floppym@gentoo.org> >Date: Mon, 16 Jan 2017 12:09:35 -0500 >Subject: [PATCH] Fix build with gperf-3.1 > >gperf-3.1 lookup functions take a size_t instead of unsigned int. > >To resolve this: > >1. Pass --includes to gperf so that size_t is defined. >2. Remove __cap_lookup_name declaration. >--- > libcap/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/libcap/Makefile b/libcap/Makefile >index d189777..634a042 100644 >--- a/libcap/Makefile >+++ b/libcap/Makefile >@@ -41,7 +41,7 @@ cap_names.h: _makenames > ./_makenames > cap_names.h > > $(GPERF_OUTPUT): cap_names.list.h >- perl -e 'print "struct __cap_token_s { const char *name; int index; };\n%{\nconst struct __cap_token_s *__cap_lookup_name(const char *, unsigned int);\n%}\n%%\n"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --ignore-case --language=ANSI-C --readonly --null-strings --global-table --hash-function-name=__cap_hash_name --lookup-function-name="__cap_lookup_name" -c -t -m20 $(INDENT) > $@ >+ perl -e 'print "struct __cap_token_s { const char *name; int index; };\n%%\n"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --ignore-case --language=ANSI-C --includes --readonly --null-strings --global-table --hash-function-name=__cap_hash_name --lookup-function-name="__cap_lookup_name" -c -t -m20 $(INDENT) > $@ > > cap_names.list.h: Makefile $(KERNEL_HEADERS)/linux/capability.h > @echo "=> making $@ from $(KERNEL_HEADERS)/linux/capability.h" >-- >2.11.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 604802
:
458870
|
458872
|
459002
|
460354
|
462080