Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#48 bool re-defined

closed-fixed
Sean Morrison
3
2006-01-28
2005-09-18
John Coppens
No

H people.

When I compiled brlcad from the source package, I had a
compilation error in burst.h, which signalled an
incompatible re-definition of bool, conflicting with
the original definition in (if I recall right) ncurses.

I comented out line 42 in burst.h, which made the
compilation continue, but caused a lot of other
problems. I then uncommented the same line, and
compilation went through completely!

I'm guessing the line:

#if !defined(NCURSES_BOOL) && !defined(bool) &&
!defined(_CURSES_H)

doesn't catch my installation (mostly slackware 10). I
don't have the complete error message, as compilation
went through after the mods. If needed, I can do a
clean install and try to re-create the errors.

John

Discussion

  • Lee Butler
    Lee Butler
    2006-01-11

    • assigned_to: nobody --> lbutler
    • status: open --> pending
     
  • Lee Butler
    Lee Butler
    2006-01-11

    Logged In: YES
    user_id=1179270

    I believe the following change should have addressed this:

    typedef int boolean;

    Could you please re-check and see if this is still an issue? You may wish to
    check out a Dec 20th version, as we are currently merging large quantities of
    code and the head may not compile.

     
  • Sean Morrison
    Sean Morrison
    2006-01-28

    • priority: 5 --> 3
    • assigned_to: lbutler --> brlcad
    • milestone: --> other bug / workaround
    • status: pending --> closed-fixed
     
  • Sean Morrison
    Sean Morrison
    2006-01-28

    Logged In: YES
    user_id=785737

    This issue has been resolved in the latest CVS, thanks!

     
  • Sean Morrison
    Sean Morrison
    2006-01-28

    Logged In: YES
    user_id=785737

    I encountered and fixed this issue on 2005/11/04. The burst package was
    written well before the c99 standard existed and as such used several symbols
    and typedefs such as one for 'bool' that caused various problems on some
    platforms/compilers. In particular, this caused a problem when used in
    conjunction with curses/ncurses as they also often use(d) 'bool' and other
    conflictingly named typedefs. Thanks for the bug report!