Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759568 - sys-apps/fakeroot-1.25.3 - wrapped.h:190:15: error: expectwrapped.h:190:15: error: expected declaration specifiers or ‘...’ before ‘*’ tokened declaration specifiers or ‘...’ before ‘*’ token
Summary: sys-apps/fakeroot-1.25.3 - wrapped.h:190:15: error: expectwrapped.h:190:15: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-12-12 09:14 UTC by Martin Mokrejš
Modified: 2021-03-27 10:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,48.65 KB, text/plain)
2020-12-12 09:15 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2020-12-12 09:14:59 UTC
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -ftree-vectorize -c -o libfakeroot.lo libfakeroot.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -pipe -march=native -ftree-vectorize -c libfakeroot.c  -fPIC -DPIC -o .libs/libfakeroot.o
In file included from libfakeroot.c:228:
wrapped.h:190:15: error: expected declaration specifiers or ‘...’ before ‘*’ token
  190 | extern acl_t (*next_acl_get_fd)(int fd);
      |               ^
wrapped.h:191:15: error: expected declaration specifiers or ‘...’ before ‘*’ token
  191 | extern acl_t (*next_acl_get_file)(const char *path_p, acl_type_t type);
      |               ^
wrapped.h:192:39: error: unknown type name ‘acl_t’
  192 | extern int (*next_acl_set_fd)(int fd, acl_t acl);
      |                                       ^~~~~
wrapped.h:193:53: error: unknown type name ‘acl_type_t’
  193 | extern int (*next_acl_set_file)(const char *path_p, acl_type_t type, acl_t acl);
      |                                                     ^~~~~~~~~~
wrapped.h:193:70: error: unknown type name ‘acl_t’
  193 | extern int (*next_acl_set_file)(const char *path_p, acl_type_t type, acl_t acl);
      |                                                                      ^~~~~
In file included from libfakeroot.c:229:
wraptmpf.h:522:1: error: unknown type name ‘acl_t’
  522 | acl_t tmp_acl_get_fd (int fd){
      | ^~~~~
wraptmpf.h: In function ‘tmp_acl_get_fd’:
wraptmpf.h:524:11: warning: implicit declaration of function ‘next_acl_get_fd’; did you mean ‘tmp_acl_get_fd’? [-Wimplicit-function-declaration]
  524 |   return  next_acl_get_fd (fd);
      |           ^~~~~~~~~~~~~~~
      |           tmp_acl_get_fd
wraptmpf.h: At top level:
wraptmpf.h:527:1: error: unknown type name ‘acl_t’
  527 | acl_t tmp_acl_get_file (const char *path_p, acl_type_t type){
      | ^~~~~
wraptmpf.h:527:45: error: unknown type name ‘acl_type_t’
  527 | acl_t tmp_acl_get_file (const char *path_p, acl_type_t type){
      |                                             ^~~~~~~~~~
wraptmpf.h:532:29: error: unknown type name ‘acl_t’
  532 | int tmp_acl_set_fd (int fd, acl_t acl){
      |                             ^~~~~
wraptmpf.h:537:43: error: unknown type name ‘acl_type_t’
  537 | int tmp_acl_set_file (const char *path_p, acl_type_t type, acl_t acl){
      |                                           ^~~~~~~~~~
wraptmpf.h:537:60: error: unknown type name ‘acl_t’
  537 | int tmp_acl_set_file (const char *path_p, acl_type_t type, acl_t acl){
      |                                                            ^~~~~
In file included from libfakeroot.c:230:
wrapdef.h:190:8: error: expected declaration specifiers or ‘...’ before ‘*’ token
  190 | acl_t (*next_acl_get_fd)(int fd)=tmp_acl_get_fd;
      |        ^
wrapdef.h:191:8: error: expected declaration specifiers or ‘...’ before ‘*’ token
  191 | acl_t (*next_acl_get_file)(const char *path_p, acl_type_t type)=tmp_acl_get_file;
      |        ^
wrapdef.h:192:32: error: unknown type name ‘acl_t’
  192 | int (*next_acl_set_fd)(int fd, acl_t acl)=tmp_acl_set_fd;
      |                                ^~~~~
wrapdef.h:193:46: error: unknown type name ‘acl_type_t’
  193 | int (*next_acl_set_file)(const char *path_p, acl_type_t type, acl_t acl)=tmp_acl_set_file;
      |                                              ^~~~~~~~~~
wrapdef.h:193:63: error: unknown type name ‘acl_t’
  193 | int (*next_acl_set_file)(const char *path_p, acl_type_t type, acl_t acl)=tmp_acl_set_file;
      |                                                               ^~~~~
In file included from libfakeroot.c:231:
wrapstruct.h:191:14: error: ‘next_acl_get_fd’ undeclared here (not in a function); did you mean ‘tmp_acl_get_fd’?
  191 |   {(void(*))&next_acl_get_fd, "acl_get_fd"},
      |              ^~~~~~~~~~~~~~~
      |              tmp_acl_get_fd
wrapstruct.h:192:14: error: ‘next_acl_get_file’ undeclared here (not in a function)
  192 |   {(void(*))&next_acl_get_file, "acl_get_file"},
      |              ^~~~~~~~~~~~~~~~~
wrapstruct.h:193:14: error: ‘next_acl_set_fd’ undeclared here (not in a function); did you mean ‘tmp_acl_get_fd’?
  193 |   {(void(*))&next_acl_set_fd, "acl_set_fd"},
      |              ^~~~~~~~~~~~~~~
      |              tmp_acl_get_fd
wrapstruct.h:194:14: error: ‘next_acl_set_file’ undeclared here (not in a function)
  194 |   {(void(*))&next_acl_set_file, "acl_set_file"},
      |              ^~~~~~~~~~~~~~~~~
libfakeroot.c:1939:1: error: unknown type name ‘acl_t’
 1939 | acl_t acl_get_fd(int fd) {
      | ^~~~~
libfakeroot.c: In function ‘acl_get_fd’:
libfakeroot.c:1941:11: error: ‘acl_t’ undeclared (first use in this function)
 1941 |   return (acl_t)NULL;
      |           ^~~~~
libfakeroot.c:1941:11: note: each undeclared identifier is reported only once for each function it appears in
libfakeroot.c:1941:10: error: called object is not a function or function pointer
 1941 |   return (acl_t)NULL;
      |          ^
libfakeroot.c:1941:10: warning: returning ‘struct next_wrap_st *’ from a function with return type ‘int’ makes integer from pointer without a cast [-Wint-conversion]
libfakeroot.c: At top level:
libfakeroot.c:1943:1: error: unknown type name ‘acl_t’
 1943 | acl_t acl_get_file(const char *path_p, acl_type_t type) {
      | ^~~~~
libfakeroot.c:1943:40: error: unknown type name ‘acl_type_t’
 1943 | acl_t acl_get_file(const char *path_p, acl_type_t type) {
      |                                        ^~~~~~~~~~
libfakeroot.c:1947:24: error: unknown type name ‘acl_t’
 1947 | int acl_set_fd(int fd, acl_t acl) {
      |                        ^~~~~
libfakeroot.c:1951:38: error: unknown type name ‘acl_type_t’
 1951 | int acl_set_file(const char *path_p, acl_type_t type, acl_t acl) {
      |                                      ^~~~~~~~~~
libfakeroot.c:1951:55: error: unknown type name ‘acl_t’
 1951 | int acl_set_file(const char *path_p, acl_type_t type, acl_t acl) {
      |                                                       ^~~~~
libfakeroot.c: In function ‘fts_read’:
libfakeroot.c:2012:22: warning: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types]
 2012 |     SEND_GET_STAT64(r->fts_statp, _STAT_VER);
      |                     ~^~~~~~~~~~~
      |                      |
      |                      struct stat *
libfakeroot.c:89:46: note: in definition of macro ‘SEND_GET_STAT64’
   89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
      |                                              ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected ‘struct stat64 *’ but argument is of type ‘struct stat *’
  209 | extern void send_get_stat64(struct stat64 *buf);
      |                             ~~~~~~~~~~~~~~~^~~
libfakeroot.c: In function ‘fts_children’:
libfakeroot.c:2035:24: warning: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types]
 2035 |       SEND_GET_STAT64(r->fts_statp, _STAT_VER);
      |                       ~^~~~~~~~~~~
      |                        |
      |                        struct stat *
libfakeroot.c:89:46: note: in definition of macro ‘SEND_GET_STAT64’
   89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
      |                                              ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected ‘struct stat64 *’ but argument is of type ‘struct stat *’
  209 | extern void send_get_stat64(struct stat64 *buf);
      |                             ~~~~~~~~~~~~~~~^~~
make[2]: *** [Makefile:672: libfakeroot.lo] Error 1
make[2]: Leaving directory '/data/var/tmp/portage/sys-apps/fakeroot-1.25.3/work/fakeroot-1.25.3'
make[1]: *** [Makefile:690: all-recursive] Error 1
make[1]: Leaving directory '/data/var/tmp/portage/sys-apps/fakeroot-1.25.3/work/fakeroot-1.25.3'
make: *** [Makefile:459: all] Error 2
 * ERROR: sys-apps/fakeroot-1.25.3::gentoo failed (compile phase):
 *   emake failed



# emerge --info '=sys-apps/fakeroot-1.25.3::gentoo'
Portage 3.0.12 (python 3.7.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.2.0, glibc-2.32-r5, 5.4.74 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.74-x86_64-Intel-R-_Core-TM-_i7-7820HQ_CPU_@_2.90GHz-with-gentoo-2.7
KiB Mem:    32814404 total,   7396164 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 10 Dec 2020 21:00:01 +0000
Head commit of repository gentoo: 233562d771e24e722fbef1e45711895efe58d4a4
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r100::stefantalpalaru, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo, 3.10.0_alpha1::gentoo
dev-util/cmake:           3.19.1::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo, 2.34-r2::gentoo, 2.35.1-r1::gentoo
sys-devel/gcc:            9.2.0-r4::gentoo, 9.3.0-r2::gentoo, 10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r5::gentoo
Repositories:

gentoo
    location: /scratch/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

science
    location: /data/mmokrejs/proj/sci
    masters: gentoo
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

layman
    location: /var/lib/layman
    masters: gentoo
    priority: 2

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/lib/layman/stefantalpalaru
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 NPSL Nero-EULA-US AdobeFlash-10.3 AdobeFlash-11.x OPERA-2014 RAR Intel-SDP intel-ucode Skype-TOS vmware linux-firmware fasta vienna-rna unafold GRL MSttfEULA hplip-plugin meme mRNAmarkup ApE ICS ipw3945 finchtv modeller gmap master-pdf-editor abyss swiss-prot Aladdin AVASYS truecrypt-3.0 pyvcf Non-profit-OSL-3.0 estscan bcca_2010 oncotator Adobe blat staden CeCILL-1.1 phrap STRIDE cctbx-2.0 bh-luxi ARIADNE unRAR all-rights-reserved trf annovar_personal_only stampy-academic BSD-BroadInstitute UPennState freedist free-noncomm blasr sun-jlfgr FLI-Jena PSTT netperf sun-jsr67 xv vim.org OSGi-Specification-2.0 colt mod_fastcgi googleearth ACE AFL churchill genscan no-source-code linux-fw-redistributable ISSL JSON MPEG-4 Apache-2.0 BSD MIT BSD-2 FSFAP unicode Subversion"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer"
CXXFLAGS="-O2 -pipe -march=native -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native -ftree-vectorize"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -ftree-vectorize"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en_GB en cs"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/scratch/var/tmp/"
USE="X aac acpi alsa amd64 amr apache apache2 asm avx avx2 berkdb bluetooth boost bzip2 cairo caps cdda cdr cgi cli coin cracklib crypt cryptlib cryptsetup cups dbus device-mapper dhcp directfb drm dvd dvda elogind emboss encode eselect-ldso fax fbcon ffmpeg flac fontconfig fortran gbm gcrypt gd gdbm geoip geolocation gimp glpk gmp gnutls gpm gps gtk hal hpijs hwdb iconv id3tag imaging innodb inotify java javafx javascript jce jpeg jpg js jscript keymap ladspa lapack laptop lcms libglvnd libnotify libtirpc lm_sensors mad mariadb matroska mmx modemmanager mp3 ncurses nfs nls nptl nptlonly nscd nss ntfsprogs objc ocr ogg opengl openmp openssl opus pam parport pbs pcre pcre16 pcsc-lite pdf perl php png policykit polkit ppds pppd python qt3support qt4 qt5 readline rendering resolvconf romio scanner sctp seccomp server session slideshow smartcard sndfile split-usr sqlite sse sse2 sse3 sse4_1 sse4_2 ssl sslv3 ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype twolame udev unicode usb v4l v4l2 vim-syntax vnc vorbis wavpack wifi x11 xattr xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel intel8x0 intel8x0m usb-audio" APACHE2_MODULES="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="gpsclock navcom ntrip rtcm104v2 rtcm104v3 ublox nmea0183 nmea2000 aivdm passthrough" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US en-GB en cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" OPENMPI_RM="pbs" PHP_TARGETS="php5-4 php5-5" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python3_7" RUBY_TARGETS="ruby25 ruby27" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# emerge -pqv '=sys-apps/fakeroot-1.25.3::gentoo'
[ebuild     U ] sys-apps/fakeroot-1.25.3 [1.24] USE="-acl -debug -static-libs -test"
Comment 1 Martin Mokrejš 2020-12-12 09:15:52 UTC
Created attachment 678067 [details]
build.log
Comment 2 crabbed halo ablution 2020-12-12 10:06:37 UTC
Confirmed. See https://github.com/gentoo/gentoo/pull/18617 for a fix.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-27 10:44:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48c4ed7c33ac42b3211424580ce4b64349723a21

commit 48c4ed7c33ac42b3211424580ce4b64349723a21
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-03-27 10:44:02 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-03-27 10:44:02 +0000

    sys-apps/fakeroot: Clean up ebuild
    
    * Remove .la files
    * Disable building static archives
    
    Closes: https://github.com/gentoo/gentoo/pull/18617
    Closes: https://bugs.gentoo.org/759568
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: David Seifert <soap@gentoo.org>

 ...oot-1.25.3.ebuild => fakeroot-1.25.3-r1.ebuild} | 32 ++++++++++++----------
 1 file changed, 17 insertions(+), 15 deletions(-)