void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.6k stars 2.16k forks source link

nextcloud-client fails to build #39467

Open Gottox opened 2 years ago

Gottox commented 2 years ago

Is this a new report?

Yes

System Info

Void 5.19.9_1 x86_64 GenuineIntel uptodate rrrmFFFFFFFFFF

Package(s) Affected

nextcloud-client-3.5.4_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

none

Expected behaviour

xbps-src pkg should build a package

Actual behaviour

~/src/void-packages/srcpkgs/nextcloud-client (master ✗) ../../xbps-src pkg  
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> nextcloud-client-3.5.4_1: removing autodeps, please wait...
=> nextcloud-client-3.5.4_1: the following build options are set:
   dolphin: Build KDE dolphin support (ON)
   webengine: Build Qt5 WebEngine support (ON)
=> nextcloud-client-3.5.4_1: building [cmake] for x86_64...
   [host] pkg-config-0.29.2_3: found (https://repo-default.voidlinux.org/current)
   [host] inkscape-1.1.1_5: found (https://repo-default.voidlinux.org/current)
   [host] cmake-3.24.2_1: found (https://repo-default.voidlinux.org/current)
   [host] ninja-1.11.1_1: found (https://repo-default.voidlinux.org/current)
   [target] qt5-tools-devel-5.15.5+20220728_1: found (https://repo-default.voidlinux.org/current)
   [target] qt5-declarative-devel-5.15.5+20220728_1: found (https://repo-default.voidlinux.org/current)
   [target] qt5-webchannel-devel-5.15.5+20220728_1: found (https://repo-default.voidlinux.org/current)
   [target] qt5-location-devel-5.15.5+20220728_1: found (https://repo-default.voidlinux.org/current)
   [target] qtkeychain-qt5-devel-0.11.1_1: found (https://repo-default.voidlinux.org/current)
   [target] sqlite-devel-3.39.3_1: found (https://repo-default.voidlinux.org/current)
   [target] libcloudproviders-devel-0.3.1_1: found (https://repo-default.voidlinux.org/current)
   [target] qt5-quickcontrols2-devel-5.15.5+20220728_1: found (https://repo-default.voidlinux.org/current)
   [target] qt5-websockets-devel-5.15.5+20220728_1: found (https://repo-default.voidlinux.org/current)
   [target] qt5-svg-devel-5.15.5+20220728_1: found (https://repo-default.voidlinux.org/current)
   [target] extra-cmake-modules-5.97.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kio-devel-5.97.0_1: found (https://repo-default.voidlinux.org/current)
   [target] qt5-webengine-devel-5.15.10_1: found (https://repo-default.voidlinux.org/current)
   [runtime] qt5-graphicaleffects-5.15.5+20220728_1: found (https://repo-default.voidlinux.org/current)
   [runtime] nextcloud-client-3.5.4_1: found (https://repo-default.voidlinux.org/current)
   [runtime] kwallet-5.97.0_1: found (https://repo-default.voidlinux.org/current)
   [runtime] nextcloud-client-3.5.4_1: found (https://repo-default.voidlinux.org/current)
   [runtime] nextcloud-client-3.5.4_1: found (https://repo-default.voidlinux.org/current)
=> nextcloud-client-3.5.4_1: installing host dependencies: pkg-config-0.29.2_3 inkscape-1.1.1_5 cmake-3.24.2_1 ninja-1.11.1_1 ...
=> nextcloud-client-3.5.4_1: installing target dependencies: qt5-tools-devel-5.15.5+20220728_1 qt5-declarative-devel-5.15.5+20220728_1 qt5-webchannel-devel-5.15.5+20220728_1 qt5-location-devel-5.15.5+20220728_1 qtkeychain-qt5-devel-0.11.1_1 sqlite-devel-3.39.3_1 libcloudproviders-devel-0.3.1_1 qt5-quickcontrols2-devel-5.15.5+20220728_1 qt5-websockets-devel-5.15.5+20220728_1 qt5-svg-devel-5.15.5+20220728_1 extra-cmake-modules-5.97.0_1 kio-devel-5.97.0_1 qt5-webengine-devel-5.15.10_1 ...
=> nextcloud-client-3.5.4_1: running do-fetch hook: 00-distfiles ...
=> nextcloud-client-3.5.4_1: running do-extract hook: 00-distfiles ...
=> nextcloud-client-3.5.4_1: extracting distfile(s), please wait...
=> nextcloud-client-3.5.4_1: running do-patch hook: 00-patches ...
=> nextcloud-client-3.5.4_1: patching: testfolderman-within-chroot.patch.
=> nextcloud-client-3.5.4_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> nextcloud-client-3.5.4_1: running pre-configure hook: 01-override-config ...
=> nextcloud-client-3.5.4_1: running pre-configure hook: 02-script-wrapper ...
=> nextcloud-client-3.5.4_1: running do_configure ...
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build of crashreporter disabled.
fea9863097e3abfc372695f5e0e3846e37cecbcb
-- GIT_SHA1 fea9863097e3abfc372695f5e0e3846e37cecbcb
Compiling with updater
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE) 
-- Could NOT find PdfLatex (missing: PDFLATEX_EXECUTABLE) 
-- Found OpenSSL: /usr/lib/libcrypto.so (found suitable version "1.1.1q", minimum required is "1.1")  
-- Found ZLIB: /usr/lib/libz.a (found version "1.2.11") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'cloudproviders'
--   Found cloudproviders, version 0.3.1
-- Checking for module 'dbus-1'
--   Found dbus-1, version 1.14.0
-- Checking for module 'gio-2.0'
--   Found gio-2.0, version 2.72.2
-- Checking for module 'glib-2.0'
--   Found glib-2.0, version 2.72.2
-- Using Qt 5.15.5 (/usr/lib/qt5/bin/qmake)
-- Performing Test WITH_FPIC
-- Performing Test WITH_FPIC - Success
-- Performing Test WITH_STACK_PROTECTOR
-- Performing Test WITH_STACK_PROTECTOR - Success
-- Checking for module 'sqlite3'
--   Found sqlite3, version 3.39.3
-- Found SQLite3: /usr/lib/libsqlite3.so (Required is at least version "3.8.0") 
-- Looking for argp.h
-- Looking for argp.h - found
-- Looking for utimes
-- Looking for utimes - found
-- Looking for lstat
-- Looking for lstat - found
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
list of plugins suffix;cfapi;xattr
discovery suffix
/builddir/desktop-3.5.4/src/libsync/vfs/suffix
/builddir/desktop-3.5.4/src/libsync/vfs/suffix suffix
-- Added vfsPlugin without tests: suffix
discovery cfapi
/builddir/desktop-3.5.4/src/libsync/vfs/cfapi
/builddir/desktop-3.5.4/src/libsync/vfs/cfapi cfapi
-- Added vfsPlugin without tests: cfapi
discovery xattr
/builddir/desktop-3.5.4/src/libsync/vfs/xattr
/builddir/desktop-3.5.4/src/libsync/vfs/xattr xattr
-- Added vfsPlugin without tests: xattr
-- Generate 16-Nextcloud-icon.png
-- Generate 24-Nextcloud-icon.png
-- Generate 32-Nextcloud-icon.png
-- Generate 48-Nextcloud-icon.png
-- Generate 64-Nextcloud-icon.png
-- Generate 128-Nextcloud-icon.png
-- Generate 256-Nextcloud-icon.png
-- Generate 512-Nextcloud-icon.png
-- Generate 1024-Nextcloud-icon.png
Building with libcloudproviderssupport
-- Found SharedMimeInfo: /usr/bin/update-mime-database (found version "2.2") 
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found KF5CoreAddons: /usr/lib64/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.97.0") 
-- Found KF5KIO: /usr/lib64/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.97.0") 
-- Found KF5: success (found suitable version "5.97.0", minimum required is "5.16.0") found components: CoreAddons KIO 
-- Could not set up the appstream test. appstreamcli is missing.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Could NOT find CMocka (missing: CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR) 
-- The following OPTIONAL packages have been found:

 * Qt5WebChannel (required version >= 5.15.2)
 * Qt5Positioning (required version >= 5.15.2)
 * Qt5WebEngineCore (required version >= 5.15.2)
 * Qt5PrintSupport (required version >= 5.15.2)
 * Qt5WebEngineWidgets
 * Qt5WebEngine
 * Qt5LinguistTools
 * SharedMimeInfo, A database of common MIME types, <https://freedesktop.org/wiki/Software/shared-mime-info/>
 * KF5Service (required version >= 5.97.0)
 * KF5Bookmarks (required version >= 5.97.0)
 * KF5Completion (required version >= 5.97.0)
 * KF5ItemViews (required version >= 5.97.0)
 * KF5JobWidgets (required version >= 5.97.0)
 * KF5Solid (required version >= 5.97.0)
 * KF5Auth (required version >= 5.97.0)
 * KF5Codecs (required version >= 5.97.0)
 * KF5Config (required version >= 5.97.0)
 * KF5ConfigWidgets (required version >= 5.97.0)
 * KF5XmlGui (required version >= 5.97.0)
 * KF5WidgetsAddons (required version >= 5.97.0)
 * Freetype
 * Fontconfig

-- The following REQUIRED packages have been found:

 * Inotify
 * OpenSSL (required version >= 1.1)
 * ZLIB
 * Qt5Keychain
 * SQLite3 (required version >= 3.8.0)
 * Qt5WebSockets
 * Qt5Svg
 * Qt5QuickControls2
 * ECM (required version >= 5.16.0)
 * KF5CoreAddons (required version >= 5.97.0)
 * Qt5Widgets (required version >= 5.15.2)
 * PkgConfig
 * Qt5Concurrent (required version >= 5.15.2)
 * KF5KIO (required version >= 5.16.0)
 * KF5 (required version >= 5.16.0)
 * Qt5DBus
 * Qt5Core
 * Qt5Test
 * Qt5Xml
 * Qt5Network
 * Qt5Qml
 * Qt5Gui (required version >= 5.15.5)
 * Qt5QmlModels (required version >= 5.15.5)
 * Qt5Quick
 * Qt5

-- The following OPTIONAL packages have not been found:

 * Sphinx
 * PdfLatex
 * Doxygen
 * CMocka

-- Configuring done
-- Generating done
-- Build files have been written to: /builddir/desktop-3.5.4/build
=> nextcloud-client-3.5.4_1: running pre-build hook: 02-script-wrapper ...
=> nextcloud-client-3.5.4_1: running do_build ...
[1/499] Automatic MOC for target nextclouddolphinpluginhelper
[2/499] Building CXX object shell_integration/dolphin/CMakeFiles/nextclouddolphinpluginhelper.dir/ownclouddolphinpluginhelper.cpp.o
[3/499] Automatic MOC for target nextcloud_csync
[4/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/syncjournalfilerecord.cpp.o
[5/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/filesystembase.cpp.o
[6/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/preparedsqlquerymanager.cpp.o
[7/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/checksums.cpp.o
[8/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/ownsql.cpp.o
[9/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/syncjournaldb.cpp.o
[10/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/remotepermissions.cpp.o
[11/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/pinstate.cpp.o
[12/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/plugin.cpp.o
[13/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/vfs.cpp.o
[14/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/utility.cpp.o
[15/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/__/common/syncfilestatus.cpp.o
[16/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_unix.cpp.o
[17/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/csync.cpp.o
[18/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/std/c_time.cpp.o
[19/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/csync_exclude.cpp.o
[20/499] Building CXX object shell_integration/dolphin/CMakeFiles/nextclouddolphinpluginhelper.dir/nextclouddolphinpluginhelper_autogen/mocs_compilation.cpp.o
[21/499] Building CXX object src/csync/CMakeFiles/nextcloud_csync.dir/nextcloud_csync_autogen/mocs_compilation.cpp.o
[22/499] Linking CXX shared library shell_integration/dolphin/libnextclouddolphinpluginhelper.so
[23/499] Automatic MOC for target nextclouddolphinoverlayplugin
[24/499] Linking CXX shared library src/csync/libnextcloud_csync.so.3.5.4
[25/499] Building CXX object shell_integration/dolphin/CMakeFiles/nextclouddolphinoverlayplugin.dir/nextclouddolphinoverlayplugin_autogen/mocs_compilation.cpp.o
[26/499] Creating library symlink src/csync/libnextcloud_csync.so.0 src/csync/libnextcloud_csync.so
[27/499] Automatic MOC for target nextclouddolphinactionplugin
[28/499] Building CXX object shell_integration/dolphin/CMakeFiles/nextclouddolphinactionplugin.dir/nextclouddolphinactionplugin_autogen/mocs_compilation.cpp.o
[29/499] Building CXX object shell_integration/dolphin/CMakeFiles/nextclouddolphinactionplugin.dir/ownclouddolphinactionplugin.cpp.o
[30/499] Building CXX object shell_integration/dolphin/CMakeFiles/nextclouddolphinoverlayplugin.dir/ownclouddolphinoverlayplugin.cpp.o
[31/499] Linking CXX shared module shell_integration/dolphin/nextclouddolphinoverlayplugin.so
[32/499] Linking CXX shared module shell_integration/dolphin/nextclouddolphinactionplugin.so
[33/499] Automatic MOC for target nextcloudsync
[34/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/wordlist.cpp.o
[35/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/cookiejar.cpp.o
[36/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/clientproxy.cpp.o
[37/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/bandwidthmanager.cpp.o
[38/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/pushnotifications.cpp.o
[39/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/capabilities.cpp.o
[40/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/filesystem.cpp.o
[41/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/account.cpp.o
[42/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/httplogger.cpp.o
[43/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/encryptfolderjob.cpp.o
[44/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/logger.cpp.o
[45/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/discoveryphase.cpp.o
[46/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/discovery.cpp.o
[47/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/accessmanager.cpp.o
[48/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/configfile.cpp.o
[49/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/abstractnetworkjob.cpp.o
[50/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/iconjob.cpp.o
[51/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/nextcloudtheme.cpp.o
[52/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/networkjobs.cpp.o
[53/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/owncloudpropagator.cpp.o
[54/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/abstractpropagateremotedeleteencrypted.cpp.o
[55/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/deletejob.cpp.o
[56/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/progressdispatcher.cpp.o
[57/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagatorjobs.cpp.o
[58/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagatedownload.cpp.o
[59/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateupload.cpp.o
[60/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateuploadv1.cpp.o
[61/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateuploadng.cpp.o
[62/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/putmultifilejob.cpp.o
[63/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/bulkpropagatorjob.cpp.o
[64/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotedeleteencrypted.cpp.o
[65/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotedelete.cpp.o
[66/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotedeleteencryptedrootfolder.cpp.o
[67/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotemkdir.cpp.o
[68/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateuploadencrypted.cpp.o
[69/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotemove.cpp.o
[70/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/propagatedownloadencrypted.cpp.o
[71/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/syncfileitem.cpp.o
[72/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/syncfilestatustracker.cpp.o
[73/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/syncengine.cpp.o
[74/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/localdiscoverytracker.cpp.o
[75/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/syncoptions.cpp.o
[76/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/syncresult.cpp.o
[77/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/datetimeprovider.cpp.o
[78/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/clientsideencryption.cpp.o
[79/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/clientsideencryptionjobs.cpp.o
[80/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/userstatusconnector.cpp.o
[81/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/ocsuserstatusconnector.cpp.o
[82/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/ocsprofileconnector.cpp.o
[83/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/creds/abstractcredentials.cpp.o
[84/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/creds/dummycredentials.cpp.o
[85/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/lockfilejobs.cpp.o
[86/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/creds/credentialscommon.cpp.o
[87/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/creds/keychainchunk.cpp.o
[88/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/creds/httpcredentials.cpp.o
[89/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/nextcloudsync_autogen/mocs_compilation.cpp.o
[90/499] Building CXX object src/libsync/CMakeFiles/nextcloudsync.dir/theme.cpp.o
[91/499] Linking CXX shared library src/libsync/libnextcloudsync.so.3.5.4
FAILED: src/libsync/libnextcloudsync.so.3.5.4 
: && /usr/lib/ccache/bin/g++ -fPIC -DNDEBUG -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2   -g -fdebug-prefix-map=/builddir/desktop-3.5.4/build=. -Wpedantic -fstack-protector-strong  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libnextcloudsync.so.0 -o src/libsync/libnextcloudsync.so.3.5.4 src/libsync/CMakeFiles/nextcloudsync.dir/nextcloudsync_autogen/mocs_compilation.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/account.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/pushnotifications.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/wordlist.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/bandwidthmanager.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/capabilities.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/clientproxy.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/cookiejar.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/discovery.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/discoveryphase.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/encryptfolderjob.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/filesystem.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/httplogger.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/logger.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/accessmanager.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/configfile.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/abstractnetworkjob.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/networkjobs.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/iconjob.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/owncloudpropagator.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/nextcloudtheme.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/abstractpropagateremotedeleteencrypted.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/deletejob.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/progressdispatcher.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagatorjobs.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagatedownload.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateupload.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateuploadv1.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateuploadng.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/bulkpropagatorjob.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/putmultifilejob.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotedelete.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotedeleteencrypted.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotedeleteencryptedrootfolder.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotemove.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateremotemkdir.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagateuploadencrypted.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/propagatedownloadencrypted.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/syncengine.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/syncfileitem.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/syncfilestatustracker.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/localdiscoverytracker.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/syncresult.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/syncoptions.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/theme.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/clientsideencryption.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/clientsideencryptionjobs.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/datetimeprovider.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/ocsuserstatusconnector.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/userstatusconnector.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/ocsprofileconnector.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/lockfilejobs.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/creds/dummycredentials.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/creds/abstractcredentials.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/creds/credentialscommon.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/creds/keychainchunk.cpp.o src/libsync/CMakeFiles/nextcloudsync.dir/creds/httpcredentials.cpp.o  -Wl,-rpath,/builddir/desktop-3.5.4/build/src/csync:  src/csync/libnextcloud_csync.so.3.5.4  /usr/lib/libcrypto.so  /usr/lib/libssl.so  /usr/lib/libQt5WebSockets.so.5.15.5  /usr/lib/libQt5Svg.so.5.15.5  /usr/lib/libqt5keychain.so.0.11.1  /usr/lib/libsqlite3.so  /usr/lib/libQt5Concurrent.so.5.15.5  /usr/lib/libz.a  /usr/lib/libcrypto.so  /usr/lib/libQt5Network.so.5.15.5  /usr/lib/libQt5Widgets.so.5.15.5  /usr/lib/libQt5Gui.so.5.15.5  /usr/lib/libQt5DBus.so.5.15.5  /usr/lib/libQt5Core.so.5.15.5 && :
/usr/bin/ld: /usr/lib/libz.a(deflate.o): warning: relocation against `z_errmsg' in read-only section `.text'
/usr/bin/ld: /usr/lib/libz.a(zutil.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
=> ERROR: nextcloud-client-3.5.4_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 1
=> ERROR:   in do_build() at common/build-style/cmake.sh:93
~/src/void-packages/srcpkgs/nextcloud-client (master ✗) 

Steps to reproduce

  1. xbps-src pkg nextcloud-client
sgn commented 2 years ago

Can't reproduce. I can build it normally

crtxcr commented 1 year ago

I can reproduce this. I discovered this issue report because building "poppler" fails with the exact same error message. So at least 2 packages are now affected by this.

usr/bin/ld: /usr/lib/libz.a(deflate.o): warning: relocation against `z_errmsg' in read-only section `.text'
/usr/bin/ld: /usr/lib/libz.a(zutil.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC

Seems in both cases the build system (cmake) finds libz.a instead of libz.so, for whatever reason.

paper42 commented 1 year ago

I can not reproduce issues with both nextcloud-client and popper in clean x86_64 glibc and musl masterdirs. It correctly picks the dynamic library for me.

crtxcr commented 1 year ago

The issue remained after a ./xbps-src clean

However, after rm -r hostdir masterdir followed by ./xbps-src binary-bootstrap, it is no longer reproducable. I can build nextcloud-client as well as poppler now. Both packages pick the dynamic zlib now too.

@Gottox: Maybe this will take care of this issue for you too

KaiJan57 commented 9 months ago

Just as a for future reference: I could fix a similar problem in a custom template by including zlib-devel in the template's makedepends field