Date: Mon, 28 Sep 2015 17:11:57 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 201926] [patch] games/iourbanterror: error: conflicting types for 'speex_bits_read_from' Message-ID: <bug-201926-13-umhlkQ9FBQ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-201926-13@https.bugs.freebsd.org/bugzilla/> References: <bug-201926-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201926 Roman Bogorodskiy <novel@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |novel@FreeBSD.org --- Comment #1 from Roman Bogorodskiy <novel@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201926-13-umhlkQ9FBQ>