Subject: Re: libtool stripping "-framework" directives?
To: John D. Baker <jdbaker@mylinuxisp.com>
From: Adam <adam@albedo.art.pl>
List: tech-pkg
Date: 04/20/2005 22:18:04
> /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?
Greetings,
This is a bug in libtool. I've send a bug report to its developers.
In the meantime, any work-around is welcome. :]
Kind regards,
Adam