Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ucblogo not compiling under linux (no -ltermcap)

62 views
Skip to first unread message

quentin

unread,
Aug 21, 2009, 11:24:43 AM8/21/09
to
Hi,

I'm trying to compile ucblogo under archlinux, but there are some
compilation problems.
First of all, I had the same problem as "knubee" there :
http://groups.google.com/group/comp.lang.logo/browse_thread/thread/565a689e93624882
but when people start a thread in a newsgroup, that's not really cool
when then continue it by private mail.
I just installed libbsd from AUR (http://aur.archlinux.org/
packages.php?ID=26667 ), and this problem was fixed, but now make
tells me shit about libtermcap :

~/downloads/ucblogo-6.0 % ./configure

~/downloads/ucblogo-6.0 % make
gcc -g -O -O0 -DUSE_OLD_TTY -c -o coms.o coms.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o error.o error.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o eval.o eval.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o files.o files.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o graphics.o graphics.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o init.o init.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o intern.o intern.c
echo 'char *libloc="'/usr/local/lib/logo'/logolib";' > libloc.c
echo 'char *helploc="'/usr/local/lib/logo'/helpfiles";' >> libloc.c
echo 'char *cslsloc="'/usr/local/lib/logo'/csls";' >> libloc.c
echo 'char *temploc="/tmp";' >> libloc.c
echo 'char *separator="/";' >> libloc.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o libloc.o libloc.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o lists.o lists.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o logodata.o logodata.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o main.o main.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o math.o math.c
gcc -g -O -O0 -DUSE_OLD_TTY -O0 -c mem.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o paren.o paren.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o parse.o parse.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o print.o print.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o wrksp.o wrksp.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o nographics.o nographics.c
echo 'char* SVN = "('`svnversion|tr -d '\r'`')";' > svn.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o svn.o svn.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o term.o term.c
gcc -g -O -O0 -DUSE_OLD_TTY -c -o xgraphics.o xgraphics.c
gcc -g -O -O0 -DUSE_OLD_TTY coms.o error.o eval.o files.o
graphics.o init.o intern.o libloc.o lists.o logodata.o main.o math.o
mem.o paren.o parse.o print.o wrksp.o nographics.o svn.o term.o
xgraphics.o -lbsd -lm -ltermcap -lX11 -o logo
/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
make: *** [logo] Error 1

And I can't find any "libtermcap" anywhere.
Of course, the compiled version in the .tar.gz don't start :
./logo: error while loading shared libraries: libtinfo.so.5: cannot
open shared object file: No such file or directory

Thanks for the help :)

Andreas Micheler

unread,
Aug 21, 2009, 11:51:42 AM8/21/09
to
quentin wrote:
> And I can't find any "libtermcap" anywhere.

I don't know if this helps,
but you can find most libraries with apt-file in Linux:

$ apt-file search libtermcap
libncurses5-dev: /usr/lib/libtermcap.a
libncurses5-dev: /usr/lib/libtermcap.so

Greetings,
Andreas

quentin

unread,
Aug 21, 2009, 1:54:57 PM8/21/09
to

As I told, I'm using Archlinux, so, not a debian-based linux. We also
have a program like apt-file, called pacfile, and maybe our ncurses
version is more recent than debian's ncurses, because I don't have
libtermcap :

~ % pacfile libtermcap
~ % pacman -Ql ncurses | grep "lib.*.so$"
ncurses /usr/lib/libcurses.so
ncurses /usr/lib/libcursesw.so
ncurses /usr/lib/libform.so
ncurses /usr/lib/libformw.so
ncurses /usr/lib/libmenu.so
ncurses /usr/lib/libmenuw.so
ncurses /usr/lib/libncurses.so
ncurses /usr/lib/libncursesw.so
ncurses /usr/lib/libpanel.so
ncurses /usr/lib/libpanelw.so

Quentin.

quentin

unread,
Aug 21, 2009, 1:59:16 PM8/21/09
to

Problem fixed, I just had to change -ltermcap into -lncurses:
% sed -i 's/-ltermcap/-lncurses/' makefile
% make
And it compiles perfectly :)

Brian Harvey

unread,
Aug 23, 2009, 1:58:39 AM8/23/09
to
quentin <quentin.s...@gmail.com> writes:
>Problem fixed, I just had to change -ltermcap into -lncurses:

Yeah, this is a known problem, but the good news is that the new wxWidgets-
based version doesn't really need termcap at all, so this dependency should
be gone in the next release, supposing I ever have any free time again.

Sorry!

0 new messages