Subject: libtool stripping "-framework" directives?
To: None <tech-pkg@netbsd.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 04/19/2005 13:59:19
I'm attempting to build audio/libsndfile on MacOS X 10.2.8 and the build
fails with undefined symbols as follows:
[...]
/bin/sh ../libtool --mode=link gcc -pipe -O2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wcast-align -Wcast-qual -Wnested-externs -Wbad-function-cast -Wwrite-strings -pipe -fpascal-strings -I/Developer/Headers/FlatCarbon -L/usr/pkg/lib -o sndfile-play sndfile-play.o ../src/libsndfile.la -framework CoreAudio -lm
gcc -pipe -O2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wcast-align -Wcast-qual -Wnested-externs -Wbad-function-cast -Wwrite-strings -pipe -fpascal-strings -I/Developer/Headers/FlatCarbon -o .libs/sndfile-play sndfile-play.o -L/Volumes/NetBSD/tmp/pkgsrc/audio/libsndfile/work/.buildlink/lib ../src/.libs/libsndfile.dylib -lm
ld: Undefined symbols:
_AudioDeviceAddIOProc
_AudioDeviceGetProperty
_AudioDeviceRemoveIOProc
_AudioDeviceSetProperty
_AudioDeviceStart
_AudioDeviceStop
_AudioHardwareGetProperty
*** Error code 1
Stop.
bmake: stopped in /Volumes/NetBSD/tmp/pkgsrc/audio/libsndfile/work/libsndfile-1.0.11/examples
[...]
The interesting thing to notice is the '-framework CoreAudio' in the
libtool command line, but it is missing from the resultant gcc command
line. The missing symbols are in
/System/Library/Frameworks/CoreAudio.framework/Versions/\
Current/CoreAudio
Any hints for how to get around this?
--
John D. Baker, KN5UKS NetBSD Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com OpenBSD FreeBSD
BSD -- It just sits there and _works_!