CUPS 1.3.7 Compile problems on Solaris 10 x86 (Scheduler)

Helge Blischke h.blischke at srz.de
Tue Apr 22 07:23:17 PDT 2008


Robert Beaty wrote:
> After my last bit of posting and figuring out I need a 1.3.x version of CUPS I got to work on compiling 1.3.7. I have worked through a number of issues involving malformed sed commands in Makefiles and finding all the needed libraries and figured I was set but now I can't for the life of me get the scheduler to compile.
> 
> Everything seems to go fine till I get here:
> 
> Making all in scheduler...
> Compiling auth.c...
> In file included from cupsd.h:121,
>                  from auth.c:57:
> cert.h:28: error: syntax error before "krb5_ccache"
> cert.h:28: warning: no semicolon at end of struct or union
> cert.h:30: warning: type defaults to `int' in declaration of `cupsd_cert_t'
> cert.h:30: warning: data definition has no type or storage class
> cert.h:37: error: syntax error before '*' token
> cert.h:38: warning: type defaults to `int' in declaration of `Certs'
> cert.h:38: warning: data definition has no type or storage class
> cert.h:51: error: syntax error before '*' token
> cert.h:51: warning: type defaults to `int' in declaration of `cupsdFindCert'
> cert.h:51: warning: data definition has no type or storage class
> In file included from cupsd.h:127,
>                  from auth.c:57:
> job.h:60: error: syntax error before "krb5_ccache"
> job.h:60: warning: no semicolon at end of struct or union
> job.h:63: error: syntax error before '}' token
> job.h:63: warning: type defaults to `int' in declaration of `cupsd_job_t'
> job.h:63: warning: data definition has no type or storage class
> job.h:100: error: syntax error before '*' token
> job.h:100: warning: type defaults to `int' in declaration of `cupsdAddJob'
> job.h:100: warning: data definition has no type or storage class
> job.h:101: error: syntax error before '*' token
> job.h:107: error: syntax error before '*' token
> job.h:108: error: syntax error before '*' token
> job.h:108: warning: type defaults to `int' in declaration of `cupsdFindJob'
> job.h:108: warning: data definition has no type or storage class
> job.h:109: error: syntax error before '*' token
> job.h:113: error: syntax error before '*' token
> job.h:115: error: syntax error before '*' token
> job.h:116: error: syntax error before '*' token
> job.h:117: error: syntax error before '*' token
> job.h:118: error: syntax error before '*' token
> job.h:120: error: syntax error before '*' token
> job.h:121: error: syntax error before '*' token
> job.h:122: error: syntax error before '*' token
> job.h:124: error: syntax error before '*' token
> job.h:125: error: syntax error before '*' token
> In file included from cupsd.h:128,
>                  from auth.c:57:
> conf.h:230: error: syntax error before '*' token
> In file included from cupsd.h:132,
>                  from auth.c:57:
> subscriptions.h:82: error: syntax error before "cupsd_job_t"
> subscriptions.h:82: warning: no semicolon at end of struct or union
> subscriptions.h:83: warning: type defaults to `int' in declaration of `cupsd_event_t'
> subscriptions.h:83: warning: data definition has no type or storage class
> subscriptions.h:96: error: syntax error before "cupsd_job_t"
> subscriptions.h:96: warning: no semicolon at end of struct or union
> subscriptions.h:98: error: 'pipe' redeclared as different kind of symbol
> /usr/include/unistd.h:406: error: previous declaration of 'pipe' was here
> subscriptions.h:98: error: 'pipe' redeclared as different kind of symbol
> /usr/include/unistd.h:406: error: previous declaration of 'pipe' was here
> subscriptions.h:105: error: syntax error before '*' token
> subscriptions.h:105: warning: type defaults to `int' in declaration of `events'
> subscriptions.h:105: warning: data definition has no type or storage class
> subscriptions.h:106: error: syntax error before '}' token
> subscriptions.h:106: warning: type defaults to `int' in declaration of `cupsd_subscription_t'
> subscriptions.h:106: warning: data definition has no type or storage class
> subscriptions.h:144: error: syntax error before "cupsd_job_t"
> subscriptions.h:145: error: syntax error before '*' token
> subscriptions.h:147: error: syntax error before "cupsd_job_t"
> subscriptions.h:148: warning: type defaults to `int' in declaration of `cupsdAddSubscription'
> subscriptions.h:148: warning: data definition has no type or storage class
> subscriptions.h:150: error: syntax error before '*' token
> subscriptions.h:156: error: syntax error before '*' token
> subscriptions.h:157: warning: type defaults to `int' in declaration of `cupsdFindSubscription'
> subscriptions.h:157: warning: data definition has no type or storage class
> subscriptions.h:159: error: syntax error before "cupsd_job_t"
> In file included from auth.c:57:
> cupsd.h:164: error: syntax error before "KerberosContext"
> cupsd.h:164: warning: type defaults to `int' in declaration of `KerberosContext'
> cupsd.h:164: warning: data definition has no type or storage class
> auth.c: In function `cupsdAuthorize':
> auth.c:343: error: `localuser' undeclared (first use in this function)
> auth.c:343: error: (Each undeclared identifier is reported only once
> auth.c:343: error: for each function it appears in.)
> *** Error code 1
> The following command caused the error:
> gcc  -Wall -Wno-format-y2k -fPIC -Os -g -I.. -D_CUPS_SOURCE  -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS  -c auth.c
> make: Fatal error: Command failed for target `auth.o'
> Current working directory /usr/local/packages/cups-1.3.7/scheduler
> *** Error code 1
> The following command caused the error:
> for dir in cups backend berkeley cgi-bin filter locale man monitor  notifier pdftops scheduler systemv test    conf data doc fonts ppd templates; do\
>         echo Making all in $dir... ;\
>         (cd $dir ; make ) || exit 1;\
> done
> make: Fatal error: Command failed for target `all'
> 
> 
> 
> Figuring I might be missing some auth related prereqs I've installed openldap, krb5_lib and some other related packages. I'm not sure if I'm just still missing things or if perhaps CUPS just isn't locating all the correct libraries. Any thoughts? As always any help is greatly appreciated.
> 
> -Robert

Run configure using the option  --disable-gssapi or, if you really need to use
Kerberos, trash the default one that comes with Solaris10 and install
Heimdahl Kerberos (at least that is the recommendation I heared
several times; at our site we currently do not use Kerberos).

Helge


-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups mailing list