Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832744 - sci-electronics/xnec2c-4.3.4 fails to compile: mathlib.c:158:33: error: RTLD_DI_LMID undeclared (first use in this function)
Summary: sci-electronics/xnec2c-4.3.4 fails to compile: mathlib.c:158:33: error: RTLD_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-05 08:03 UTC by Agostino Sarubbo
Modified: 2022-02-25 05:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,71.80 KB, text/plain)
2022-02-05 08:03 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-02-05 08:03:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-electronics/xnec2c-4.3.4 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-02-05 08:03:04 UTC
Created attachment 764374 [details]
build.log

build log and emerge --info
Comment 2 Thomas Beierlein gentoo-dev 2022-02-16 13:42:33 UTC
Did some checks to sort it out. 

There are at least two musl related problems.

1. Use of dlinfo() with subfunctions not supported by musl. Luckily the result from the requests are not really used, so the calls could be dropped without loss of functionality.

2. Project uses glibs 'backtrace()' handling, which is only partially supported by musl. A possible way could be a migration to libunwind. I will contact upstream and discuss the problem there.
Comment 3 Thomas Beierlein gentoo-dev 2022-02-25 05:48:05 UTC
Upstream confirms that both problems can be fixed by dropping the related code which are left overs from debugging.
Comment 4 Larry the Git Cow gentoo-dev 2022-02-25 05:54:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ffa7558b47964913a0c88edb85c0eca3020d7bc

commit 5ffa7558b47964913a0c88edb85c0eca3020d7bc
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2022-02-25 05:54:02 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2022-02-25 05:54:02 +0000

    sci-electronics/xnec2c: Fix musl related compile problems
    
    After discussion with upstream drop left overs from experiments with
    handling of some dynamic libraries. That fixes the problems with the use
    of dlinfo() and backtrack_symbols().
    
    Closes: https://bugs.gentoo.org/832744
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 .../xnec2c/files/xnec2c-4.4.5-musl.patch           | 63 ++++++++++++++++++++++
 sci-electronics/xnec2c/xnec2c-4.4.5.ebuild         |  3 ++
 2 files changed, 66 insertions(+)