bug-ncurses
[Top][All Lists]
Advanced

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

Problem compiling dialog static / Error opening terminal: linux


From: Michael Setzer II
Subject: Problem compiling dialog static / Error opening terminal: linux
Date: Sun, 27 Nov 2005 14:07:58 +1000

First, note: the links on http://invisible-island.net/ncurses/ncurses.html are pointing to 5.4, which are not there any longer, but 5.5 are. Probable just needs to be updated.

I've been working on the g4l program, which uses dialog, and have been using the dialog program that the previous author had created for use from the boot cd. version 1.0-20040731 size 717749 bytes. I saw there was a new version 1.0-20051107, but have run into some problems getting it to work.

1. downloaded the new source, extracted it, and did a ./configure, modified the makefile to add -static to the gcc line, and make on a fedora core 4 machine, and got errors.

/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libncurses.a(lib_mouse.o)(.text+0x26e): In function `_nc_mouse_init':
: undefined reference to `dlopen'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libncurses.a(lib_mouse.o)(.text+0x285): In function `_nc_mouse_init':
: undefined reference to `dlsym'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libncurses.a(lib_mouse.o)(.text+0x29f): In function `_nc_mouse_init':
: undefined reference to `dlsym'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libncurses.a(lib_mouse.o)(.text+0x2b4): In function `_nc_mouse_init':
: undefined reference to `dlclose'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libncurses.a(lib_mouse.o)(.text+0x2ca): In function `_nc_mouse_init':
: undefined reference to `dlsym'
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../libncurses.a(lib_mouse.o)(.text+0x2e4): In function `_nc_mouse_init':
: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make: *** [dialog] Error 1

2. I was able to get the exact same code to compile on a fedora core 3 machine, and it was able to config and make a static version of dialog with a size of 841914 bytes. It works from an xterm terminal, and the a term=linux (ctrl-alt F1) on a fedora Core 3 box, but I get the error "Error opening terminal: linux" when I try to run it. The TERM=linux on both the boot cd (kernel.org 2.16.4.2) and the Fedora Core 3 terminal, so it works with TERM=linux on one. I do also notice tha the new one, that works on the Fedora is showing symbols instead of the shaded box. Does do the shaded box in the xterm window thou, and the older version does the lines in the fedora core (ctrl-alt f1) window.

The new mouse support was what I was looking at, since an earlier request to update the g4l was to add mouse support.

3. I thought it might need a newer ncurses, but I found the opposite seems to be true. I downloaded the 5.5 version, and did the ./configure, make and make install on the Fedora Core 4 machine, and got the same errors. I then did the 5.5 update on a Fedora Core 3 machine, that was able to compile it, and then it gets the same errors at the Fedora Core 4 machine does. So, it appears something was changed in version 5.5 that causes problems.

Not sure if it just isn't possible to get the new version to work from the boot cd, or if special kernel or other options need to be added to get it to work. I don't have information from the pervious author on what he had to do, to build dialog for the CD.

Thanks


reply via email to

[Prev in Thread] Current Thread [Next in Thread]