From owner-freebsd-ports@FreeBSD.ORG Mon Jun 1 18:23:50 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 8B6881065695; Mon, 1 Jun 2009 18:23:48 +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 84E0E8FC19; Mon, 1 Jun 2009 18:23:48 +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:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer:X-Exiscan; b=Awu9WN4pj0Tzkn09flOF3NCW4TCwIFrPnmAElBd5nkXRX39qrat6IVuiDkDnWNk0MBIo2npwYpzw2kDPrZp07fJ+cdEquxeY1HH/CClzSWATGA3HlxONLX+FaaEcfYG8; Received: from nat-dip4.cfw-a-gci.corp.yahoo.com ([209.131.62.113]:61262 helo=verythough-lm.corp.yahoo.com) by vx1.dpdtech.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MBC7m-000BNH-Dy; Mon, 01 Jun 2009 13:20:42 -0500 Message-Id: From: "David P. Discher" To: multimedia@FreeBSD.org, ports@FreeBSD.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 1 Jun 2009 11:23:46 -0700 References: X-Mailer: Apple Mail (2.930.3) X-Exiscan: Passed Cc: Subject: Re: 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: Mon, 01 Jun 2009 18:23:52 -0000 I hadn't heard anything back on this error yet. I've changed my LOCALBASE back defaults, which as expected, made no different here. Adding 'CONFIGURE_ARGS= --disable-warns-as-err', doesn't seem to have an affect, or post-patch re-inplace command doesn't seem to be nuking all the -Wmissing-prototypes its suppose to be. ===> Building for mpeg4ip-libmp4v2-1.6.1 if /bin/sh /usr/local/bin/libtool --tag=CC --mode=compile cc - DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/usr/local/include - D_REENTRANT -Werror -Wall -Wcast-align -Wstrict-prototypes -Wmissing- prototypes -O3 -fno-strict-aliasing -pipe -march=nocona -DMPEG4IP -I/ usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 - D_REENTRANT -MT getopt.lo -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.lo getopt.c; \ then mv -f ".deps/getopt.Tpo" ".deps/getopt.Plo"; else rm -f ".deps/ getopt.Tpo"; exit 1; fi mkdir .libs cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/usr/local/ include -D_REENTRANT -Werror -Wall -Wcast-align -Wstrict-prototypes - Wmissing-prototypes -O3 -fno-strict-aliasing -pipe -march=nocona - DMPEG4IP -I/usr/local/include/SDL -I/usr/local/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 ----------------------------------------------------------------------- David P. Discher * * C: 408.368.3725 * AIM: DavidDPD | Y!M: daviddpdz * H: 408.541.0159 ----------------------------------------------------------------------- On May 19, 2009, at 10:50 PM, David P. Discher wrote: > > 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 > ----------------------------------------------------------------------- > > >