Error making lprng

Hi everyone,

             i am using openSUSE 12.3 and I am trying to install LPRng but when I try to install Compilation completes successfully and executing "make" gives segmentation fault.

That’s little information to go by. Can you be more specific than “segmentation fault?” Is that all it’s telling you? The compiler should make a reference to the source of the fault. Otherwise, be sure and read the README and INSTALL files carefully. That might give you a clue.

Yeah it gives only “segmentation fault” .I couldn’t find anything special in the install file

I don’t have solution to this, but in the interest of helping, I downloaded LPRng-3.8.35.tgz and attempted to compile as you did, with the same results. I found this ArchLiunx thread (for ARM) which reported the same issue, and used the GNU debugger utility (gdb) to shed some light on the issue, but no definitive solution unfortunately.

I note that 3.8.28 version (32-bit and 64-bit) RPMs are available from here:

RPM Search lprng]=46

Maybe that will suffice?

that didn’t help

I tried installing RPM it installed without errors but lpd.service is unable to start.

#systemctl start lpd.service
Job for lpd.service failed.See systemctl status lpd.service and ‘journalctl -n’ for details.

Output of #systemctl status lpd.service is

systemctl status lpd.service

lpd.service - LSB: Start lpd to allow printing
Loaded: loaded (/etc/init.d/lpd)
Active: failed (Result: exit-code) since Sun, 2013-08-18 12:06:02 GMT; 5s ago
Process: 1494 ExecStart=/etc/init.d/lpd start (code=exited, status=7)
CGroup: name=systemd:/system/lpd.service

Aug 18 12:06:02 Linux systemd[1]: Starting LSB: Start lpd to allow printing…
Aug 18 12:06:02 Linux checkpc[1500]: Get_local_host: hostname ‘Linux’ bad
Aug 18 12:06:02 Linux lpd[1494]: Starting lpd2013-08-18-12:06:02.270 Get_lo…ad
Aug 18 12:06:02 Linux lpd[1494]: 2013-08-18-12:06:02.327 Get_local_host: ho…ad
Aug 18 12:06:02 Linux lpd[1494]: …failed
Aug 18 12:06:02 Linux systemd[1]: Failed to start LSB: Start lpd to allow p…g.
Aug 18 12:06:02 Linux systemd[1]: Unit lpd.service entered failed state

output of journalctl -n
#journalctl -n
– Logs begin at Sun, 2013-08-18 11:56:08 GMT, end at Sun, 2013-08-18 12:06:18 G
MT. –
Aug 18 12:06:02 Linux systemd[1]: Unit lpd.service entered failed state
Aug 18 12:06:18 Linux systemd[1]: Starting LSB: Start lpd to allow printing…
Aug 18 12:06:18 Linux checkpc[1516]: Get_local_host: hostname ‘Linux’ bad

Aug 18 12:06:18 Linux lpd[1510]: Starting lpd2013-08-18-12:06:18.690 Get_local_h
ost: hostname ‘Linux’ bad
Aug 18 12:06:18 Linux lpd[1518]: Get_local_host: hostname ‘Linux’ bad
Aug 18 12:06:18 Linux lpd[1510]: 2013-08-18-12:06:18.748 Get_local_host: hostnam
e ‘Linux’ bad
Aug 18 12:06:18 Linux lpd[1510]: …failed
Aug 18 12:06:18 Linux systemd[1]: lpd.service: control process exited, cod
e=exited status=7
Aug 18 12:06:18 Linux systemd[1]: Failed to start LSB: Start lpd to allow
printing.
Aug 18 12:06:18 Linux systemd[1]: Unit lpd.service entered failed state

Sorry for the above posts.it’s been solved as I added my HOSTNAME in /etc/hosts file.

On 2013-08-18 13:46, nishanth9042 wrote:
>
> deano_ferrari;2579932 Wrote:
>> I don’t have solution to this, but in the interest of helping, I
>> downloaded LPRng-3.8.35.tgz and attempted to compile as you did, with
>> the same results. I found this ArchLiunx ‘thread’
>> (http://archlinuxarm.org/forum/viewtopic.php?f=5&t=4943) (for ARM) which
>> reported the same issue, and used the GNU debugger utility (gdb) to shed
>> some light on the issue, but no definitive solution unfortunately.
>
> that didn’t help

Why don’t you just use CUPS?


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

After adding the HOSTNAME in /etc/hosts file,executing lpstat -p gives “Error loop in printcap”

Actually I am testing the lpd server installation in linux.

I’m out of my depth with all of this, since I have only ever used CUPS. Can you use ‘cups-lpd’ for this, or do you really need to test/use the Berkeley print spooler?

Regarding your error message, I wonder if it is related to /etc/printcap and perhaps the cups daemon is also running? (That might cause issues like this.)

On 2013-08-19 00:26, deano ferrari wrote:
>
> nishanth9042;2580058 Wrote:
>> Actually I am testing the lpd server installation in linux.
> I’m out of my depth with all of this, since I have only ever used CUPS.
> Can you use ‘cups-lpd’ for this, or do you really need to test/use the
> Berkeley print spooler?

I have used both, but I see no use to go back to the old system.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I couldn’t find cups-lpd in the repos.

I think you need to do some research first. It is included as part of CUPS.

man cups-lpd

cups-lpd(8) - cups.org

On 2013-08-19 09:06, nishanth9042 wrote:
>
> I couldn’t find cups-lpd in the repos.

Only for redhat RHEL-5

But the standard cups contains “/usr/lib/cups/daemon/cups-lpd”, which is
why there is no separate package.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

OK I am bit confused on this cups-lpd.I will try and then get back to you.