[cups.bugs] [MOD] STR #3703: make: Fatal error: Command failed for target `ppdc-array.o'
Paul
pajduncan at gmail.com
Sat Oct 30 18:52:20 PDT 2010
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR Closed w/o Resolution]
Thanks for the tips. The error results are the same whether I use
Solaris 10 10/08 or the latest release of Solaris 10 9/10.
I got this to compile after disabling gssapi and also ldap
Just disabling gssapi gives this error:-
# PATH=$PATH:/usr/sfw/bin
# export PATH
# ./configure --prefix=/opt/sfw/cups --disable -gssapi
configure: error: unrecognized option: --disable
Try `./configure --help' for more information.
# ./configure --prefix=/opt/sfw/cups --disable-gssapi
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for ar... /usr/ccs/bin/ar
checking for chmod... /usr/bin/chmod
checking for htmldoc... no
checking for ld... /usr/ccs/bin/ld
checking for ln... /usr/bin/ln
checking for mv... /usr/bin/mv
checking for rm... /usr/bin/rm
checking for rmdir... /usr/bin/rmdir
checking for sed... /usr/bin/sed
checking for xdg-open... no
checking for install-sh script... using
/export/home/user/cups-1.4.4/install-sh
checking for library containing crypt... none required
checking for library containing getspent... none required
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking usersec.h usability... no
checking usersec.h presence... no
checking for usersec.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/ucred.h usability... no
checking sys/ucred.h presence... no
checking for sys/ucred.h... no
checking scsi/sg.h usability... no
checking scsi/sg.h presence... no
checking for scsi/sg.h... no
checking for strdup... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for random... yes
checking for lrand48... yes
checking for arc4random... no
checking for geteuid... yes
checking for vsyslog... yes
checking for sigset... yes
checking for sigaction... yes
checking for waitpid... yes
checking for wait3... yes
checking for tm_gmtoff member in tm structure... no
checking for st_gen member in stat structure... no
checking for removefile... no
checking for usb_init in -lusb... yes
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking for library containing acl_init... no
checking for pkg-config... /usr/bin/pkg-config
checking for DBUS... no
checking if GCC supports -fstack-protector... no
checking if GCC supports -pie... yes
checking whether to build image filters... yes
checking for library containing pow... -lm
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzgets in -lz... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_read_struct in -lpng... yes
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking for TIFFReadScanline in -ltiff... yes
checking for stdlib.h... (cached) yes
checking resolv.h usability... yes
checking resolv.h presence... yes
checking for resolv.h... yes
checking for library containing socket... -lsocket
checking for library containing gethostbyaddr... -lnsl
checking for library containing getifaddrs... no
checking for library containing hstrerror... -lresolv
checking for library containing rresvport_af... none required
checking for library containing __res_init... no
checking for library containing res_9_init... no
checking for library containing res_init... none required
checking for library containing getaddrinfo... none required
checking for library containing getnameinfo... none required
checking for struct sockaddr.sa_len... no
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking for AppleTalk/at_proto.h... no
checking for poll... yes
checking for epoll_create... no
checking for kqueue... no
checking slp.h usability... yes
checking slp.h presence... yes
checking for slp.h... yes
checking for SLPOpen in -lslp... yes
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking for ldap_initialize in -lldap... no
checking for ldap_init in -lldap... yes
checking for ldap_ssl.h... no
checking for ldapssl_init in -lldap... yes
checking for ldap_set_rebind_proc in -lldap... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create using -lpthreads... no
checking for pthread_create using -lpthread... yes
checking for libgnutls-config... no
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for SSL_new in -lssl... yes
Using SSLLIBS="-lssl -lcrypto"
Using SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
checking for dlopen in -ldl... yes
checking for pam_start in -lpam... yes
checking for pam_set_item in -lpam... yes
checking for pam_setcred in -lpam... yes
checking security/pam_appl.h usability... yes
checking security/pam_appl.h presence... yes
checking for security/pam_appl.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for long long int... yes
checking for strtoll... yes
checking dns_sd.h usability... no
checking dns_sd.h presence... no
checking for dns_sd.h... no
checking for launch_msg... no
checking launch.h usability... no
checking launch.h presence... no
checking for launch.h... no
checking whether to use network default printers... yes
checking for default print user... lp
checking for default print group... lp
checking for default system groups... "sys root"
checking for pdftops... no
checking for gs... /usr/sfw/bin/gs
checking for java... /usr/bin/java
checking for perl... /usr/bin/perl
checking for php-cgi... no
checking for php... no
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makedefs
config.status: creating packaging/cups.list
config.status: creating init/cups.sh
config.status: creating init/cups-lpd
config.status: creating cups-config
config.status: creating conf/cupsd.conf
config.status: creating conf/mime.convs
config.status: creating conf/pam.std
config.status: creating conf/snmp.conf
config.status: creating data/testprint
config.status: creating desktop/cups.desktop
config.status: creating doc/index.html
config.status: creating doc/help/ref-cupsd-conf.html
config.status: creating doc/help/standard.html
config.status: creating init/org.cups.cups-lpd.plist
config.status: creating init/cups.xml
config.status: creating man/client.conf.man
config.status: creating man/cups-deviced.man
config.status: creating man/cups-driverd.man
config.status: creating man/cups-lpd.man
config.status: creating man/cupsaddsmb.man
config.status: creating man/cupsd.man
config.status: creating man/cupsd.conf.man
config.status: creating man/drv.man
config.status: creating man/lpoptions.man
config.status: creating templates/header.tmpl
config.status: creating doc/de/index.html
config.status: creating templates/de/header.tmpl
config.status: creating doc/es/index.html
config.status: creating templates/es/header.tmpl
config.status: creating doc/eu/index.html
config.status: creating templates/eu/header.tmpl
config.status: creating doc/id/index.html
config.status: creating templates/id/header.tmpl
config.status: creating doc/it/index.html
config.status: creating doc/ja/index.html
config.status: creating templates/ja/header.tmpl
config.status: creating doc/pl/index.html
config.status: creating templates/pl/header.tmpl
config.status: creating doc/ru/index.html
config.status: creating templates/ru/header.tmpl
config.status: creating config.h
# make
Using ARCHFLAGS=
Using ALL_CFLAGS=-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
Using ALL_CXXFLAGS=-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
Using CC=gcc
Using CXX=gcc
Using DSOFLAGS=-L../cups -R/opt/sfw/cups/lib -Wl,-hall -G -Wall
-Wno-format-y2k -fPIC -Os -g
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler
-R/opt/sfw/cups/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os -g
Using LIBS=-lcups -lssl -lcrypto -lpthread -lresolv -lnsl -lsocket -lm
Making all in cups...
Compiling adminutil.c...
Compiling array.c...
Compiling attr.c...
Compiling auth.c...
Compiling backend.c...
Compiling conflicts.c...
conflicts.c: In function `cupsResolveConflicts':
conflicts.c:188: warning: 'active' might be used uninitialized in this
function
Compiling custom.c...
Compiling debug.c...
Compiling dest.c...
Compiling dir.c...
Compiling emit.c...
Compiling encode.c...
Compiling file.c...
Compiling getdevices.c...
Compiling getifaddrs.c...
Compiling getputfile.c...
Compiling globals.c...
globals.c:95: warning: missing braces around initializer
globals.c:95: warning: (near initialization for
`globals_key_once.__pthread_once_pad')
Compiling http.c...
Compiling http-addr.c...
Compiling http-addrlist.c...
Compiling http-support.c...
Compiling ipp.c...
Compiling ipp-support.c...
Compiling langprintf.c...
Compiling language.c...
Compiling localize.c...
Compiling mark.c...
Compiling md5.c...
Compiling md5passwd.c...
Compiling notify.c...
Compiling options.c...
Compiling page.c...
Compiling ppd.c...
Compiling pwg-file.c...
Compiling pwg-media.c...
Compiling pwg-ppd.c...
Compiling request.c...
Compiling sidechannel.c...
Compiling snmp.c...
Compiling snprintf.c...
Compiling string.c...
Compiling tempfile.c...
Compiling transcode.c...
Compiling usersys.c...
Compiling util.c...
Linking libcups.so.2...
Archiving libcups.a...
a - adminutil.o
a - array.o
a - attr.o
a - auth.o
a - backchannel.o
a - backend.o
a - conflicts.o
a - custom.o
a - debug.o
a - dest.o
a - dir.o
a - emit.o
a - encode.o
a - file.o
a - getdevices.o
a - getifaddrs.o
a - getputfile.o
a - globals.o
a - http.o
a - http-addr.o
a - http-addrlist.o
a - http-support.o
a - ipp.o
a - ipp-support.o
a - langprintf.o
a - language.o
a - localize.o
a - mark.o
a - md5.o
a - md5passwd.o
a - notify.o
a - options.o
a - page.o
a - ppd.o
a - pwg-file.o
a - pwg-media.o
a - pwg-ppd.o
a - request.o
a - sidechannel.o
a - snmp.o
a - snprintf.o
a - string.o
a - tempfile.o
a - transcode.o
a - usersys.o
a - util.o
ar: writing libcups.a
Making all in filter...
Compiling image-bmp.c...
Compiling image-colorspace.c...
Compiling image-gif.c...
Compiling image-jpeg.c...
Compiling image-photocd.c...
Compiling image-pix.c...
Compiling image-png.c...
Compiling image-pnm.c...
Compiling image-sgi.c...
Compiling image-sun.c...
Compiling image-tiff.c...
Compiling image-zoom.c...
Compiling image.c...
Compiling error.c...
error.c:173: warning: missing braces around initializer
error.c:173: warning: (near initialization for
`raster_key_once.__pthread_once_pad')
Compiling interpret.c...
Compiling raster.c...
Linking libcupsimage.so.2...
Archiving libcupsimage.a...
a - image-bmp.o
a - image-colorspace.o
a - image-gif.o
a - image-jpeg.o
a - image-photocd.o
a - image-pix.o
a - image-png.o
a - image-pnm.o
a - image-sgi.o
a - image-sgilib.o
a - image-sun.o
a - image-tiff.o
a - image-zoom.o
a - image.o
a - error.o
a - interpret.o
a - raster.o
ar: writing libcupsimage.a
Compiling bannertops.c...
Compiling pstext.c...
Compiling common.c...
Linking bannertops...
Compiling commandtops.c...
Linking commandtops...
Compiling gziptoany.c...
Linking gziptoany...
Compiling hpgl-attr.c...
Compiling hpgl-config.c...
Compiling hpgl-main.c...
Compiling hpgl-prolog.c...
Compiling hpgl-char.c...
Compiling hpgl-input.c...
Compiling hpgl-polygon.c...
Compiling hpgl-vector.c...
Linking hpgltops...
Compiling texttops.c...
Compiling textcommon.c...
Linking texttops...
Compiling pstops.c...
Linking pstops...
Compiling imagetops.c...
Linking imagetops...
Compiling imagetoraster.c...
Linking imagetoraster...
Compiling pdftops.c...
Linking pdftops...
Compiling rastertolabel.c...
Linking rastertolabel...
Compiling rastertoepson.c...
Linking rastertoepson...
Compiling rastertohp.c...
Linking rastertohp...
Making all in backend...
Compiling ipp.c...
Linking ipp...
Compiling lpd.c...
Linking lpd...
Compiling parallel.c...
Linking parallel...
Compiling scsi.c...
Linking scsi...
Compiling serial.c...
Linking serial...
Compiling snmp.c...
Linking snmp...
Compiling socket.c...
socket.c: In function `main':
socket.c:76: warning: unused variable `current_time'
socket.c:77: warning: unused variable `wait_time'
Linking socket...
Compiling usb.c...
Linking usb...
Making all in berkeley...
Compiling lpc.c...
Linking lpc...
Compiling lpq.c...
Linking lpq...
Compiling lpr.c...
Linking lpr...
Compiling lprm.c...
Linking lprm...
Making all in cgi-bin...
Compiling help-index.c...
Compiling html.c...
Compiling ipp-var.c...
Compiling search.c...
Compiling template.c...
Compiling var.c...
Archiving libcupscgi.a...
a - help-index.o
a - html.o
a - ipp-var.o
a - search.o
a - template.o
a - var.o
ar: writing libcupscgi.a
Linking libcupscgi.so.1...
Linking websearch...
Compiling admin.c...
Linking admin.cgi...
Compiling classes.c...
Linking classes.cgi...
Compiling help.c...
Linking help.cgi...
Compiling jobs.c...
Linking jobs.cgi...
Compiling printers.c...
Linking printers.cgi...
Making all in driver...
Compiling attr.c...
Compiling cmyk.c...
Linking libcupsdriver.so.1...
Archiving libcupsdriver.a...
a - attr.o
a - check.o
a - cmyk.o
a - dither.o
a - lut.o
a - pack.o
a - rgb.o
a - srgb.o
ar: writing libcupsdriver.a
Compiling commandtoescpx.c...
Linking commandtoescpx...
Compiling commandtopclx.c...
Linking commandtopclx...
Compiling rastertoescpx.c...
Linking rastertoescpx...
Compiling rastertopclx.c...
Compiling pcl-common.c...
Linking rastertopclx...
Making all in locale...
Compiling checkpo.c...
Linking ...
Compiling po2strings.c...
Linking ...
Compiling translate.c...
Linking ...
Making all in man...
Converting man pages to HTML...
cancel.1...
cups-config.1...
cupstestdsc.1...
cupstestppd.1...
lp.1...
lpoptions.1...
lppasswd.1...
lpq.1...
lprm.1...
lpr.1...
lpstat.1...
ppdc.1...
ppdhtml.1...
ppdi.1...
ppdmerge.1...
ppdpo.1...
classes.conf.5...
client.conf.5...
cups-snmp.conf.5...
cupsd.conf.5...
mailto.conf.5...
mime.convs.5...
mime.types.5...
ppdcfile.5...
printers.conf.5...
subscriptions.conf.5...
backend.7...
drv.7...
filter.7...
notifier.7...
cupsaccept.1m...
cupsaddsmb.1m...
cupsctl.1m...
cupsfilter.1m...
cups-deviced.1m...
cups-driverd.1m...
cups-lpd.1m...
cups-polld.1m...
cupsd.1m...
cupsenable.1m...
lpadmin.1m...
lpinfo.1m...
lpmove.1m...
lpc.1m...
Making all in monitor...
Compiling bcp.c...
Linking bcp...
Compiling tbcp.c...
Linking tbcp...
Making all in notifier...
Compiling mailto.c...
Linking mailto...
Compiling rss.c...
Linking rss...
Compiling testnotify.c...
Linking testnotify...
Making all in ppdc...
Compiling ppdc-array.cxx...
Compiling ppdc-attr.cxx...
Compiling ppdc-catalog.cxx...
Compiling ppdc-choice.cxx...
Compiling ppdc-constraint.cxx...
Compiling ppdc-driver.cxx...
Compiling ppdc-file.cxx...
Compiling ppdc-filter.cxx...
Compiling ppdc-font.cxx...
Compiling ppdc-group.cxx...
Compiling ppdc-import.cxx...
Compiling ppdc-mediasize.cxx...
Compiling ppdc-message.cxx...
Compiling ppdc-option.cxx...
Compiling ppdc-profile.cxx...
Compiling ppdc-shared.cxx...
Compiling ppdc-source.cxx...
Compiling ppdc-string.cxx...
Compiling ppdc-variable.cxx...
Linking libcupsppdc.so.1...
Archiving libcupsppdc.a...
a - ppdc-array.o
a - ppdc-attr.o
a - ppdc-catalog.o
a - ppdc-choice.o
a - ppdc-constraint.o
a - ppdc-driver.o
a - ppdc-file.o
a - ppdc-filter.o
a - ppdc-font.o
a - ppdc-group.o
a - ppdc-import.o
a - ppdc-mediasize.o
a - ppdc-message.o
a - ppdc-option.o
a - ppdc-profile.o
a - ppdc-shared.o
a - ppdc-source.o
a - ppdc-string.o
a - ppdc-variable.o
ar: writing libcupsppdc.a
Compiling ppdc.cxx...
Linking ppdc...
Compiling ppdhtml.cxx...
Linking ppdhtml...
Compiling ppdi.cxx...
Linking ppdi...
Compiling ppdmerge.cxx...
Linking ppdmerge...
Compiling ppdpo.cxx...
Linking ppdpo...
Compiling genstrings.cxx...
Linking genstrings...
Generating localization strings...
Making all in scheduler...
Compiling filter.c...
Compiling mime.c...
Compiling type.c...
Linking libcupsmime.so.1...
Archiving libcupsmime.a...
a - filter.o
a - mime.o
a - type.o
ar: writing libcupsmime.a
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 `add_printer_filter':
printers.c:3636: warning: unsigned int format, mode_t arg (arg 6)
printers.c:3663: warning: unsigned int format, mode_t arg (arg 6)
Compiling process.c...
process.c: In function `cupsdStartProcess':
process.c:311: warning: unsigned int format, mode_t arg (arg 4)
process.c:339: warning: unsigned int format, mode_t arg (arg 4)
Compiling quotas.c...
Compiling removefile.c...
Compiling select.c...
Compiling server.c...
Compiling statbuf.c...
Compiling subscriptions.c...
Compiling sysman.c...
Linking cupsd...
Undefined first referenced
symbol in file
PORT_GetError dirsvc.o (symbol belongs to implicit
dependency /usr/lib/mps/libnss3.so)
ld: fatal: Symbol referencing errors. No output written to cupsd
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
gcc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler
-R/opt/sfw/cups/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os -g -o
cupsd auth.o banners.o cert.o classes.o client.o conf.o dirsvc.o
env.o main.o ipp.o listen.o job.o log.o network.o policy.o
printers.o process.o quotas.o removefile.o select.o server.o
statbuf.o subscriptions.o sysman.o -L. -lcupsmime \
-lz -lssl -lcrypto -lslp -lldap -lpam -ldl \
-lcups -lssl -lcrypto -lpthread -lresolv -lnsl -lsocket -lm \
make: Fatal error: Command failed for target `cupsd'
Current working directory /export/home/user/cups-1.4.4/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'
#
I got it to compile using
# ./configure --prefix=/opt/sfw/cups --disable-gssapi --disable-ldap
I found it easier to create symbolic links to the existing foomatic-rip
as suggested on http://opensolaris.org/jive/thread.jspa?messageID=216586
# ln -s /usr/lib/lp/bin/foomatic-rip /opt/sfw/cups/lib/cups/filter
# rmdir /opt/sfw/cups/share/cups/model
# ln -s /usr/lib/lp/model/ppd /opt/sfw/cups/share/cups/model
rather than try and build foomatic-rip from scratch on
http://www.sun.com/bigadmin/content/submitted/install_cups_sol10.jsp
Thanks very much for your help
Link: http://www.cups.org/str.php?L3703
Version: 1.4.4
Fix Version: Third-party
More information about the cups
mailing list