bug-ncurses
[Top][All Lists]
Advanced

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

undefined reference to `exit_curses'


From: Jeffrey Walton
Subject: undefined reference to `exit_curses'
Date: Sat, 20 Jun 2020 16:42:56 -0400

Hi Everyone/Thomas,

I'm catching this error after upgrading to Ncurses 6.2:

gcc -g2 -O2 -march=native -fPIC -pthread  -o background
../obj_s/background.o ../obj_s/dump_window.o
-L/home/jwalton/tmp/ok2delete/lib -Wl,-R,'$ORIGIN/../lib'
-Wl,-R,/home/jwalton/tmp/ok2delete/lib -Wl,--enable-new-dtags -I. -I.
-I../test -DHAVE_CONFIG_H
-DDATA_DIR=\"/home/jwalton/tmp/ok2delete/share\" -I. -I../include
-I/home/jwalton/tmp/ok2delete/include -DNDEBUG -D_DEFAULT_SOURCE
-D_XOPEN_SOURCE=600 -DNDEBUG -g2 -O2 -march=native -fPIC -pthread
-fPIC  `echo "-L../lib -lform -lmenu -lpanel -lncurses -ltinfo  -ldl
-lpthread" | sed -e 's/-lform.*-lpanel[^ ]*//'` -lutil  -lm
../obj_s/background.o: In function `usage':
/home/jwalton/Build-Scripts/ncurses-6.2/test/../test/background.c:153:
undefined reference to `exit_curses'
../obj_s/background.o: In function `main':
/home/jwalton/Build-Scripts/ncurses-6.2/test/../test/background.c:198:
undefined reference to `exit_curses'
/home/jwalton/Build-Scripts/ncurses-6.2/test/../test/background.c:240:
undefined reference to `exit_curses'
collect2: error: ld returned 1 exit status

My build script for Ncurses is here:
https://github.com/noloader/Build-Scripts/blob/master/build-ncurses.sh.
It is kind of busy, but I think the important configure option is
--disable-leaks. The script also performs the following steps (with
some hand-waving):

   configure
   make
   make check
   sudo make install

I've read through
https://lists.gnu.org/archive/html/bug-ncurses/2020-06/msg00006.html
but I am not sure what actions need to be performed.

Am I missing a configure option, or do I need to do something else to
complete the build?

Jeff



reply via email to

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