From owner-freebsd-ports-bugs@freebsd.org Mon Sep 28 17:11:57 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5767A0AA2E for ; Mon, 28 Sep 2015 17:11:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 774C519CF for ; Mon, 28 Sep 2015 17:11:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8SHBvFT073924 for ; Mon, 28 Sep 2015 17:11:57 GMT (envelope-from bugzilla-noreply@freebsd.org) 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' Date: Mon, 28 Sep 2015 17:11:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, patch X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: novel@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2015 17:11:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201926 Roman Bogorodskiy changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |novel@FreeBSD.org --- Comment #1 from Roman Bogorodskiy --- 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.