Print

Print


Hi Guilherme,

This is a known problem in Gentoo Linux. They removed the definition of
"OF" from their verion of zlib.h (actually in zconf.h). They probably had
a very good reason, even though, no other distributins did this. The
solution is to reintroduce it as decribed in this bug report:

https://trac.osgeo.org/gdal/changeset/24622

I will add this to XrdSsiShMam.cc

Andy

On Mon, 11 Jun 2018, Guilherme Amadio wrote:

> This is the error that I get:
> ```
> [ 1%] Building CXX object src/CMakeFiles/XrdUtils.dir/XrdSys/XrdSysDNS.cc.o
> cd /var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3_build/src && /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -DHAVE_ATOMICS -DHAVE_CRYPT -DHAVE_ET_COM_ERR_H -DHAVE_FSTATAT -DHAVE_FUSE -DHAVE_GETHBYXR -DHAVE_GETIFADDRS -DHAVE_LIBZ -DHAVE_NAMEINFO -DHAVE_PROTOR -DHAVE_READLINE -DHAVE_SENDFILE -DHAVE_SETRESUID -DHAVE_SHADOWPW -DHAVE_SIGWTI -DHAVE_SSL -DHAVE_SYSTEMD -DHAVE_TLS1 -DHAVE_TLS11 -DHAVE_TLS12 -DHAVE_XML2 -DHAVE_XRDCRYPTO -DUSE_LIBC_SEMAPHORE=0 -DXRDPLUGIN_SOVERSION=\"4\" -DXrdUtils_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__linux__=1 -I/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/.. -I/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/. -I/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src -I/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3_build/src -I/usr/local/include -DNDEBUG -march=native -O2 -pipe -std=c++0x -std=c++0x -Wall -Wextra -Werror -Wno-unused-parameter -fno-omit-frame-pointer -Wno-error=misleading-indentation -fPIC -o CMakeFiles/XrdUtils.dir/XrdSys/XrdSysDNS.cc.o -c /var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/XrdSys/XrdSysDNS.cc
> /var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/XrdSsi/XrdSsiShMam.cc: In member function ÿÿint XrdSsiShMam::HashVal(const char*)ÿÿ:
> /var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/XrdSsi/XrdSsiShMam.cc:885:32: error: expected initializer before ÿÿOFÿÿ
> { ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
> ^~
> make[2]: *** [src/CMakeFiles/XrdSsiShMap.dir/build.make:63: src/CMakeFiles/XrdSsiShMap.dir/XrdSsi/XrdSsiShMam.cc.o] Error 1
> make[2]: Leaving directory '/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3_build'
> make[1]: *** [CMakeFiles/Makefile2:552: src/CMakeFiles/XrdSsiShMap.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> ```
> and here is some information about my system (Gentoo Linux):
> ```
> Portage 2.3.40 (python 3.6.5-final-0, default/linux/amd64/17.0/systemd, gcc-7.3.0, glibc-2.27-r3, 4.14.2-gentoo x86_64)
> =================================================================
> System uname: [log in to unmask]
> KiB Mem: 16267472 total, 3332292 free
> KiB Swap: 0 total, 0 free
> Head commit of repository gentoo: 689e16682357ad63d26f324558aca005df091d86
>
> sh bash 4.4_p23
> ld GNU ld (Gentoo 2.30 p2) 2.30.0
> ccache version 3.3.4 [enabled]
> app-shells/bash: 4.4_p23::gentoo
> dev-java/java-config: 2.2.0-r4::gentoo
> dev-lang/perl: 5.26.2::gentoo
> dev-lang/python: 2.7.14-r2::gentoo, 3.5.5-r1::gentoo, 3.6.5-r1::gentoo
> dev-util/ccache: 3.3.4-r1::gentoo
> dev-util/cmake: 3.11.3::gentoo
> dev-util/pkgconfig: 0.29.2::gentoo
> sys-apps/baselayout: 2.6::gentoo
> sys-apps/sandbox: 2.13::gentoo
> sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
> sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
> sys-devel/binutils: 2.29::gentoo, 2.29.1-r1::gentoo, 2.30-r2::gentoo
> sys-devel/gcc: 4.8.5::gentoo, 4.9.4::gentoo, 5.4.0-r4::gentoo, 6.4.0-r2::gentoo, 7.2.0-r1::gentoo, 7.3.0-r3::gentoo, 8.1.0-r3::gentoo
> sys-devel/gcc-config: 9999::gentoo
> sys-devel/libtool: 2.4.6-r5::gentoo
> sys-devel/make: 4.2.1-r3::gentoo
> sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
> sys-libs/glibc: 2.27-r3::gentoo
> sys-libs/zlib: 1.2.11-r1::gentoo
> Repositories:
>
> local
> location: /home/amadio/gentoo/local
> masters: gentoo
> priority: 0
>
> gentoo
> location: /home/amadio/gentoo/gentoo
> sync-type: git
> sync-uri: [log in to unmask]
> priority: 1
>
> ACCEPT_KEYWORDS="amd64 ~amd64"
> ACCEPT_LICENSE="*"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=native -O2 -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
> 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"
> CXXFLAGS="-march=native -O2 -pipe"
> DISTDIR="/srv/distfiles"
> EMERGE_DEFAULT_OPTS="--keep-going"
> ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
> FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="http://distfiles.gentoo.org"
> LANG="en_US.UTF-8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> ```
> The full build log can be found [here](https://github.com/xrootd/xrootd/files/2089725/xrootd.log).
>
>
> --
> You are receiving this because you modified the open/close state.
> Reply to this email directly or view it on GitHub:
> https://github.com/xrootd/xrootd/pull/709#issuecomment-396209549


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/xrootd/xrootd/pull/709#issuecomment-396225984","url":"https://github.com/xrootd/xrootd/pull/709#issuecomment-396225984","name":"View Pull Request"},"description":"View this Pull Request on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}} {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@abh3 in #709: Hi Guilherme,\n\nThis is a known problem in Gentoo Linux. They removed the definition of \n\"OF\" from their verion of zlib.h (actually in zconf.h). They probably had \na very good reason, even though, no other distributins did this. The \nsolution is to reintroduce it as decribed in this bug report:\n\nhttps://trac.osgeo.org/gdal/changeset/24622\n\nI will add this to XrdSsiShMam.cc\n\nAndy\n\nOn Mon, 11 Jun 2018, Guilherme Amadio wrote:\n\n\u003e This is the error that I get:\n\u003e ```\n\u003e [ 1%] Building CXX object src/CMakeFiles/XrdUtils.dir/XrdSys/XrdSysDNS.cc.o\n\u003e cd /var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3_build/src \u0026\u0026 /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -DHAVE_ATOMICS -DHAVE_CRYPT -DHAVE_ET_COM_ERR_H -DHAVE_FSTATAT -DHAVE_FUSE -DHAVE_GETHBYXR -DHAVE_GETIFADDRS -DHAVE_LIBZ -DHAVE_NAMEINFO -DHAVE_PROTOR -DHAVE_READLINE -DHAVE_SENDFILE -DHAVE_SETRESUID -DHAVE_SHADOWPW -DHAVE_SIGWTI -DHAVE_SSL -DHAVE_SYSTEMD -DHAVE_TLS1 -DHAVE_TLS11 -DHAVE_TLS12 -DHAVE_XML2 -DHAVE_XRDCRYPTO -DUSE_LIBC_SEMAPHORE=0 -DXRDPLUGIN_SOVERSION=\\\"4\\\" -DXrdUtils_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__linux__=1 -I/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/.. -I/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/. -I/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src -I/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3_build/src -I/usr/local/include -DNDEBUG -march=native -O2 -pipe -std=c++0x -std=c++0x -Wall -Wextra -Werror -Wno-unused-parameter -fno-omit-frame-pointer -Wno-error=misleading-indentation -fPIC -o CMakeFiles/XrdUtils.dir/XrdSys/XrdSysDNS.cc.o -c /var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/XrdSys/XrdSysDNS.cc\n\u003e /var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/XrdSsi/XrdSsiShMam.cc: In member function ÿÿint XrdSsiShMam::HashVal(const char*)ÿÿ:\n\u003e /var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3/src/XrdSsi/XrdSsiShMam.cc:885:32: error: expected initializer before ÿÿOFÿÿ\n\u003e { ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));\n\u003e ^~\n\u003e make[2]: *** [src/CMakeFiles/XrdSsiShMap.dir/build.make:63: src/CMakeFiles/XrdSsiShMap.dir/XrdSsi/XrdSsiShMam.cc.o] Error 1\n\u003e make[2]: Leaving directory '/var/tmp/portage/net-libs/xrootd-4.8.3/work/xrootd-4.8.3_build'\n\u003e make[1]: *** [CMakeFiles/Makefile2:552: src/CMakeFiles/XrdSsiShMap.dir/all] Error 2\n\u003e make[1]: *** Waiting for unfinished jobs....\n\u003e ```\n\u003e and here is some information about my system (Gentoo Linux):\n\u003e ```\n\u003e Portage 2.3.40 (python 3.6.5-final-0, default/linux/amd64/17.0/systemd, gcc-7.3.0, glibc-2.27-r3, 4.14.2-gentoo x86_64)\n\u003e =================================================================\n\u003e System uname: [log in to unmask]\n\u003e KiB Mem: 16267472 total, 3332292 free\n\u003e KiB Swap: 0 total, 0 free\n\u003e Head commit of repository gentoo: 689e16682357ad63d26f324558aca005df091d86\n\u003e\n\u003e sh bash 4.4_p23\n\u003e ld GNU ld (Gentoo 2.30 p2) 2.30.0\n\u003e ccache version 3.3.4 [enabled]\n\u003e app-shells/bash: 4.4_p23::gentoo\n\u003e dev-java/java-config: 2.2.0-r4::gentoo\n\u003e dev-lang/perl: 5.26.2::gentoo\n\u003e dev-lang/python: 2.7.14-r2::gentoo, 3.5.5-r1::gentoo, 3.6.5-r1::gentoo\n\u003e dev-util/ccache: 3.3.4-r1::gentoo\n\u003e dev-util/cmake: 3.11.3::gentoo\n\u003e dev-util/pkgconfig: 0.29.2::gentoo\n\u003e sys-apps/baselayout: 2.6::gentoo\n\u003e sys-apps/sandbox: 2.13::gentoo\n\u003e sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo\n\u003e sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo\n\u003e sys-devel/binutils: 2.29::gentoo, 2.29.1-r1::gentoo, 2.30-r2::gentoo\n\u003e sys-devel/gcc: 4.8.5::gentoo, 4.9.4::gentoo, 5.4.0-r4::gentoo, 6.4.0-r2::gentoo, 7.2.0-r1::gentoo, 7.3.0-r3::gentoo, 8.1.0-r3::gentoo\n\u003e sys-devel/gcc-config: 9999::gentoo\n\u003e sys-devel/libtool: 2.4.6-r5::gentoo\n\u003e sys-devel/make: 4.2.1-r3::gentoo\n\u003e sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)\n\u003e sys-libs/glibc: 2.27-r3::gentoo\n\u003e sys-libs/zlib: 1.2.11-r1::gentoo\n\u003e Repositories:\n\u003e\n\u003e local\n\u003e location: /home/amadio/gentoo/local\n\u003e masters: gentoo\n\u003e priority: 0\n\u003e\n\u003e gentoo\n\u003e location: /home/amadio/gentoo/gentoo\n\u003e sync-type: git\n\u003e sync-uri: [log in to unmask]\n\u003e priority: 1\n\u003e\n\u003e ACCEPT_KEYWORDS=\"amd64 ~amd64\"\n\u003e ACCEPT_LICENSE=\"*\"\n\u003e CBUILD=\"x86_64-pc-linux-gnu\"\n\u003e CFLAGS=\"-march=native -O2 -pipe\"\n\u003e CHOST=\"x86_64-pc-linux-gnu\"\n\u003e CONFIG_PROTECT=\"/etc /usr/share/config /usr/share/gnupg/qualified.txt\"\n\u003e 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\"\n\u003e CXXFLAGS=\"-march=native -O2 -pipe\"\n\u003e DISTDIR=\"/srv/distfiles\"\n\u003e EMERGE_DEFAULT_OPTS=\"--keep-going\"\n\u003e ENV_UNSET=\"DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR\"\n\u003e FCFLAGS=\"-O2 -pipe\"\n\u003e FEATURES=\"assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr\"\n\u003e FFLAGS=\"-O2 -pipe\"\n\u003e GENTOO_MIRRORS=\"http://distfiles.gentoo.org\"\n\u003e LANG=\"en_US.UTF-8\"\n\u003e LDFLAGS=\"-Wl,-O1 -Wl,--as-needed\"\n\u003e ```\n\u003e The full build log can be found [here](https://github.com/xrootd/xrootd/files/2089725/xrootd.log).\n\u003e\n\u003e\n\u003e -- \n\u003e You are receiving this because you modified the open/close state.\n\u003e Reply to this email directly or view it on GitHub:\n\u003e https://github.com/xrootd/xrootd/pull/709#issuecomment-396209549"}],"action":{"name":"View Pull Request","url":"https://github.com/xrootd/xrootd/pull/709#issuecomment-396225984"}}} { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Re: [xrootd/xrootd] Remove declarations of crc32 and adler32 (#709)", "sections": [ { "text": "", "activityTitle": "**Andrew Hanushevsky**", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@abh3", "facts": [ ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 709,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "targets": [ { "os": "default", "uri": "https://github.com/xrootd/xrootd/pull/709#issuecomment-396225984" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 336705937\n}" } ], "themeColor": "26292E" }

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1