Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 821334 - www-client/chromium-95.0.4638.69: fails to compile (/usr/include/minizip/ioapi.h:135:51: error: expected initializer before ‘_Z_OF’)
Summary: www-client/chromium-95.0.4638.69: fails to compile (/usr/include/minizip/ioap...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 14:04 UTC by Marc Debruyne
Modified: 2021-11-03 14:47 UTC (History)
1 user (show)

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


Attachments
Build.log xz-compressed (build.log.xz,795.21 KB, application/x-xz)
2021-11-02 14:04 UTC, Marc Debruyne
Details
emerge --info (info,6.40 KB, text/plain)
2021-11-02 14:06 UTC, Marc Debruyne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Debruyne 2021-11-02 14:04:45 UTC
Created attachment 748053 [details]
Build.log xz-compressed

see build log
Comment 1 Marc Debruyne 2021-11-02 14:06:33 UTC
Created attachment 748056 [details]
emerge --info
Comment 2 Marc Debruyne 2021-11-02 14:09:54 UTC
see build log
emerge --sync done before.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-02 14:29:22 UTC
Relevant snippet:
```
In file included from /usr/include/minizip/unzip.h:55,
                 from gen/shim_headers/minizip_shim/third_party/zlib/contrib/minizip/unzip.h:5,
                 from ../../third_party/zlib/google/zip_reader.h:24,
                 from ../../third_party/zlib/google/zip_reader.cc:5:
/usr/include/minizip/ioapi.h:135:51: error: expected initializer before ‘_Z_OF’
  135 | typedef voidpf   (ZCALLBACK *open_file_func)      _Z_OF((voidpf opaque, const char* filename, int mode));
      |                                                   ^~~~~
/usr/include/minizip/ioapi.h:136:51: error: expected initializer before ‘_Z_OF’
  136 | typedef uLong    (ZCALLBACK *read_file_func)      _Z_OF((voidpf opaque, voidpf stream, void* buf, uLong size));
      |                                                   ^~~~~
/usr/include/minizip/ioapi.h:137:51: error: expected initializer before ‘_Z_OF’
  137 | typedef uLong    (ZCALLBACK *write_file_func)     _Z_OF((voidpf opaque, voidpf stream, const void* buf, uLong size));
      |                                                   ^~~~~
/usr/include/minizip/ioapi.h:138:51: error: expected initializer before ‘_Z_OF’
  138 | typedef int      (ZCALLBACK *close_file_func)     _Z_OF((voidpf opaque, voidpf stream));
      |                                                   ^~~~~
/usr/include/minizip/ioapi.h:139:51: error: expected initializer before ‘_Z_OF’
  139 | typedef int      (ZCALLBACK *testerror_file_func) _Z_OF((voidpf opaque, voidpf stream));
      |                                
```
Comment 4 Stephan Hartmann (RETIRED) gentoo-dev 2021-11-02 15:59:04 UTC
What version of sys-libs/zlib with USE flags is installed?
Comment 5 Marc Debruyne 2021-11-02 17:26:15 UTC
(In reply to Stephan Hartmann from comment #4)
> What version of sys-libs/zlib with USE flags is installed?

sys-libs/zlib-1.2.11-r4::gentoo was built with the following:
USE="minizip (split-usr) -static-libs" ABI_X86="(64) -32 (-x32)"
Comment 6 Marc Debruyne 2021-11-03 10:21:34 UTC
re-emerged sys-libs/zlib
no change
Comment 7 Stephan Hartmann (RETIRED) gentoo-dev 2021-11-03 10:58:35 UTC
You seem to have a zconf.h somewhere in the search path of the compiler, e.g. /usr/local/include. Chromium does not ship a zconf.h.
Comment 8 Marc Debruyne 2021-11-03 13:25:36 UTC
(In reply to Stephan Hartmann from comment #7)
> You seem to have a zconf.h somewhere in the search path of the compiler,
> e.g. /usr/local/include. Chromium does not ship a zconf.h.

Thx,

Renamed /usr/local/include/zconf.h to zconf.h.org and zlib.h to zlib.h.org.

Build successfull.

Seems that I installed zlib from sources.
Did make uninstall.