autotools static -lmp3lame test fails because it depends on static -lmpg123
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c, cmake
- Domain
- build-system
Research direction
Start by locating the Autotools configure checks for libmpg123 and libmp3lame, then inspect how their linker flags are tested. Reproduce the static cross-compile failure with the reported setup if available. Done when the lame check accounts for its libmpg123 dependency and static MP3 support is detected.
Written by the indexing model from the issue text.
Description
Dear libsndfile maintainers,
My situtation:
- I am cross-compiling for Windows (various architectures) from Debian Trixie
- I want static libraries for everything
- I built and installed static libmpg123 and static libmp3lame into my prefix
- libsndfile ./configure test for
-lmp3lamefails with missing symbols fromlibmpg123, which is not passed on the linker command line - sndfile builds without MP3 support
Proposed solution:
- move libmpg123 configure tests before libmp3lame configure tests, and
- pass
-lmpg123(from its configure test) to-lmp3lameconfigure test too
Ideally:
- the configure test for lame could try using pkg-config, but I checked and lame.pc does not have a static libs section so this would fail in a similar way (I may file a bug with lame)
Workarounds:
- is there any flag or environment variable I can set to get this to work?
- would I have better luck with the cmake build system?
Thanks for your work on libsndfile!
- Dominant language
- C
- Stars
- 1.7k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libsndfile/libsndfile
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
libsndfile/libsndfile#1239 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
libsndfile/libsndfile#1238 · 2 comments ·
-
NULL pointer dereference in alac_pakt_read_decode() via unchecked alac_pakt_alloc() returnPossibly taken @Perennos claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
libsndfile/libsndfile#1220 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
libsndfile/libsndfile#1182 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libsndfile/libsndfile#1122 ·
All issues in libsndfile/libsndfile
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Broken links in reference manualPossibly taken @farisbasha claimed this 14 days ago. Opencore:meson
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mpv-player/mpv#18934 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100