[MacPorts] #31368: audiofile 0.3.1 fails to compile with clang
MacPorts
noreply at macports.org
Thu Sep 22 16:34:01 PDT 2011
#31368: audiofile 0.3.1 fails to compile with clang
------------------------------------------+---------------------------------
Reporter: craig+macports@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: audiofile
------------------------------------------+---------------------------------
{{{
:info:build make[3]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_audiofile/audiofile/work/audiofile-0.3.1/libaudiofile'
:info:build /bin/sh ../libtool --tag=CC --mode=compile
/Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include
-DNDEBUG -Wall -Werror -pipe -O2 -arch x86_64 -MT g711.lo -MD -MP -MF
.deps/g711.Tpo -c -o g711.lo g711.c
:info:build libtool: compile: /Developer/usr/bin/clang -DHAVE_CONFIG_H
-I. -I.. -I/opt/local/include -DNDEBUG -Wall -Werror -pipe -O2 -arch
x86_64 -MT g711.lo -MD -MP -MF .deps/g711.Tpo -c g711.c -fno-common -DPIC
-o .libs/g711.o
:info:build g711.c:133:24: error: passing 'const short [8]' to parameter
of type 'short *' discards qualifiers [-Werror]
:info:build seg = search(pcm_val, seg_end, 8);
:info:build ^~~~~~~
:info:build g711.c:227:24: error: passing 'const short [8]' to parameter
of type 'short *' discards qualifiers [-Werror]
:info:build seg = search(pcm_val, seg_end, 8);
:info:build ^~~~~~~
:info:build 2 errors generated.
}}}
GCC seems to be more lenient, so as a workaround for now you can
{{{
port install audiofile configure.compiler=gcc-4.2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/31368>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list