Hi all, I've been able to temporarily do: export LDFLAGS=-lncurses to make the error messages go away, and to build and install successfully. The problem now is, I get segfault. I'll be trying to use gdb to see what's wrong, although it looks quite involved.
It seems that I could've also done export LDFLAGS=-ltermcap but that would've been the same thing, because libtermcap was just a symlink to ncurses. Any suggestions? Thanks, Maria On Sat, Dec 13, 2008 at 7:11 PM, Maria Nelson <pineapple...@gmail.com> wrote: > Hi all, > > While building gpsim, I've been getting the error message: > /usr/local/lib/libreadline.so: undefined reference to `tgetnum' > > Specifically: > > make[2]: Entering directory `/home/jane/gnupic/temp/gpsim-0.22.0/gpsim' > /bin/sh ../libtool --tag=CXX --mode=link i486-linux-gnu-g++ -g -O2 > -o gpsim -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 > -I/usr/lib/glib/include main.o ../src/libgpsim.la > ../cli/libgpsimcli.la ../gui/libgpsimgui.la ../eXdbm/libgpsim_eXdbm.la > -lstdc++ -lpopt -pthread -L/usr/local/lib -lgtk-x11-2.0 > -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 > -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 > -L/usr/local/lib -lgtkextra-x11-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 > -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo > -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lreadline -lpopt > i486-linux-gnu-g++ -g -O2 -o .libs/gpsim -I/usr/include/gtk-1.2 > -I/usr/include/glib-1.2 -I/usr/lib/glib/include main.o -pthread > ../src/.libs/libgpsim.so -L/usr/local/lib ../cli/.libs/libgpsimcli.so > ../gui/.libs/libgpsimgui.so ../eXdbm/.libs/libgpsim_eXdbm.so -lstdc++ > /usr/local/lib/libgthread-2.0.so -lpthread -lrt > /usr/local/lib/libgtkextra-x11-2.0.so /usr/local/lib/libgtk-x11-2.0.so > /usr/local/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so > /usr/local/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so > /usr/local/lib/libpango-1.0.so -lm /usr/local/lib/libcairo.so > /usr/lib/libfreetype.so -lz -lfontconfig -lpng12 -lXrender -lX11 > /usr/local/lib/libpixman-1.so /usr/local/lib/libgobject-2.0.so > /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so > -lreadline /usr/lib/libpopt.so -Wl,--rpath -Wl,/usr/local/lib > /usr/local/lib/libreadline.so: undefined reference to `tgetnum' > /usr/local/lib/libreadline.so: undefined reference to `tgoto' > /usr/local/lib/libreadline.so: undefined reference to `tgetflag' > /usr/local/lib/libreadline.so: undefined reference to `BC' > /usr/local/lib/libreadline.so: undefined reference to `tputs' > /usr/local/lib/libreadline.so: undefined reference to `PC' > /usr/local/lib/libreadline.so: undefined reference to `tgetent' > /usr/local/lib/libreadline.so: undefined reference to `UP' > /usr/local/lib/libreadline.so: undefined reference to `tgetstr' > collect2: ld returned 1 exit status > make[2]: *** [gpsim] Error 1 > make[2]: Leaving directory `/home/jane/gnupic/temp/gpsim-0.22.0/gpsim' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/jane/gnupic/temp/gpsim-0.22.0' > make: *** [all] Error 2 > > I believe the variables I'm missing have to do with termcap, which was > replaced by terminfo, which was replaced by ncurses. > One site I found suggests that although terminfo has been replaced by > ncurses, ncurses doesn't use the variable "UP". So I guess I need both > terminfo and ncurses. > > I can't find any Debian packages that has terminfo or termcap in their names. > I've gone and installed everything remotely related to ncurses, but > the tgetnum error persists. > > It seems that various people online building different projects are > having trouble with "undefined reference to `tgetnum'", so I doubt > it's specific to the package I'm building. > > Any information on how to get rid of the tgetnum error would be > greatly appreciated. > > Thanks, > Maria > -- To UNSUBSCRIBE, email to debian-women-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org