[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ld: cannot open -ltermcap: No such file or directory



I've been upgrading my libc5 system at home to libc6 according to the
famous MiniHowTo posted here so frequently.  Unfortunately quite some
libc5 applications are not working anymore but only bomb out with a
seg fault upon startup.  This is very much to my annoyance the case
for the XEmacs-20.3 version i debianized and which ran really fine.
Now i wanted to recompile it for libc6 but the compilation simply
stops with:

---cut-here-----------------------------
creating src/Makefile
make dist
make[1]: Entering directory `/usr/src/xemacs-20.3'
Producing `src/paths.h' from `src/paths.h.in'.
src/paths.h is unchanged
cd lib-src && make -w CC='gcc' CFLAGS='-g -O2 -Wall -Wno-switch -fno-strength-re
duce -malign-loops=2 -malign-jumps=2 -malign-functions=2' LDFLAGS='' CPPFLAGS=''
 all
make[2]: Entering directory `/usr/src/xemacs-20.3/lib-src'
gcc -g -O2 -Wall -Wno-switch -fno-strength-reduce -malign-loops=2 -malign-jumps=
2 -malign-functions=2 -Demacs -I../src  -DHAVE_CONFIG_H -I/usr/include/db -I/usr
/X11R6/include /usr/src/xemacs-20.3/lib-src/wakeup.c  -L/usr/X11R6/lib -ltermcap
 -lcurses -lm -o wakeup
ld: cannot open -ltermcap: No such file or directory
make[2]: *** [wakeup] Error 1
make[2]: Leaving directory `/usr/src/xemacs-20.3/lib-src'
make[1]: *** [lib-src] Error 2
make[1]: Leaving directory `/usr/src/xemacs-20.3'
make: *** [build] Error 2
---cut-here-----------------------------

The same beast compiled just fine before with only libtermcap-compat
installed on two different Debian machines based on libc5.  A "locate
libtermcap" says: 

	/lib/libtermcap.so.2
	/lib/libtermcap.so.2.0.8

A similiar error happened before when compiling "kpackage" from KDE:

---cut-here-----------------------------
make[2]: Entering directory `/usr/src/kde/kpackage-0.6.2/kpackage'
c++ -g -s -o kpackage -L/usr/local/kde/lib -L/usr/X11R6/lib  kpackage.o manageme
ntWidget.o packageDisplay.o packageProperties.o rpmuninstallDialog.o debuninstal
lDialog.o installationWidget.o rpminstallOptions.o debinstallOptions.o aboutDial
og.o packageInfo.o rpmInterface.o main.o utils.o rpmInstall.o rpmMessages.o rpmV
erify.o debInterface.o procbuf.o -lkfm -lkdeui -lkdecore -lqt -lX11 -lXext -lrpm
 -ldb  
ld: cannot open -lrpm: No such file or directory
make[2]: *** [kpackage] Error 1
make[2]: Leaving directory `/usr/src/kde/kpackage-0.6.2/kpackage'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/kde/kpackage-0.6.2'
make: *** [all-recursive-am] Error 2
---cut-here-----------------------------

A "locate librpm" tells us: 

	/usr/lib/librpm.so.1.0

So the files exist, the entries in "/etc/ld.so.conf" correctly point
out the necessary paths but nothing works. :-(

So what's wrong with "ld" not finding readily existing libraries?

                                 Thank you, P. *8^)
-- 
   Paul Seelig                         pseelig@goofy.zdv.uni-mainz.de
   African Music Archive - Institute for Ethnology and Africa Studies
   Johannes Gutenberg-University   -  Forum 6  -  55099 Mainz/Germany
   My Homepage in the WWW at the URL http://www.uni-mainz.de/~pseelig 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: