Menu

#110 Mac OS X: TERMINFO conflict

open
5
2013-05-02
2003-01-22
Anonymous
No

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

Related

Bugs: #110

Discussion

  • Hans-Bernhard Broeker

    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.

     
  • Hans-Bernhard Broeker

    • assigned_to: nobody --> broeker
     
  • Nobody/Anonymous

    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

     
  • Hans-Bernhard Broeker

    • labels: --> Curses interface
    • summary: Can't build on OS X --> Mac OS X: TERMINFO conflict
     
  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    The errors found by "nobody" are not different from the ones
    given here, really, so I close #750261 .

     
  • Scott S. Goodwin

    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.

     
  • Nobody/Anonymous

    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

     
  • Brent Casavant

    Brent Casavant - 2008-05-29

    Logged In: YES
    user_id=48945
    Originator: NO

    Oops, forgot to login. That last patch was from me.

     
  • Meh Meks

    Meh Meks - 2013-05-02

    Forcing TERMINFO=1 works for me too using OSX 10.7.3 and cscope 15.8a

     
  • Neil Horman

    Neil Horman - 2013-05-02

    On Thu, May 02, 2013 at 05:12:58PM +0000, Meh Meks wrote:

    Forcing TERMINFO=1 works for me too using OSX 10.7.3 and cscope 15.8a


    [bugs:#110] Mac OS X: TERMINFO conflict

    Status: open
    Labels: Curses interface
    Created: Wed Jan 22, 2003 06:15 PM UTC by Anonymous
    Last Updated: Sat Jun 07, 2003 11:45 AM UTC
    Owner: Hans-Bernhard Broeker

    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


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cscope/bugs/110/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

    Looks like the config ifdefs aren't working for apple. Try to undef, the

    define TERMINFO 1

    Neil

     

    Related

    Bugs: #110


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.