CUPS 1.5.0 fails to build in OS X 1.7

Matt Broughton walterwego at macosx.com.invalid
Tue Aug 16 18:04:59 PDT 2011


I am trying to build CUPS 1.5.0 on Mac OS X 10.7 (11A511) to get the 
serial backend.  I am running into two build problems.  The first seems 
to be with missing gss*.h files.  If I add --disable-gssapi during the 
configure, I can get the serial backend, but the build eventually fails 
to complete due to sandbox errors.

Hopefully both are easy fixes.  Any guidance would be appreciated.

Problem 1:
$ ./configure --disable-pap --enable-webif --with-archflags="-arch 
x86_64" --with-ldarchflags="-arch x86_64" --without-jpeg --without-png 
--without-tiff
....
checking for krb5-config... /usr/bin/krb5-config
checking for GSS framework... yes
checking krb5.h usability... yes
checking krb5.h presence... yes
checking for krb5.h... yes
checking GSS/gssapi.h usability... no
checking GSS/gssapi.h presence... no
checking for GSS/gssapi.h... no
checking GSS/gssapi_generic.h usability... no
checking GSS/gssapi_generic.h presence... no
checking for GSS/gssapi_generic.h... no
checking GSS/gssapi_krb5.h usability... no
checking GSS/gssapi_krb5.h presence... no
checking for GSS/gssapi_krb5.h... no
checking GSS/gssapi_spi.h usability... no
checking GSS/gssapi_spi.h presence... no
checking for GSS/gssapi_spi.h... no
checking for __ApplePrivate_gss_acquire_cred_ex_f... yes
checking for GSS_C_NT_HOSTBASED_SERVICE... yes
checking ldap.h usability... yes
....

$ make
Using ARCHFLAGS=-arch x86_64
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -D_FORTIFY_SOURCE=2  
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT 
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE   -D_LARGEFILE_SOURCE 
-D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT 
Using CC=gcc
Using CXX=gcc
Using DSOFLAGS=-L../cups  -dynamiclib -single_module -lc
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc 
-L../scheduler -arch x86_64 -fPIE -pie -Wall -Wno-format-y2k -Wunused 
-fPIC -Os -g -fstack-protector
Using LIBS=-lcups -weak_framework Kerberos -weak_framework GSS  
-framework CoreFoundation -framework SystemConfiguration -lz -lpthread 
-lresolv -framework SystemConfiguration -framework CoreFoundation 
-framework Security  -liconv 
Making all in cups...
Compiling adminutil.c...
In file included from cups-private.h:29,
                 from adminutil.c:33:
http-private.h:288: error: expected specifier-qualifier-list before 
Œgss_OID¹
make[1]: *** [adminutil.o] Error 1
make: *** [all] Error 1


*********************

Problem 2:
$ ./configure --disable-pap --enable-webif --with-archflags="-arch 
x86_64" --with-ldarchflags="-arch x86_64" --without-jpeg --without-png 
--without-tiff --disable-gssapi
....
checking sandbox.h usability... no
checking sandbox.h presence... yes
configure: WARNING: sandbox.h: present but cannot be compiled
configure: WARNING: sandbox.h:     check for missing prerequisite 
headers?
configure: WARNING: sandbox.h: see the Autoconf documentation
configure: WARNING: sandbox.h:     section "Present But Cannot Be 
Compiled"
configure: WARNING: sandbox.h: proceeding with the preprocessor's result
configure: WARNING: sandbox.h: in the future, the compiler will take 
precedence
checking for sandbox.h... yes
....

$ make
Using ARCHFLAGS=-arch x86_64
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -D_FORTIFY_SOURCE=2  
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT 
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE   -D_LARGEFILE_SOURCE 
-D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT 
Using CC=gcc
Using CXX=gcc
Using DSOFLAGS=-L../cups  -dynamiclib -single_module -lc
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc 
-L../scheduler -arch x86_64 -fPIE -pie -Wall -Wno-format-y2k -Wunused 
-fPIC -Os -g -fstack-protector
Using LIBS=-lcups   -framework CoreFoundation -framework 
SystemConfiguration -lz -lpthread -lresolv -framework 
SystemConfiguration -framework CoreFoundation -framework Security  
-liconv 
Making all in cups...

....
Compiling cups-exec.c...
In file included from cups-exec.c:31:
/usr/include/sandbox.h:98:29: error: sandbox/private.h: No such file or 
directory
cups-exec.c: In function Œmain¹:
cups-exec.c:66: error: ŒSANDBOX_NAMED_EXTERNAL¹ undeclared (first use in 
this function)
cups-exec.c:66: error: (Each undeclared identifier is reported only once
cups-exec.c:66: error: for each function it appears in.)
make[1]: *** [cups-exec.o] Error 1
make: *** [all] Error 1

-- 
Matt Broughton
Only relatives are absolute.




More information about the cups mailing list