Mac osx 10.13 - cannot build libsndfile

Open
#998 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, cmake, macos
Domain
build-system

Research direction

Start by reviewing the Homebrew CMake build log and the linker errors for the missing LAME symbols. Check how libsndfile’s MPEG Layer III encoder is linked with LAME on macOS, then compare the failing machine’s build setup with the two machines that succeeded. Done means identifying the build or dependency difference that causes the unresolved symbols and documenting a reproducible fix.

Written by the indexing model from the issue text.

Description

Hello,
I installed libsndfile on 2 of 3 machines with 10.13.6 using brew, but the third one gives me an error:
==> cmake --build build
Last 15 lines from /Users/digi/Library/Logs/Homebrew/libsndfile/02.cmake:
_mpeg_l3_encode_write_double_mono in mpeg_l3_encode.c.o
"_lame_encode_buffer_ieee_float", referenced from:
_mpeg_l3_encode_write_float_mono in mpeg_l3_encode.c.o
"_lame_encode_buffer_interleaved_ieee_double", referenced from:
_mpeg_l3_encode_write_double_stereo in mpeg_l3_encode.c.o
"_lame_encode_buffer_interleaved_ieee_float", referenced from:
_mpeg_l3_encode_write_float_stereo in mpeg_l3_encode.c.o
"_lame_encode_buffer_interleaved_int", referenced from:
_mpeg_l3_encode_write_int_stereo in mpeg_l3_encode.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

any ideas why?
Thanks!

Dominant language
C
Stars
1.7k
Forks
476
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libsndfile/libsndfile

All issues in libsndfile/libsndfile

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.