Re: boot log says libnewt is hosed

From: CWO4 Dave Mann (misterfixit_at_loveable.com)
Date: 05/27/05


Date: Thu, 26 May 2005 20:49:11 -0500

Tommy Reynolds wrote:

> On Wed, 25 May 2005 21:40:42 -0500, CWO4 Dave Mann wrote:
>
> OK, we have two intermingled messages here:
>
>> [root@localhost dave]# service kudzu start
>> Checking for new hardware/usr/sbin/kudzu: error while loading shared
>> libraries:libnewt.so.0.51: cannot open shared object file: No such file
>> or directory
>> [FAILED]
>> [root@localhost dave]#
>
> The first is:
>
>> Checking for new hardware [FAILED]
>
> The second is:
>
>> /usr/sbin/kudzu: error while loading shared
>> libraries:libnewt.so.0.51: cannot open shared object file: No such file
>> or directory
>
> Here is how the files look on my FC3 system:
>
> $ cd /usr/lib
> $ ls -l libnewt*
> -rw-r--r-- 1 root root 71506 Oct 15 2004 libnewt.a
> lrwxrwxrwx 1 root root 17 Dec 3 08:12 libnewt.so -> libnewt.so.0.51.6
> lrwxrwxrwx 1 root root 17 Dec 3 07:52 libnewt.so.0.51 ->
> libnewt.so.0.51.6
> -rwxr-xr-x 1 root root 57740 Oct 15 2004 libnewt.so.0.51.6
>
> Try this to verify that the library is actually intact:
>
> $ rpm -V newt-devel
>
> and if you get *any* *output* *at* *all*, then the RPM is corrupted
> and should be reloaded.
>
> Just for fun, rebuild the shared library database by:
>
> # ldconfig
>
> (as root) and try the "service kudzu start" test again.
>
> HTH

OK, here's some output! (Tommy, you're a star!)

[root@localhost dave]# rpm -V newt-devel

package newt-devel is not installed

[root@localhost dave]# ldconfig

[root@localhost dave]# service kudzu start

Checking for new hardware/usr/sbin/kudzu: error while loading shared
libraries:libnewt.so.0.51: cannot open shared object file: No such file or
directory

[root@localhost dave]# cd downloads

[root@localhost downloads]# cd newt

[root@localhost newt]# dir

newt-0.51.5 newt-0.51.5-1.src.rpm newt-0.51.5.tar.gz newt.spec usr
[root@localhost newt]# rpm -i newt-0.51.5-1.src.rpm
warning: user sugioka does not exist - using root
warning: group sugioka does not exist - using root
warning: user sugioka does not exist - using root
warning: group sugioka does not exist - using root

*****No clue who is user/group sugioka -- maybe the programmer?

[root@localhost newt]#

[root@localhost newt]# cd newt-0.51.5

[root@localhost newt-0.51.5]# dir

autom4te-2.53.cache dialogboxes.o newt.o test
buttonbar.c eawidth.c newt_pr.h test.c
buttonbar.o entry.c newt.spec testgrid
button.c entry.o peanuts.py testgrid.c
button.o form.c popcorn.py testgrid.o
CHANGES form.o python2.3 test.o
checkbox.c grid.c scale.c testtree
checkbox.o grid.o scale.o testtree.c
checkboxtree.c install-sh scrollbar.c testtree.o
checkboxtree.o label.c scrollbar.o textbox.c
config.h label.o shared textbox.o
config.h.in libnewt.a showchars tutorial.sgml
config.log libnewt.so.0.51.5 showchars.c whiptail
config.status listbox.c showchars.o whiptail.c
configure listbox.o showkey whiptail.o
configure.in Makefile showkey.c whiptcl.c
COPYING Makefile.in showkey.o windows.c
dialogboxes.c newt.c snackmodule.c windows.o
dialogboxes.h newt.h snack.py

[root@localhost newt-0.51.5]#

[root@localhost newt-0.51.5]# ./configure

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 a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
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... yes
checking for unistd.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged

[root@localhost newt-0.51.5]# make

cc -Wall -I/usr/include/slang -D_GNU_SOURCE -g -DVERSION=\"0.51.5\" -c -o
newt.o newt.c
ar rv libnewt.a newt.o button.o form.o checkbox.o entry.o label.o listbox.o
scrollbar.o textbox.o scale.o grid.o windows.o buttonbar.o checkboxtree.o
r - newt.o
r - button.o
r - form.o
r - checkbox.o
r - entry.o
r - label.o
r - listbox.o
r - scrollbar.o
r - textbox.o
r - scale.o
r - grid.o
r - windows.o
r - buttonbar.o
r - checkboxtree.o
gcc -g -o test test.o libnewt.a -lslang -lm -static
cc -fPIC -Wall -I/usr/include/slang -D_GNU_SOURCE -g -DVERSION=\"0.51.5\"
-c -o shared/newt.o newt.c
gcc -shared -o libnewt.so.0.51.5 -Wl,-soname,libnewt.so.0.51 shared/newt.o
shared/button.o shared/form.o shared/checkbox.o shared/entry.o
shared/label.o shared/listbox.o shared/scrollbar.o shared/textbox.o
shared/scale.o shared/grid.o shared/windows.o shared/buttonbar.o
shared/checkboxtree.o -lslang -lm -lc
gcc -g -o whiptail whiptail.o dialogboxes.o -L . libnewt.so.0.51.5 -lslang
-lm-lpopt
gcc -g -o testgrid testgrid.o libnewt.a -lslang -lm
gcc -g -o testtree testtree.o libnewt.a -lslang -lm
gcc -g -o showchars showchars.o libnewt.a -lslang -lm
gcc -g -o showkey showkey.o libnewt.a -lslang -lm
for ver in python2.3 ; do \
    if [ ! -f "$ver/_snackmodule.so" -o libnewt.so.0.51.5 -nt
"$ver/_snackmodule.so" ]; then \
        mkdir -p $ver ;\
        gcc -Wall -I/usr/include/slang -D_GNU_SOURCE -g
-I/usr/include/$ver -fPIC -c -o $ver/snackmodule.o snackmodule.c ;\
        gcc --shared -fPIC -o $ver/_snackmodule.so $ver/snackmodule.o -L .
libnewt.so.0.51.5 ;\
    fi ; \
done
In file included from /usr/include/python2.3/Python.h:8,
                 from snackmodule.c:14:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/alloca.h:22,
                 from snackmodule.c:5:
/usr/include/features.h:150:1: warning: this is the location of the previous
definition

[root@localhost newt-0.51.5]# make install

for ver in python2.3 ; do \
    if [ ! -f "$ver/_snackmodule.so" -o libnewt.so.0.51.5 -nt
"$ver/_snackmodule.so" ]; then \
        mkdir -p $ver ;\
        gcc -Wall -I/usr/include/slang -D_GNU_SOURCE -g
-I/usr/include/$ver -fPIC -c -o $ver/snackmodule.o snackmodule.c ;\
        gcc --shared -fPIC -o $ver/_snackmodule.so $ver/snackmodule.o -L .
libnewt.so.0.51.5 ;\
    fi ; \
done
[ -d //usr/lib ] || install -m 755 -d //usr/lib
install -m 755 libnewt.so.0.51.5 //usr/lib
ln -sf libnewt.so.0.51.5 //usr/lib/libnewt.so
[ -n "" ] && install -m 755 whiptcl.so //usr/lib || :
for ver in python2.3 ; do \
   [ -d //usr/lib/$ver/site-packages ] || install -m 755
-d //usr/lib/$ver/site-packages ;\
   install -m 755 $ver/_snackmodule.so //usr/lib/$ver/site-packages ;\
   install -m 755 snack.py //usr/lib/$ver/site-packages ;\
done
[ -d //usr/bin ] || install -m 755 -d //usr/bin
[ -d //usr/lib ] || install -m 755 -d //usr/lib
[ -d //usr/include ] || install -m 755 -d //usr/include
install -m 644 newt.h //usr/include
install -m 644 libnewt.a //usr/lib
install -m 755 whiptail //usr/bin

[root@localhost newt-0.51.5]# make clean

rm -f test whiptail testgrid testtree showchars showkey *.o libnewt.a core
libnewt.so.0.51.5 \
        shared/newt.o shared/button.o shared/form.o shared/checkbox.o
shared/entry.o shared/label.o shared/listbox.o shared/scrollbar.o
shared/textbox.o shared/scale.o shared/grid.o shared/windows.o
shared/buttonbar.o shared/checkboxtree.o*.so*

[root@localhost newt-0.51.5]#
  
[root@localhost newt-0.51.5]# rpm -V newt-devel

package newt-devel is not installed

[root@localhost newt-0.51.5]#

******* Ideas? *********

TIA
Dave


Quantcast