1756273 Members
2740 Online
108843 Solutions
New Discussion юеВ

Compiling CUPS

 
enrico.nic
Regular Advisor

Compiling CUPS

Hi

I am trying to install CUPS (www.easysw.com) on HP-UX 11.11

I have installed the libraries required, that are:
libpng-1.2.8
tiff-v3.4
zlib-1.1.3
jpeg-6b

and the version of CUPS to be compiled is 1.1.23.

The "configure" command seems to recognize all of the libraries, but when I try to "make" I obtain the error:

Making all in filter...
Linking libcupsimage.sl.2...
ld: Can't find library: "png"
*** Error exit code 1

Stop.

The lib files are in the same place as of the other libraries, i.e. /usr/local

I've tried to compile with "libpng" instead of "png" in the ld options, but with no effect.

Can anybody please help me ?

Thank you
11 REPLIES 11
Fabio Ettore
Honored Contributor

Re: Compiling CUPS

Ciao Enrico,

just for an hint I would suggest you to try with CUPS version 1.0.2 indicated in the porting of HP-UX:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/cups-1.0.2/

Of course the download points to the same site where you obtained 1.1.23. Anyway it seems to be already compiled only for 11.00 and 10.20, just the source for 11.11.

However it just is a thought to try that version, I never tried it.

Best regards,
Fabio
WISH? IMPROVEMENT!
Arunvijai_4
Honored Contributor

Re: Compiling CUPS

Try to export LD_LIBPATH=/usrlocal/lib:$LD_LIBPATH and compile again. May be its not picking libpng ?
Or edit configure script to add path to libpng.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
VEL_1
Valued Contributor

Re: Compiling CUPS

Hi,

Give the full path of libpng library in LDFLAGS or LIBS:

export LDFLAGS="/usr/loca/lib/libpng.sl"

or

export LIBS="/usr/loca/lib/libpng.sl"


Thanks.
enrico.nic
Regular Advisor

Re: Compiling CUPS

The package on hpux.connect.org.uk seems to be for 11.0, but I will try it in case of a complete compilation fail

Just a brief follow-up:

Having the env variables:
LDFLAGS=/usr/local/lib/libpng.sl
LD_LIBPATH=/usr/local/lib/

(one or both set, including the file name or not - and libpng.sl IS there)

I am continuing to obtain:
Linking libcupsimage.sl.2...
ld: Can't find library: "png"

Trying also to change the linker options in the libcupsimage.sl.2's makefile, adding the /usr/local/lib path, does not work.

I don't know what to try next ...

Arunvijai_4
Honored Contributor

Re: Compiling CUPS

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/cups-1.0.2/
Eventhough it is for 11.00, it will work on 11.11 without any problem. Anyways, Try editing your Makefile and add -L/usr/local/lib/libpng.sl where you find "png". Just give a try and let us know.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Compiling CUPS

Linking libcupsimage.sl.2...
ld: Can't find library: "png"
>>

Where is the libcupsimage.sl.2 available? Just create a file there in that location and symbolically to the /usr/local/lib/ file.

what r u getting now?

There is a platform support of products from 11.0 to 11.11 too. Try to install it before doing the LD action.

hth.
Easy to suggest when don't know about the problem!
enrico.nic
Regular Advisor

Re: Compiling CUPS

Unfortunately I didn't success ... trying to:

- copy all libpng* files to the directory where the sources are
- add the -L/usr/local/lib directive

But the error continues:

Linking libcupsimage.sl.2...
ld: Can't find library: "png"

libcupsimage.sl.2 should be created by the linker ld, it is not in the program's dir(s)

Thank you
VEL_1
Valued Contributor

Re: Compiling CUPS

Hi,


What are libpng files u copied?

enrico.nic
Regular Advisor

Re: Compiling CUPS

LibPNG is libpng-1.2.8

(from hpux.connect.org.uk)

The CUPS documentation reports that libpng should be 1.0.6 or greater