[Rpm-maint] [rpm-software-management/rpm] RPM 4.20.0 building problem (Discussion #3430)

iseki notifications at github.com
Wed Nov 6 07:09:23 UTC 2024


When I trying to build following the `INSTALL` file, a linking problem blocks me.
I'm tried modify the `CMakeLists.txt` `tools/CMakeLists.txt`, but it doesn't works.

My commands:
```shell
mkdir _build
cd _build
cmake  .. -DLUA_LIBRARIES=/root/lua-5.4.7/src/liblua.a -DLUA_INCLUDE_DIR=../../lua-5.4.7/src -DWITH_SEQUOIA=OFF -DWITH_LEGACY_OPENPGP=ON
make
```
The lua was compiled with a flag `-fPIC`(I put it to the Makefile).

My problem:
```
[ 64%] Building C object tools/CMakeFiles/elfdeps.dir/elfdeps.c.o        
[ 65%] Linking C executable elfdeps             
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `sinh'  
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `log2'  
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `atan2' 
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `tanh'  
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `cosh'  
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `fmod'  
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `acos'  
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `sin'   
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `asin'  
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `exp'   
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `tan'   
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `cos'   
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `log'   
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `pow'   
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `log10' 
/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `sqrt' 
```

My building environment:
```
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3430
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/3430 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241105/60ac1c03/attachment-0001.html>


More information about the Rpm-maint mailing list