Error compiling libsndfile

Emmanuel Hainry ehainry at
Thu Mar 8 06:05:10 PST 2007

Citando jofivigo at :
> Hello. i'm trying to compile libsndfile 1.0.17 from the latest  
> MacPorts but I'm getting this error:
> /usr/bin/libtool: can't locate file for: -lFLAC
> /usr/bin/libtool: file: -lFLAC is not an object file (not allowed in  
> a library)
> make[3]: *** [] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1
> Warning: the following items did not execute (for libsndfile):  
> Error: Status 1 encountered during processing.
> I've installed FLAC through MacPorts but it still doesn't compile,  
> spitting the same errors. Should I install FLAC directly from source,  
> even if I don't need it?

As stated in ,
this problem may arise if you have installed xiph's quicktime elements.
To forbid gcc to use this framework, you can add the line 

configure.env   CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib 

to the portfile (using port edit libsndfile). Then port clean and port
instal again.

Hope this helps


PS: or you can add --disable-flac to the configure.args line.

More information about the macports-users mailing list