[cups.general] Unable to find required library archive command

Michael Sweet msweet at apple.com
Fri Jun 22 13:03:00 PDT 2012


This is a known bug in install-sh; you can grab a fix from:

    http://svn.easysw.com/public/cups/trunk/install-sh


On Jun 22, 2012, at 11:51 AM, Piyush Saxena wrote:

> make install error :- Different one.....at the very end of this thread
> 
> bash-3.2# make
> Using ARCHFLAGS=
> Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -I/ -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 -I/ -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 -L/ -Wl,-hall -G -Wall -Wno-format-y2k -Wunused -fPIC -Os -g
> Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -L/ -R/opt/sfw/cups/lib -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g
> Using LIBS=-lcups -lz -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:196: 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:43: warning: missing braces around initializer
> globals.c:43: warning: (near initialization for `cups_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 ppd-cache.c...
> Compiling pwg-media.c...
> Compiling request.c...
> Compiling sidechannel.c...
> Compiling snmp.c...
> Compiling snprintf.c...
> Compiling string.c...
> Compiling tempfile.c...
> Compiling thread.c...
> Compiling transcode.c...
> transcode.c: In function `cupsCharsetToUTF8':
> transcode.c:179: warning: passing arg 2 of `iconv' from incompatible pointer type
> transcode.c: In function `cupsUTF8ToCharset':
> transcode.c:304: warning: passing arg 2 of `iconv' from incompatible pointer type
> Compiling usersys.c...
> Compiling util.c...
> 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 - ppd-cache.o
> a - pwg-media.o
> a - request.o
> a - sidechannel.o
> a - snmp.o
> a - snprintf.o
> a - string.o
> a - tempfile.o
> a - thread.o
> a - transcode.o
> a - usersys.o
> a - util.o
> ar: writing libcups.a
> Linking libcups.so.2...
> Making all in test...
> Compiling ippserver.c...
> Linking ippserver...
> Compiling ipptool.c...
> Linking ipptool...
> Linking ipptool-static...
> 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 texttops.c...
> Compiling textcommon.c...
> Linking texttops...
> Compiling pstops.c...
> Linking pstops...
> Compiling imagetops.c...
> Linking imagetops...
> Compiling imagetoraster.c...
> Linking imagetoraster...
> Compiling rastertoepson.c...
> Linking rastertoepson...
> Compiling rastertohp.c...
> Linking rastertohp...
> Compiling rastertolabel.c...
> Linking rastertolabel...
> Compiling rastertopwg.c...
> Linking rastertopwg...
> Making all in backend...
> Compiling ipp.c...
> Linking ipp...
> Compiling lpd.c...
> Linking lpd...
> Compiling parallel.c...
> Linking parallel...
> Compiling serial.c...
> Linking serial...
> Compiling snmp.c...
> Linking snmp...
> Compiling socket.c...
> Linking socket...
> Compiling usb.c...
> usb-unix.c:561: warning: 'side_cb' defined but not used
> 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...
> Compiling dither.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 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...
> Compiling env.c...
> Compiling file.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...
> Compiling process.c...
> Compiling quotas.c...
> Compiling select.c...
> Compiling server.c...
> Compiling statbuf.c...
> Compiling subscriptions.c...
> Compiling sysman.c...
> Linking cupsd...
> Compiling cupsfilter.c...
> Linking cupsfilter...
> Linking cups-deviced...
> Linking cups-driverd...
> Compiling cups-exec.c...
> Linking cups-exec...
> Compiling cups-lpd.c...
> Linking cups-lpd...
> Compiling cups-polld.c...
> Linking cups-polld...
> Making all in systemv...
> Compiling cancel.c...
> Linking cancel...
> Compiling cupsaccept.c...
> Linking cupsaccept...
> Compiling cupsaddsmb.c...
> Linking cupsaddsmb...
> Compiling cupsctl.c...
> Linking cupsctl...
> Compiling cupstestdsc.c...
> Linking cupstestdsc...
> Compiling cupstestppd.c...
> Linking cupstestppd...
> Compiling lp.c...
> Linking lp...
> Compiling lpadmin.c...
> Linking lpadmin...
> Compiling lpinfo.c...
> Linking lpinfo...
> Compiling lpmove.c...
> Linking lpmove...
> Compiling lpoptions.c...
> Linking lpoptions...
> Compiling lppasswd.c...
> Linking lppasswd...
> Compiling lpstat.c...
> Linking lpstat...
> Making all in conf...
> Making all in data...
> Making all in desktop...
> 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...
> ipptool.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...
> ipptoolfile.5...
> mailto.conf.5...
> mime.convs.5...
> mime.types.5...
> ppdcfile.5...
> printers.conf.5...
> subscriptions.conf.5...
> backend.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 doc...
> Making all in examples...
> Making all in templates...
> Making all in fonts...
> 
> 
> bash-3.2# make install
> Making all in cups...
> Installing data files in cups...
> Installing data files in test...
> Installing sample ipptool files in /opt/sfw/cups/share/cups/ipptool...
> /cups-1.5.3/install-sh: function: not found
> /cups-1.5.3/install-sh: -d: cannot open
> /cups-1.5.3/install-sh: syntax error at line 68: `}' unexpected
> *** Error code 2
> The following command caused the error:
> /cups-1.5.3/install-sh -d -m 755 /opt/sfw/cups/share/cups/ipptool
> make: Fatal error: Command failed for target `install-data'
> Current working directory /cups-1.5.3/test
> *** Error code 1
> The following command caused the error:
> for dir in cups test filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates fonts; do\
> echo Installing data files in $dir... ;\
> (cd $dir; make install-data) || exit 1;\
> done
> make: Fatal error: Command failed for target `install-data'
> bash-3.2#
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list