Subject: ncurses and Solaris and ::vsscanf undeclared
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/13/2004 13:46:54
Under SunOS 5.9, building aspell required ncurses.
I see pkgsrc/devel/ncurses/builtin.mk has some checks to allow some
versions of NetBSD's curses to be good enough.
Is curses from Solaris good enough?
I noticed this when building due to error:
cd ../obj_lo;
/usr/local/pkgwork/devel/ncurses/work.loonquawl/.wrapper/bin/libtool
--tag=CXX --mode=compile
/usr/local/pkgwork/devel/ncurses/work.loonquawl/.wrapper/bin/g++ -I../c++
-I../include -I. -DHAVE_CONFIG_H -I. -I../include -I/usr/pkg/include
-D__EXTENSIONS__ -DNDEBUG -I/usr/pkg/include -O -I/usr/pkg/include -c
../c++/cursesw.cc
/usr/local/pkgwork/devel/ncurses/work.loonquawl/.wrapper/bin/g++ -I../c++
-I../include -I. -DHAVE_CONFIG_H
-I/usr/local/pkgwork/devel/ncurses/work.loonquawl/.buildlink/include
-D__EXTENSIONS__ -DNDEBUG -O -c ../c++/cursesw.cc -fPIC -DPIC -o
.libs/cursesw.o
../c++/cursesw.cc: In member function `int NCursesWindow::scanw(const
char*,
...)':
../c++/cursesw.cc:64: error: `::vsscanf' undeclared (first use here)
*** Error code 1
Stop.
I found it discussed at
http://lists.gnu.org/archive/html/bug-ncurses/2004-07/msg00013.html
It appears that __EXTENSIONS__ is defined.
I am using /usr/pkg/gcc3/bin/g++ which is g++ (GCC) 3.3.4.
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/