From owner-freebsd-ports@FreeBSD.ORG Fri Sep 28 19:24:23 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0269416A41B for ; Fri, 28 Sep 2007 19:24:23 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao101.cox.net (eastrmmtao101.cox.net [68.230.240.7]) by mx1.freebsd.org (Postfix) with ESMTP id 8F7B013C45D for ; Fri, 28 Sep 2007 19:24:22 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao101.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070928192422.WXNL12042.eastrmmtao101.cox.net@eastrmimpo02.cox.net>; Fri, 28 Sep 2007 15:24:22 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo02.cox.net with bizsmtp id tvQL1X00L4iy4EG0000000; Fri, 28 Sep 2007 15:24:21 -0400 Date: Fri, 28 Sep 2007 14:28:15 -0500 To: "Manfred Antar" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <200709280917.07844.david@vizion2000.net> <200709281646.l8SGknje086075@pozo.com> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <200709281646.l8SGknje086075@pozo.com> User-Agent: Opera Mail/9.23 (Linux) Cc: David Southwell , freebsd-ports@freebsd.org Subject: Re: Cups upgrade compile failure 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: Fri, 28 Sep 2007 19:24:23 -0000 On Fri, 28 Sep 2007 11:46:49 -0500, Manfred Antar wrote: > At 09:17 AM 9/28/2007, David Southwell wrote: > >> On Upgrade: >> Making all in cups... >> gmake[1]: Entering directory >> `/usr/ports/print/cups-base/work/cups-1.3.0/cups' >> gmake[1]: Nothing to be done for `all'. >> gmake[1]: Leaving directory >> `/usr/ports/print/cups-base/work/cups-1.3.0/cups' >> Making all in backend... >> gmake[1]: Entering directory >> `/usr/ports/print/cups-base/work/cups-1.3.0/backend' >> gmake[1]: Nothing to be done for `all'. >> gmake[1]: Leaving directory >> `/usr/ports/print/cups-base/work/cups-1.3.0/backend' >> Making all in berkeley... >> gmake[1]: Entering directory >> `/usr/ports/print/cups-base/work/cups-1.3.0/berkeley' >> gmake[1]: Nothing to be done for `all'. >> gmake[1]: Leaving directory >> `/usr/ports/print/cups-base/work/cups-1.3.0/berkeley' >> Making all in cgi-bin... >> gmake[1]: Entering directory >> `/usr/ports/print/cups-base/work/cups-1.3.0/cgi-bin' >> echo Compiling admin.c... >> Compiling admin.c... >> cc -Wshadow -Wunused -Wall -Wno-format-y2k -fPIC -Os -g >> -I/usr/local/include -I/usr/local/include -I/usr/local/include >> -I/usr/local/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >> -D_THREAD_SAFE -D_REENTRANT -I.. -I/usr/local/include -O2 >> -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >> -D_THREAD_SAFE -D_REENTRANT -c >> admin.c >> admin.c: In function `do_config_server': >> admin.c:1364: warning: implicit declaration of function >> `cupsAdminGetServerSettings' >> admin.c:1383: error: `CUPS_SERVER_REMOTE_ANY' undeclared (first use in >> this >> function) >> admin.c:1383: error: (Each undeclared identifier is reported only once >> admin.c:1383: error: for each function it appears in.) >> admin.c:1421: warning: implicit declaration of function >> `cupsAdminSetServerSettings' >> admin.c: In function `do_menu': >> admin.c:2278: error: `CUPS_SERVER_REMOTE_ANY' undeclared (first use in >> this >> function) >> gmake[1]: *** [admin.o] Error 1 >> gmake[1]: Leaving directory >> `/usr/ports/print/cups-base/work/cups-1.3.0/cgi-bin' >> gmake: *** [all] Error 1 >> *** Error code 2 >> >> Stop in /usr/ports/print/cups-base. >> *** Error code 1 >> >> Stop in /usr/ports/print/cups-base. >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > If you get rid of /usr/local/include/cups directory , it works > Somehow it picks up those includes instead of the ones in the port > diectory Above shows that it has four of '-I/usr/local/include' before that '-I..'. I had to solve problem in libsndfile by using '-isystem ${LOCALBASE}/include' instead '-I${LOCALBASE}/include' in CPPFLAGS, so it may works for CUPS too. If that '-I/usr/local/include' don't come from CPPFLAGS in port's Makefile then it's a bug in CUPS. I have taken a look at CUPS website and there has 1.3.2 released back in Sept 18th. In the 1.3.1 release notes said that it fixes some build issues. It might be has to do with this or not. Cheers, Mezz > Manfred -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org