[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ does not build with ncurses-5.9-20130316
From: |
Dr. Werner Fink |
Subject: |
C++ does not build with ncurses-5.9-20130316 |
Date: |
Fri, 22 Mar 2013 13:03:10 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
just found this
[ 61s] ranlib ../lib/libncurses++.a
[ 61s] /usr/bin/g++ -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib
-lform -lmenu -lpanel -lncurses -ltinfo -Wl,-O2 -Wl,-Bsymbolic-functions
-Wl,--hash-size=8599 -Wl,--as-needed -lutil -lpthread
-Wl,-rpath-link,/home/abuild/rpmbuild/BUILD/ncurses-5.9/lib -I../c++
-I../include -I. -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG
-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -pipe
-D_REENTRANT -fPIC
[ 61s] ../obj_s/demo.o: In function `TestApplication::title()':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:555: undefined
reference to `COLS'
[ 61s] ../obj_s/demo.o: In function `MyMenu::On_Menu_Init()':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:485: undefined
reference to `stdscr'
[ 61s] ../obj_s/demo.o: In function `NCursesPanel':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/../c++/cursesp.h:112:
undefined reference to `stdscr'
[ 61s] ../obj_s/demo.o: In function `ScanAction::action()':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:399: undefined
reference to `LINES'
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:399: undefined
reference to `COLS'
[ 61s] ../obj_s/demo.o: In function `NCursesPanel':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/../c++/cursesp.h:112:
undefined reference to `stdscr'
[ 61s] ../obj_s/demo.o: In function `PadAction::action()':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:349: undefined
reference to `COLS'
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:349: undefined
reference to `LINES'
[ 61s] ../obj_s/demo.o: In function `NCursesPanel':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/../c++/cursesp.h:112:
undefined reference to `stdscr'
[ 61s] ../obj_s/demo.o: In function `SillyDemo::run(int)':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:83: undefined
reference to `acs_map'
[ 61s] ../obj_s/demo.o: In function `TestForm::TestForm()':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:252: undefined
reference to `COLS'
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:252: undefined
reference to `LINES'
[ 61s] ../obj_s/demo.o: In function `MyMenu::MyMenu()':
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:443: undefined
reference to `COLS'
[ 61s] /home/abuild/rpmbuild/BUILD/ncurses-5.9/c++/./demo.cc:443: undefined
reference to `LINES'
[ 61s] collect2: error: ld returned 1 exit status
[ 61s] make[1]: *** [demo] Error 1
[ 61s] make[1]: Leaving directory
`/home/abuild/rpmbuild/BUILD/ncurses-5.9/c++'
[ 61s] make: *** [all] Error 2
if I try to include curses.h into demo.cc then I see
[ 28s] In file included from ./internal.h:39:0,
[ 28s] from ./demo.cc:42:
[ 28s] ../include/ncurses_cfg.h:82:0: warning: "NCURSES_EXT_FUNCS" redefined
[enabled by default]
[ 28s] In file included from ./demo.cc:41:0:
[ 28s] ../include/curses.h:883:0: note: this is the location of the previous
definition
[ 28s] In file included from ./internal.h:39:0,
[ 28s] from ./demo.cc:42:
[ 28s] ../include/ncurses_cfg.h:83:0: warning: "NCURSES_SP_FUNCS" redefined
[enabled by default]
[ 28s] In file included from ./demo.cc:41:0:
[ 28s] ../include/curses.h:935:0: note: this is the location of the previous
definition
[ 28s] In file included from ./internal.h:39:0,
[ 28s] from ./demo.cc:42:
[ 28s] ../include/ncurses_cfg.h:103:0: warning: "GCC_SCANFLIKE" redefined
[enabled by default]
[ 28s] In file included from ./demo.cc:41:0:
[ 28s] ../include/curses.h:542:0: note: this is the location of the previous
definition
[ 28s] In file included from ./internal.h:39:0,
[ 28s] from ./demo.cc:42:
[ 28s] ../include/ncurses_cfg.h:105:0: warning: "GCC_PRINTFLIKE" redefined
[enabled by default]
[ 28s] In file included from ./demo.cc:41:0:
[ 28s] ../include/curses.h:534:0: note: this is the location of the previous
definition
[ 28s] In file included from ./internal.h:39:0,
[ 28s] from ./demo.cc:42:
[ 28s] ../include/ncurses_cfg.h:106:0: warning: "GCC_UNUSED" redefined
[enabled by default]
[ 28s] In file included from ./demo.cc:41:0:
[ 28s] ../include/curses.h:551:0: note: this is the location of the previous
definition
[ 28s] In file included from ./internal.h:39:0,
[ 28s] from ./demo.cc:42:
[ 28s] ../include/ncurses_cfg.h:107:0: warning: "GCC_NORETURN" redefined
[enabled by default]
[ 28s] In file included from ./demo.cc:41:0:
[ 28s] ../include/curses.h:547:0: note: this is the location of the previous
definition
[ 28s] ... ETIP_NEEDS_MATH_H 0
[ 28s] In file included from ../c++/cursslk.h:39:0,
[ 28s] from ./cursesapp.h:39,
[ 28s] from ./demo.cc:43:
[ 28s] ../c++/cursesw.h:36:18: fatal error: etip.h: No such file or directory
[ 28s] compilation terminated.
[ 28s] ... HAVE_BUILTIN_H 0
[ 28s] make[1]: *** [../obj_s/demo.o] Error 1
[ 28s] make[1]: *** Waiting for unfinished jobs....
[ 28s] ... HAVE_GPP_BUILTIN_H 0
[ 28s] ... HAVE_GXX_BUILTIN_H 0
[ 28s] ... HAVE_IOSTREAM 1
[ 28s] ... HAVE_TYPEINFO 1
[ 28s] ... HAVE_VALUES_H 0
[ 28s] ... IOSTREAM_NAMESPACE 1
[ 28s] make[1]: Leaving directory
`/home/abuild/rpmbuild/BUILD/ncurses-5.9/c++'
[ 28s] make: *** [all] Error 2
[ 28s] + rm -rf /tmp/ncurses.gq13aypt
[ 28s] error: Bad exit status from /var/tmp/rpm-tmp.HaYIea (%build)
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
- C++ does not build with ncurses-5.9-20130316,
Dr. Werner Fink <=
- Re: C++ does not build with ncurses-5.9-20130316, Thomas Dickey, 2013/03/22
- Re: C++ does not build with ncurses-5.9-20130316, Dr. Werner Fink, 2013/03/25
- Re: [bug-ncurses] C++ does not build with ncurses-5.9-20130316, Dr. Werner Fink, 2013/03/25
- Re: [bug-ncurses] C++ does not build with ncurses-5.9-20130316, Dr. Werner Fink, 2013/03/25
- Re: [bug-ncurses] C++ does not build with ncurses-5.9-20130316, Thomas Dickey, 2013/03/25
- Re: [bug-ncurses] C++ does not build with ncurses-5.9-20130316, Dr. Werner Fink, 2013/03/26
- Re: [bug-ncurses] C++ does not build with ncurses-5.9-20130316, Thomas Dickey, 2013/03/26
- Re: [bug-ncurses] C++ does not build with ncurses-5.9-20130316, Dr. Werner Fink, 2013/03/26
- Re: [bug-ncurses] C++ does not build with ncurses-5.9-20130316, Thomas Dickey, 2013/03/26