Discussion:
[blfs-support] cupsd start problem ? libprocps.so.6
Dr.-Ing. Edgar Alwers via blfs-support
2018-12-07 14:14:37 UTC
Permalink
Hi,

I am refering to LFS/BLFS-8.3

cupsd did not start. When I try to start cupsd in /etc/rc.d/init.d with
"cups start" I get an error message

"Starting CUPS Printserver...pidof: error while loading shared
libraries: libprocps.so.6: cannot open shared object file: No such file
or directory"

After looking in /lib, I noticed that I have an "libprocps.so.7.1.0",
which is the library installed by

"procps-ng-3.3.15.tar.xz",  LFS-8.3. After manually copying
"libprocps.so.6" from another partition built with
procps-ng-3.3.12.tar.xz ( LFS-8.1), the problem with the start of cupsd
was gone.

It seems to me, that the script for cupsd needs a smaller change. Could
it be ?

Kind regards, Edgar
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information
Bruce Dubbs via blfs-support
2018-12-07 16:52:09 UTC
Permalink
Post by Dr.-Ing. Edgar Alwers via blfs-support
Hi,
I am refering to LFS/BLFS-8.3
cupsd did not start. When I try to start cupsd in /etc/rc.d/init.d with
"cups start" I get an error message
"Starting CUPS Printserver...pidof: error while loading shared
libraries: libprocps.so.6: cannot open shared object file: No such file
or directory"
After looking in /lib, I noticed that I have an "libprocps.so.7.1.0",
which is the library installed by
"procps-ng-3.3.15.tar.xz",  LFS-8.3. After manually copying
"libprocps.so.6" from another partition built with
procps-ng-3.3.12.tar.xz ( LFS-8.1), the problem with the start of cupsd
was gone.
It seems to me, that the script for cupsd needs a smaller change. Could
it be ?
What you should have is:

/lib/libprocps.so.7 -> libprocps.so.7.1.0
/lib/libprocps.so.7.1.0
/usr/lib/libprocps.so -> ../../lib/libprocps.so.7.1.0

You must have something you built previously when you had libprocps.so.6
on the system. Checking my copy of cups, it is not that. Try

$ ldd /bin/pidof

It's possible you have mixed some executables and libraries. You may
want to just rebuild procps-ng using the LFS instructions.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: Se
Dr.-Ing. Edgar Alwers via blfs-support
2018-12-07 20:48:54 UTC
Permalink
Post by Bruce Dubbs via blfs-support
/lib/libprocps.so.7 -> libprocps.so.7.1.0
/lib/libprocps.so.7.1.0
/usr/lib/libprocps.so -> ../../lib/libprocps.so.7.1.0
Hi Bruce,

I think we are misunderstandig us. That what you say  I should have, is
exactly that what I have ! The point is that the script for starting
cupsd asks for libprocps.so.6 and therefore  does'nt  work!
My cups is the one of BLFS-8.3

The start script for cupsd seems to be old, it refers to LFS/BLFS 7.0
(!) and was last changed in 05-12-2011. Could that be the problem ?

Edgar
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See
Bruce Dubbs via blfs-support
2018-12-07 21:08:42 UTC
Permalink
Post by Dr.-Ing. Edgar Alwers via blfs-support
Post by Bruce Dubbs via blfs-support
/lib/libprocps.so.7 -> libprocps.so.7.1.0
/lib/libprocps.so.7.1.0
/usr/lib/libprocps.so -> ../../lib/libprocps.so.7.1.0
Hi Bruce,
I think we are misunderstandig us. That what you say  I should have, is
exactly that what I have ! The point is that the script for starting
cupsd asks for libprocps.so.6 and therefore  does'nt  work!
My cups is the one of BLFS-8.3
The start script for cupsd seems to be old, it refers to LFS/BLFS 7.0
(!) and was last changed in 05-12-2011. Could that be the problem ?
No. The cupsd script is simple:

start)
log_info_msg "Starting CUPS Printserver..."
start_daemon /usr/sbin/cupsd
evaluate_retval

/usr/sbin/cupsd does not use libprocps.

The problem is that the function start_daemon calls pidof (from the
procps-ng package). pidof is the only thing that uses libprocps in this
sequence and your version apparently wants libprocps.so.6. Rebuilding
procps-ng should fix you up.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above informatio
Dr.-Ing. Edgar Alwers via blfs-support
2018-12-08 12:50:24 UTC
Permalink
pidof is the only thing that uses libprocps in this sequence and your
version apparently wants libprocps.so.6.   Rebuilding procps-ng should
fix you up.
Hi Bruce,

recompiling procps-ng did the job ! Thank you very much for the hint !

Edgar
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above i
Loading...