Doesn't build on OS X
build errors are as follows:
/usr/include/ncurses.h:486: too many args (1) to macro 'erasechar' (0 expected)
/usr/include/ncurses.h:522: too many args (1) to macro 'killchar' (0 expected)
/usr/include/ncurses.h:953: warning: redefinition of macro KEY_BREAK
constants.h:108: warning: this is the location of the previous definition
/usr/include/ncurses.h:961: warning: redefinition of macro KEY_BACKSPACE
constants.h:114: warning: this is the location of the previous definition
/usr/include/ncurses.h:972: warning: redefinition of macro KEY_ENTER
constants.h:111: warning: this is the location of the previous definition
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[2]: *** [build.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
configure spat out the following questionable lines:
configure: checking "location of ncurses.h file"...
Found ncurses on /usr/include/ncurses.h
checking for ncurses version... unknown
Logged In: YES
user_id=27517
The build problems point at TERMINFO as the likely culprit.
The conflicting definitions in constants. h are active only
if TERMINFO==0.
So it looks like OS X needs TERMINFO==1. Sigh--- this
TERMINFO stuff really is a mess.
Logged In: NO
I have tried to build too for MAC OS X but I get other buidl problems.
I have opened a bug for it with number: 750261
Logged In: YES
user_id=27517
The errors found by "nobody" are not different from the ones
given here, really, so I close #750261 .
Logged In: YES
user_id=37651
Yep, forcing TERMINFO=1 fixes the compile on Mac OS X (10.3.3) and
probably earlier versions for cscope 15.5.
/s.
Logged In: NO
The following patch fixes this problem for cscope 15.6 on Mac OS X 10.5.3:
diff -ruN cscope-15.6-orig/src/constants.h cscope-15.6/src/constants.h
--- cscope-15.6-orig/src/constants.h 2006-09-30 03:13:00.000000000 -0500
+++ cscope-15.6/src/constants.h 2008-05-29 14:07:07.000000000 -0500
@@ -103,7 +103,7 @@
#define INCLUDES 8
#define FIELDS 9
-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__
+#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__APPLE__
# define TERMINFO 0 /* no terminfo curses */
#else
# define TERMINFO 1
Logged In: YES
user_id=48945
Originator: NO
Oops, forgot to login. That last patch was from me.
Forcing TERMINFO=1 works for me too using OSX 10.7.3 and cscope 15.8a
On Thu, May 02, 2013 at 05:12:58PM +0000, Meh Meks wrote:
Looks like the config ifdefs aren't working for apple. Try to undef, the
define TERMINFO 1
Neil
Related
Bugs: #110