[Rpm-maint] [rpm-software-management/rpm] 4.18.90: build fails with `-D WITH_INTERNAL_OPENPGP=ON -D WITH_OPENSSL=ON` (Issue #2507)
Tomasz Kłoczko
notifications at github.com
Thu May 11 15:07:38 UTC 2023
Looks like some library (probably `gpgme`) dependency checking is missing when source tree is configured with `-D WITH_INTERNAL_OPENPGP=ON -D WITH_OPENSSL=ON`.
I see only openssl detection in
https://github.com/rpm-software-management/rpm/blob/93ee7d9c6164467608094a7e0652a0e3d84a6715/rpmio/CMakeLists.txt#L14C1-L17
Result is that librpmio is underlinked:
```console
[ 37%] Linking C executable rpm
/usr/bin/cmake -E cmake_link_script CMakeFiles/rpm.dir/link.txt --verbose=1
/usr/bin/gcc -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -DNDEBUG -Wl,--gc-sections -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 CMakeFiles/rpm.dir/rpm.c.o CMakeFiles/rpm.dir/cliutils.c.o -o rpm -Wl,-rpath,/home/tkloczko/rpmbuild/BUILD/rpm-4.18.90/x86_64-redhat-linux-gnu/lib:/home/tkloczko/rpmbuild/BUILD/rpm-4.18.90/x86_64-redhat-linux-gnu/rpmio: lib/librpm.so.10.0.0 rpmio/librpmio.so.10.0.0 /usr/lib64/libpopt.so
/usr/bin/ld: rpmio/librpmio.so.10.0.0: undefined reference to `pgpPrtPkts'
/usr/bin/ld: rpmio/librpmio.so.10.0.0: undefined reference to `pgpNewDig'
/usr/bin/ld: rpmio/librpmio.so.10.0.0: undefined reference to `pgpDigGetParams'
/usr/bin/ld: rpmio/librpmio.so.10.0.0: undefined reference to `pgpFreeDig'
collect2: error: ld returned 1 exit status
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2507
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2507 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230511/a5ab3090/attachment-0001.html>
More information about the Rpm-maint
mailing list