make: Fatal error: Command failed for target `printers.o'

Helge Blischke h.blischke at acm.org
Mon Feb 14 07:41:26 PST 2011


Robert Davis wrote:

> New job -- new project -- first encounter with CUPS.
> 
> I have v1.4.4-v1.4.6 on a Solaris 10 09/10 dev M3000 box, little to no
> security. Following instructions I run:
> 
> ./configure --prefix={new basedir} --disable-gssapi --disable-ldap
> 
> No problems are encountered so I run:
> 
> make (this is GCC 3.4.3 and PATH already set)
> 
> V.1.4.4 and v.1.4.5 compile completely, with occasional warnings.  V.1.4.6
> kicks out this error and terminates:
> 
> Compiling auth.c...
> Compiling banners.c...
> Compiling cert.c...
> Compiling classes.c...
> Compiling client.c...
> Compiling conf.c...
> Compiling dirsvc.c...
> dirsvc.c: In function `ldap_connect':
> dirsvc.c:1338: warning: implicit declaration of function `PORT_GetError'
> dirsvc.c:1104: warning: unused variable `bv'
> Compiling env.c...
> Compiling main.c...
> Compiling ipp.c...
> Compiling listen.c...
> Compiling job.c...
> Compiling log.c...
> Compiling network.c...
> Compiling policy.c...
> Compiling printers.c...
> printers.c: In function `cupsdCreateCommonData':
> printers.c:493: error: too few arguments to function `statfs'
> printers.c: In function `add_printer_filter':
> printers.c:3691: warning: unsigned int format, mode_t arg (arg 6)
> printers.c:3718: warning: unsigned int format, mode_t arg (arg 6)
> *** Error code 1
> The following command caused the error:
> gcc  -Wall -Wno-format-y2k -fPIC -Os -g -I.. -D_CUPS_SOURCE 
> -DOPENSSL_DISABLE_OLD_DES_SUPPORT  -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT
> -D_POSIX_PTHREAD_SEMANTICS  -c -o printers.o printers.c make: Fatal error:
> Command failed for target `printers.o' Current working directory
> /h/CUPS_1.4.6/cups-1.4.6/scheduler *** Error code 1 The following command
> caused the error:
> for dir in cups filter backend berkeley cgi-bin driver locale man monitor 
> notifier ppdc scheduler systemv test    conf data doc examples fonts
> templates; do\
>         echo Making all in $dir... ;\
>         (cd $dir ; make  all ) || exit 1;\
> done
> make: Fatal error: Command failed for target `all'
> 
> Thoughts?  Thanks in advance . . .

It seems that the 1.4.6 configure does not check the existance of statvfs or 
statfs, respectively.

Try to edit config.h and define HAVE_STATVFS and undefine HAVE_STATFS and 
try again.

Helge





More information about the cups mailing list