From owner-freebsd-questions@FreeBSD.ORG Sat Feb 14 20:21:44 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 592CF1065670 for ; Sat, 14 Feb 2009 20:21:44 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id CEFD68FC17 for ; Sat, 14 Feb 2009 20:21:43 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by fk-out-0910.google.com with SMTP id f40so877180fka.11 for ; Sat, 14 Feb 2009 12:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=BFmAJSPy9s6N+09Jb1xE99d1uYqj+JnJl2keRB1UFRE=; b=u4EBqT1s58ntZRdJ+4oitrdxDhO0uaPlSQFGZZmJiTGCYXlFBfOMsTIyaL9VSKvMP2 1sBdibo6yHt7gnK4xq6jwb/nSjrKzS9es9ypKx8E+9pUqnLokjOeOTcdZgpFNq+Xldum CS6QBM79+aSejM7aSXHd2AvFLw6RO17rAD7Dk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=scoedmfyMIQbEvTVfTmd62pGNFgDGjfrbVLH87juPw24lGTxFVun1VDFHVUgMp2G+R Ho6MsMWxjn3fJMlW5/2YEp5vq5hInub4RBvJiZyz+7nh7iOEbYaHZd7Iv0vlvdX7FmZ1 gWzhMXqZ86FwhMYvBWnHUrgnxbnUrvi0ArMAg= MIME-Version: 1.0 Received: by 10.103.226.20 with SMTP id d20mr1594mur.8.1234642901324; Sat, 14 Feb 2009 12:21:41 -0800 (PST) In-Reply-To: <20090214184237.GA60302@twisted.net> References: <20090214184237.GA60302@twisted.net> Date: Sat, 14 Feb 2009 15:21:41 -0500 Message-ID: <8cb6106e0902141221x3e322a9eo900dcc00ca8ce158@mail.gmail.com> From: Josh Carroll To: troy@twisted.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, ahze@freebsd.org Subject: Re: gpac-libgpac port not building on amd64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 20:21:44 -0000 On Sat, Feb 14, 2009 at 1:42 PM, Troy wrote: > I just did a successful portupgrade of multimedia/gpac-libgpac but when > trying to upgrade the exact same port on amd64, it fails with the > following error. > > Thanks > > cc -O3 -O2 -fno-strict-aliasing -pipe -fPIC -pthread > -fno-strict-aliasing -Wno-pointer-sign > -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include -I../ > -DGPAC_HAVE_CONFIG_H -fPIC -DPIC -c compositor/events.c -o > compositor/events.opic > compositor/events.c: In function 'load_text_node': > compositor/events.c:239: warning: passing argument 3 of 'gf_utf8_wcstombs' > from incompatible pointer type > compositor/events.c:247: warning: passing argument 3 of 'gf_utf8_wcstombs' > from incompatible pointer type > cc -O3 -O2 -fno-strict-aliasing -pipe -fPIC -pthread > -fno-strict-aliasing -Wno-pointer-sign > -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include -I../ > -DGPAC_HAVE_CONFIG_H -fPIC -DPIC -c compositor/font_engine.c -o > compositor/font_engine.opic > cc -O3 -O2 -fno-strict-aliasing -pipe -fPIC -pthread > -fno-strict-aliasing -Wno-pointer-sign > -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include -I../ > -DGPAC_HAVE_CONFIG_H -fPIC -DPIC -c compositor/hardcoded_protos.c -o > compositor/hardcoded_protos.opic > cc -O3 -O2 -fno-strict-aliasing -pipe -fPIC -pthread > -fno-strict-aliasing -Wno-pointer-sign > -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include -I../ > -DGPAC_HAVE_CONFIG_H -fPIC -DPIC -c compositor/mesh.c -o > compositor/mesh.opic > In file included from compositor/mesh.c:33: > compositor/gl_inc.h:45:19: error: GL/gl.h: No such file or directory > gmake: *** [compositor/mesh.opic] Error 1 > *** Error code 2 > > Stop in /usr/ports/multimedia/gpac-libgpac. I ran into this, too. Since I didn't want OpenGL support anyway, I just added OPTIONS support to this port, and one of those options is to disable OpenGL support and submitted this as a PR. The PR hasn't fully posted yet, but here's the URL for when it's in the system: http://www.freebsd.org/cgi/query-pr.cgi?pr=131681 The patch is here if you're interested: http://pflog.net/~floyd/gpac-libgpac.patch cd /usr/ports/multimedia/gpac-libgpac patch < /path/to/gpac-libgpac.patch Then just "make config" and unselect the option for OPENGL, and it should build. The port should have OpenGL as a dependency if OpenGL support is enabled - as it is now, it's building with GL support if it finds GL/gl.h and libGL.so, but it should be listed explicitly as a dependency in the Makefile. I'll work on another patch for that. As for getting it to build as-is, I think it'd be sufficient to add -I${LOCALBASE}/include to --extra-cflags and -L${LOCALBASE}/lib to --extra-ldflags, but I'm not sure this is the "proper" way to do that (I'd have to check the porter's handbook). It does in fact build properly by adding those, though so just update those lines in the Makefile to: --extra-cflags="${CFLAGS} ${PTHREAD_CFLAGS} -fPIC -I${LOCALBASE}/include" \ --extra-ldflags="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib" \ Josh