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

2024-11-05 Thread iseki
Before I post here, I tried to add `target_link_libraries(elfdeps PRIVATE m)` 
and `target_link_options(elfdeps PRIVATE "LINKER:--copy-dt-needed-entries")`. 
But it doesn't works.

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

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


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

2024-11-05 Thread iseki
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-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


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

2024-11-06 Thread iseki
> We don't generally endorse or support static linkage because it's nothing but 
> a headache.

But I read the docs of lua.org, there's no guide about compile lua to a dynamic 
library.

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

Message ID: 
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint