Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old November 7, 2007, 07:33   #1
TreeFrog
Rookie
 
Join Date: Nov 2007
Posts: 5
TreeFrog is on a distinguished road
Question Compile failure for 3.0.9 on Mac OS X 10.4.10

I get this when compiling vanila 3.0.9 on OS X 10.4.10 (Intel and PPC):

CC main-gcu.c
In file included from main-gcu.c:63:
/usr/include/ncurses.h:335: error: parse error before 'bool'
/usr/include/ncurses.h:337: error: parse error before '_leaveok'
/usr/include/ncurses.h:338: error: parse error before '_scroll'

Looks like it's something to do with stdbool, configure seemed to think it was okay:

checking for dirent.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes

Any ideas what to do to fix it?
TreeFrog is offline   Reply With Quote
Old November 7, 2007, 07:37   #2
TreeFrog
Rookie
 
Join Date: Nov 2007
Posts: 5
TreeFrog is on a distinguished road
Quote:
Originally Posted by TreeFrog View Post
Any ideas what to do to fix it?
Bah. What you do is use the Makefile.osx in the src directory.

Sorry for the trouble
TreeFrog is offline   Reply With Quote
Old November 7, 2007, 22:02   #3
mavfin
Rookie
 
Join Date: Nov 2007
Posts: 4
mavfin is on a distinguished road
I compiled an X11/curses version from the shell easily, and if you just want an OSX version to play, check rephial.org. There's a precompiled X version there.
mavfin is offline   Reply With Quote
Old November 8, 2007, 10:31   #4
TreeFrog
Rookie
 
Join Date: Nov 2007
Posts: 5
TreeFrog is on a distinguished road
Quote:
Originally Posted by mavfin View Post
I compiled an X11/curses version from the shell easily, and if you just want an OSX version to play, check rephial.org. There's a precompiled X version there.
Yeah I tried that one but I think the graphics are broken in it - at least I couldn't get them to work.

Compiling vanilla from source provides a working carbon version with graphics which was what I was after.
TreeFrog is offline   Reply With Quote
Old November 8, 2007, 14:58   #5
zaimoni
Knight
 
zaimoni's Avatar
 
Join Date: Apr 2007
Posts: 590
zaimoni is on a distinguished road
Quote:
Originally Posted by TreeFrog View Post
I get this when compiling vanila 3.0.9 on OS X 10.4.10 (Intel and PPC):

CC main-gcu.c
In file included from main-gcu.c:63:
/usr/include/ncurses.h:335: error: parse error before 'bool'
/usr/include/ncurses.h:337: error: parse error before '_leaveok'
/usr/include/ncurses.h:338: error: parse error before '_scroll'

Looks like it's something to do with stdbool, configure seemed to think it was okay:

checking for dirent.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes

Any ideas what to do to fix it?
The XOpen Curses spec isn't C99 friendly -- the C99 stdbool collides with the bool definitions required by curses.

I have similar problems with older versions of PDCurses (but not 3.3). My workaround was to adjust the curses headers to do things right, then rebuild curses before attempting to use it.

Inspecting PDCurses 3.3...may want to fix my local copy up eventually, as a sufficiently competent C preprocessor in C++ mode should explicitly error when asked to #define a reserved word. [The spec says "undefined behavior" in this case for both C and C++, but bool is reserved only in C++.]
zaimoni is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[NPP] Compiling on Mac OS X chem Variants 10 January 6, 2009 22:40
Rod/wand/staff failure rates? Geofferic Vanilla 2 October 22, 2007 06:38
Sangband and Oangband for Mac? Corydon Variants 3 July 27, 2007 22:27


All times are GMT +1. The time now is 01:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.