Skip to content

RPM 4.20.0 building problem #3430

Answered by pmatilai
iseki0 asked this question in Q&A
Nov 6, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

/usr/bin/ld: ../rpmio/librpmio.so.10.2.0: undefined reference to `sinh'

It's librpmio that's missing linkage to libm, elfdeps is just the messenger. Now, librpmio itself doesn't need libm for anything, it's Lua that does, and you seem to be statically linking it:

-DLUA_LIBRARIES=/root/lua-5.4.7/src/liblua.a

We don't generally endorse or support static linkage because it's nothing but a headache. As you're witnessing here. It might work if you add -libm to librpmio linked libraries but it's equally possible there are further issues.

That /root/... path also suggests you're building as root which you absolutely should not be doing, for any software.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@iseki0
Comment options

@pmatilai
Comment options

Answer selected by iseki0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants