From owner-freebsd-ports@FreeBSD.ORG Wed May 20 05:50:21 2009 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62A71106566C for ; Wed, 20 May 2009 05:50:21 +0000 (UTC) (envelope-from dpd@dpdtech.com) Received: from vx1.dpdtech.com (vx1.dpdtech.com [63.246.9.153]) by mx1.freebsd.org (Postfix) with ESMTP id 3ED608FC16 for ; Wed, 20 May 2009 05:50:20 +0000 (UTC) (envelope-from dpd@dpdtech.com) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20080427b; d=dpdtech.com; h=Received:Message-Id:From:To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:Cc:X-Mailer:X-Exiscan; b=ENKiFEZPpgDO/J/6/qmYCkx0OMHIbcFzYaX+GncDQM/cTU2NgEGZOLgea5g0SqLPEIbGiOcNkGwRcKjLlgwZrB2ng8sOTVt/Wb2orJcr49m7xSmT/RwHQfHPJVMaLcmE; Received: from [173.8.158.134] (port=52742 helo=[192.168.2.125]) by vx1.dpdtech.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1M6eeF-000AsV-FD; Wed, 20 May 2009 00:47:27 -0500 Message-Id: From: "David P. Discher" To: multimedia@FreeBSD.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 19 May 2009 22:50:18 -0700 X-Mailer: Apple Mail (2.935.3) X-Exiscan: Passed Cc: ports@FreeBSD.org Subject: FreeBSD Port: mpeg4ip-libmp4v2-1.6.1 - getopt.c compile error with alt ${LOCALBASE} X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 05:50:21 -0000 For reasons that are required, I have LOCALBASE set to /home/opt. I'm trying to compile gnome2, kde4, and xorg. While I'm trying to build out of the box (up-to-date cvsup'ed ports tree) ... I get this error for mpeg4ip-libmp4v2-1.6.1: > cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/home/opt/ > include -D_REENTRANT -Werror -Wall -Wcast-align -Wstrict-prototypes - > Wmissing-prototypes -O3 -fno-strict-aliasing -pipe -march=nocona - > DMPEG4IP -I/home/opt/include/SDL -I/home/opt/include -D_GNU_SOURCE=1 > -D_REENTRANT -MT getopt.lo -MD -MP -MF .deps/getopt.Tpo -c getopt.c > -fPIC -DPIC -o .libs/getopt.o > cc1: warnings being treated as errors > getopt.c: In function '_getopt_internal': > getopt.c:553: warning: passing argument 1 of 'exchange' discards > qualifiers from pointer target type > getopt.c:575: warning: passing argument 1 of 'exchange' discards > qualifiers from pointer target type > gmake: *** [getopt.lo] Error 1 > *** Error code 2 After consulting with a higher FreeBSD power, he suggested 'const poisoning'. I went ahead and backed off all the 'char *const*' in getopt.c to "char **" to a point where I get a conflict with unistd : > ../../include/mpeg4ip_getopt.h:132: error: declaration of C function > 'int getopt(int, char**, const char*)' conflicts with > /usr/include/unistd.h:380: error: previous declaration 'int > getopt(int, char* const*, const char*)' here > *** Error code 1 Thinking that using gnu getopt's would help fix this, as the config.log says that gnugetopt can't be found: > configure:24547: checking for getopt_long in -lgnugetopt > configure:24582: cc -o conftest -O3 -fno-strict-aliasing -pipe - > march=nocona -I/home/opt/include -L/home/opt/lib - > pthreadconftest.c -lgnugetopt >&5 > /usr/bin/ld: cannot find -lgnugetopt Of course, this is libgnugetopt is not in /home/opt/lib, and there is no longer a port of this. This is about as far as I could get ... so I'm looking for help and suggestions at this. Thanks ! ----------------------------------------------------------------------- David P. Discher * * C: 408.368.3725 * AIM: DavidDPD | Y!M: daviddpdz * H: 408.541.0159 -----------------------------------------------------------------------