1837788 Members
3934 Online
110120 Solutions
New Discussion

Re: cups depot?

 
SOLVED
Go to solution
Bart.Vermeiren
Frequent Advisor

cups depot?

I know there is an old cups depot to be found, but it contains version 1.02 (1999). I'm trying to create my own cups on HP-UX, but I fail to create it. I'm able to do "./configure" and "make", but the "make install" command fails.

I also wanted to create a depot for cups. I found on the web that epm might be a good choice, but I couldn't install it: the "make" command gives me a syntax error on line 338. When I look into the makefile, it doesn't give me anything that I could debug.

Was any of you able to install cups on a HP-UX? If yes, can you create a depot for it? I think a lot of people will be happy when someone finally pulls this off.
11 REPLIES 11
Dave Hutton
Honored Contributor

Re: cups depot?

I'm not sure if someone would do it, but I think it would be helpful if you supplied a little more information about your system. What version of HPUX? IA or PA?
Bart.Vermeiren
Frequent Advisor

Re: cups depot?

It's for the 11.00, 11.11 and the 11.23 version of HP-UX. We ain't got the latest, but it's not like we went prehistoric with a version 10.x.
Solution

Re: cups depot?

Bart,

Interesting challenge - I managed to get it build and install, but it was *painful*

So pre-reqs were

the latest source from here:

http://www.cups.org/software.php

gcc plus runtime dependencies from here:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.2.1/

Also bash (yes to get round those syntax errors! typical Linux people assume evryone uses bash!) from here:

http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.2/

I then ran the following:

LDFLAGS="-L/usr/local/lib" ; \
DSOFLAGS="-L/usr/local/lib" ; \
./configure --prefix=/usr/local/cups

I then had to manually edit the Makedefs file and change:
SHELL = /bin/sh to SHELL = /usr/local/bin/bash
and
INSTALL = /opt/imake/bin/install -c to INSTALL = /install-sh -c
(probably a better way of doing this, but I couldn't find it)

Then

gmake all

gmake install


HTH

Duncan

I am an HPE Employee
Accept or Kudo
Bart.Vermeiren
Frequent Advisor

Re: cups depot?

I'll try it out and let you know the results. If I pull this off, you're getting the max points I can give.
Bart.Vermeiren
Frequent Advisor

Re: cups depot?

Different question, still related with the initial question => I got cups running, but I still can't go to the website.

ps -ef|grep cups
root 4159 4112 1 08:58:42 pts/0 0:00 grep cups
root 21829 1 0 14:24:59 ? 0:01 ./cupsd

The cupsd.conf directory gave me the following:

cat /usr/local/cups/etc/cups/cupsd.conf

LogLevel info

SystemGroup sys root

Listen localhost:631
Listen /usr/local/cups/var/run/cups/cups.sock

Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowsePoll linuxcupsserver #fictive server

DefaultAuthType Basic


Order allow,deny
Allow From ALL



Encryption Required
Order allow,deny
Allow localhost



AuthType Default
Require user @SYSTEM
Order allow,deny
Allow localhost




Require user @OWNER @SYSTEM
Order deny,allow



AuthType Default
Require user @SYSTEM
Order deny,allow



AuthType Default
Require user @SYSTEM
Order deny,allow



Require user @OWNER @SYSTEM
Order deny,allow



Order deny,allow


Ivan Krastev
Honored Contributor

Re: cups depot?

What error gives you after connecting to cups web site ?




regards,
ivan
Bart.Vermeiren
Frequent Advisor

Re: cups depot?

I got it when I wrote it down here. I just had to add that he has to listen to his network ip also and not only localhost.
Bart.Vermeiren
Frequent Advisor

Re: cups depot?

Some bad news. I was happy starting cups the next day, but the usual website only led to the homepage. The tabs for administration or any other led me to the same result that it couldn't find any data.

In response I tried to repeat all the steps above, but now I get a fault message everytime when I try to 'gmake all'. The compiling fails with this error:

Linking libcups.sl.2...
/usr/bin/ld: Can't find library: "z"
gmake[1]: *** [libcups.sl.2] Error 1
gmake: *** [all] Error 1
Bart.Vermeiren
Frequent Advisor

Re: cups depot?

On emore clarification to add to my previous post -> I've completely removed every package like zlib and installed all the depots again. I even removed /sbin/init.d/cups to play on the safe side. Still I get the same error as mentioned above.
Bart.Vermeiren
Frequent Advisor

Re: cups depot?

Ok, somehow (don't know how exactly) cups is reinstalled on a parisc 11.23 server. My main problem still exists: I only get the homepage from the cups website on this server. commando's like lpadmin and lpstat don't seem to work well either.

During compilation I got some strange fault messages like:

warning: deprecated conversion from string constant to 'char*'

warning: array subscript has type 'char'

Don't know what to do to prevent this kind of warning is and if they have the effect that cups didn't install completely.
Bart.Vermeiren
Frequent Advisor

Re: cups depot?

.