[Bug 201926] [patch] games/iourbanterror: error: conflicting types for 'speex_bits_read_from'
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Sep 28 17:11:57 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201926
Roman Bogorodskiy <novel at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |novel at FreeBSD.org
--- Comment #1 from Roman Bogorodskiy <novel at FreeBSD.org> ---
I'm not sure this patch solves the root of the problem.
iourbanterror doesn't seem to depend on speex at all, it ships bundled libspeex
and tries to build it. The problem occurs when speex is installed on the system
and its headers are used instead of a bundled speex's.
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -MMD -O2 -pipe
-fstack-protector -fno-strict-aliasing -Wall -fno-strict-aliasing -Wimplicit
-Wstrict-prototypes -DHOMEPATH=\"/.ioUrbanTerror\"
-DDEFAULT_LIBDIR=\"/usr/local/lib/iourbanterror\" -DUSE_ICON
-DMAP_ANONYMOUS=MAP_ANON -I/usr/local/include/SDL -I/usr/local/include
-D_REENTRANT -D_THREAD_SAFE -DUSE_CURL -I/usr/local/include
-DUSE_CODEC_VORBIS -I/usr/local/include -DUSE_MUMBLE -DUSE_VOIP
-DFLOATING_POINT -DUSE_ALLOCA -Icode/libspeex/include
-DDEFAULT_BASEDIR=\"/usr/local/share/quake3\" -DSTANDALONE
-DPRODUCT_VERSION=\"1.36+4.2.018\" -o
build/release-freebsd-amd64/client/buffer.o -c code/libspeex/buffer.c
code/libspeex/bits.c:109:6: error: conflicting types for 'speex_bits_read_from'
void speex_bits_read_from(SpeexBits *bits, char *chars, int len)
^
If you take a look at the "-I"s in CFLAGS you'll see that /usr/local/include
comes before code/libspeex/include. I think the proper fix would be to make
build system pass -Icode/libspeex/include before -I/usr/local/include to make
it use right header files.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list