Cups upgrade compile failure

Jeremy Messenger mezz7 at cox.net
Fri Sep 28 12:24:23 PDT 2007


On Fri, 28 Sep 2007 11:46:49 -0500, Manfred Antar <null at pozo.com> 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 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at 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 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia at FreeBSD.org


More information about the freebsd-ports mailing list