Make error in HPUX 11.11

Chris Ng bechris at sinatown.com
Wed Jul 14 20:01:26 PDT 2004


Dear All,

I have found the solution for long time under the following installation problem of CUPS.

Error
-----
ld: Can't find library for -lpng

OS
--
HP-UX B.11.11

Installed dependency
--------------------
1. gcc 3.3.3
2. zlib-1.1.4
3. libpng-1.2.5
4. jpeg-6b
5. ghostscript-8.13

Output from "make" command
--------------------------
Making all in cups...
Linking libcups.sl.2...
Archiving libcups.a...
a - attr.o
a - auth.o
a - dest.o
a - emit.o
a - encode.o
a - getputfile.o
a - http.o
a - http-addr.o
a - http-support.o
a - ipp.o
a - ipp-support.o
a - language.o
a - mark.o
a - md5.o
a - md5passwd.o
a - options.o
a - page.o
a - ppd.o
a - snprintf.o
a - string.o
a - tempfile.o
a - usersys.o
a - util.o
Linking testhttp...
Linking testipp...
Linking testlang...
Making all in backend...
Linking betest...
Linking ipp...
Linking lpd...
Linking parallel...
Linking scsi...
Linking serial...
Linking socket...
Linking usb...
Making all in berkeley...
Linking lpc...
Linking lpq...
Linking lpr...
Linking lprm...
Making all in cgi-bin...
Archiving libcgi.a...
a - html.o
a - ipp-var.o
a - template.o
a - var.o
Linking admin.cgi...
Linking classes.cgi...
Linking jobs.cgi...
Linking printers.cgi...
Making all in filter...
Linking gziptoany...
Linking hpgltops...
Linking texttops...
Linking pstops...
Linking libcupsimage.sl.2...
ld: Can't find library for -lpng
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Output from "./configure" command
---------------------------------
# ./configure --prefix=/opt/cups
checking for default print user... lp
checking for default print group... sys
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for gcc... gcc
checking for C compiler default output... 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 ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /opt/imake/bin/install -c
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for htmldoc... no
checking for ln... /usr/bin/ln
checking for mv... /usr/bin/mv
checking for nroff... /usr/bin/nroff
checking for rm... /usr/bin/rm
checking for sed... /usr/bin/sed
checking for strip... /usr/bin/strip
checking whether byte ordering is bigendian... yes
checking for library containing crypt... none required
checking for library containing getspent... -lsec
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
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... no
checking for unistd.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.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 for strdup... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strlcat... no
checking for strlcpy... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for correct format string to use with strftime... "%c"
checking for mkstemp... yes
checking for mkstemps... no
checking for vsyslog... no
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 if libsupc++ is required... yes
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzgets in -lz... yes
checking for pow in -lm... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_set_tRNS_to_alpha in -lpng... yes
checking tiff.h usability... no
checking tiff.h presence... no
checking for tiff.h... no
checking for stdlib.h... (cached) yes
checking for socket in -lsocket... no
checking for gethostbyaddr in -lnsl... yes
checking for rresvport... yes
checking for getifaddrs... no
checking for hstrerror... no
checking for struct sockaddr.sa_len... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking slp.h usability... no
checking slp.h presence... no
checking for slp.h... no
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
checking gnutls/gnutls.h usability... no
checking gnutls/gnutls.h presence... no
checking for gnutls/gnutls.h... no
checking for dlopen in -ldl... no
checking for pam_start in -lpam... yes
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
checking for java... /opt/java1.4/bin/java
checking for perl... /usr/contrib/bin/perl
checking for php... no
checking for python... no
configure: creating ./config.status
config.status: creating Makedefs
config.status: creating cups.list
config.status: creating cups.sh
config.status: creating cups-config
config.status: creating conf/cupsd.conf
config.status: creating conf/pam.conf
config.status: creating config.h
config.status: config.h is unchanged

Thanks for any suggestion.
Chris Ng






More information about the cups mailing list