Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old May 8, 2008, 12:39   #1
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 114
TJA is on a distinguished road
Compiling 3.0.9b under SuSE 9.3 ...

Hello,
trying to compile the new Vanilla under SuSE 9.3 Linux, i got the following error:

Code:
./configure --disable-x11
...

        CC     main-gcu.c
In file included from main-gcu.c:63:
/usr/include/ncurses.h:337: error: syntax error before "bool"
/usr/include/ncurses.h:339: error: syntax error before "_leaveok"
/usr/include/ncurses.h:340: error: syntax error before "_scroll"
/usr/include/ncurses.h:341: error: syntax error before "_idlok"
/usr/include/ncurses.h:342: error: syntax error before "_idcok"
/usr/include/ncurses.h:343: error: syntax error before "_immed"
/usr/include/ncurses.h:344: error: syntax error before "_sync"
/usr/include/ncurses.h:345: error: syntax error before "_use_keypad"
/usr/include/ncurses.h:372: error: syntax error before '}' token
/usr/include/ncurses.h:393: error: syntax error before "is_term_resized"
/usr/include/ncurses.h:399: error: syntax error before "bool"
/usr/include/ncurses.h:521: error: syntax error before "can_change_color"
/usr/include/ncurses.h:525: error: syntax error before "bool"
/usr/include/ncurses.h:557: error: syntax error before "has_colors"
/usr/include/ncurses.h:558: error: syntax error before "has_ic"
/usr/include/ncurses.h:559: error: syntax error before "has_il"
/usr/include/ncurses.h:561: error: syntax error before "bool"
/usr/include/ncurses.h:562: error: syntax error before "bool"
/usr/include/ncurses.h:563: error: syntax error before "bool"
/usr/include/ncurses.h:577: error: syntax error before "bool"
/usr/include/ncurses.h:578: error: syntax error before "isendwin"
/usr/include/ncurses.h:579: error: syntax error before "is_linetouched"
/usr/include/ncurses.h:580: error: syntax error before "is_wintouched"
/usr/include/ncurses.h:582: error: syntax error before "bool"
/usr/include/ncurses.h:584: error: syntax error before "bool"
/usr/include/ncurses.h:586: error: syntax error before "bool"
/usr/include/ncurses.h:645: error: syntax error before "bool"
/usr/include/ncurses.h:650: error: syntax error before "bool"
/usr/include/ncurses.h:677: error: syntax error before "bool"
/usr/include/ncurses.h:703: error: syntax error before "bool"
/usr/include/ncurses.h:1413: error: syntax error before "wenclose"
/usr/include/ncurses.h:1415: error: syntax error before "wmouse_trafo"
/usr/include/ncurses.h:1415: error: syntax error before "bool"
/usr/include/ncurses.h:1416: error: syntax error before "mouse_trafo"
/usr/include/ncurses.h:1416: error: syntax error before "bool"
main-gcu.c: In function `Term_xtra_gcu_alive':
main-gcu.c:290: error: dereferencing pointer to incomplete type
main-gcu.c:290: error: dereferencing pointer to incomplete type
main-gcu.c:290: warning: left-hand operand of comma expression has no effect
main-gcu.c: In function `Term_nuke_gcu':
main-gcu.c:383: error: dereferencing pointer to incomplete type
main-gcu.c:383: error: dereferencing pointer to incomplete type
main-gcu.c:383: warning: left-hand operand of comma expression has no effect
main-gcu.c: In function `Term_xtra_gcu':
main-gcu.c:505: error: dereferencing pointer to incomplete type
main-gcu.c: In function `Term_text_gcu':
main-gcu.c:616: error: dereferencing pointer to incomplete type
main-gcu.c:630: error: dereferencing pointer to incomplete type
main-gcu.c: In function `init_gcu':
main-gcu.c:712: error: `bool' undeclared (first use in this function)
main-gcu.c:712: error: (Each undeclared identifier is reported only once
main-gcu.c:712: error: for each function it appears in.)
main-gcu.c:712: error: syntax error before "use_big_screen"
main-gcu.c:720: error: `use_big_screen' undeclared (first use in this function)
make[2]: *** [main-gcu.o] Error 1
make[1]: *** [build] Error 2
make: *** [build] Error 2
Any idea?!?
:-O
TJA is offline   Reply With Quote
Old May 8, 2008, 13:10   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,189
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by TJA View Post
Hello,
trying to compile the new Vanilla under SuSE 9.3 Linux, i got the following error:

Code:
./configure --disable-x11
...

        CC     main-gcu.c
In file included from main-gcu.c:63:
/usr/include/ncurses.h:337: error: syntax error before "bool"
There are apparently some silly games that need to be played with defining the correct version bool, and it looks like you have ended up without it defined. configure should have sorted that out; you could try commenting out things like the
Code:
#undef bool
in main-gcu.c and see if that helps.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old May 8, 2008, 13:13   #3
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 114
TJA is on a distinguished road
Thanx for the idea, Nick!

While trying to do that, i found the following lines in main-gcu.c:

/*
* Hack -- play games with "bool" and "term"
*/
#undef bool


:-O

I REMOVED that "hack" line - and everything went well!

So, the "hack" is the problem and should be removed or changed!

Hint to the maintainer
TJA is offline   Reply With Quote
Old May 8, 2008, 13:16   #4
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 114
TJA is on a distinguished road
The next strange thing is, that an "make install" did not install to /usr/local/... as one would assume!

Even an explicite "./configure --prefix=/usr/local" did not change that behavior!

Could not fix that so far ....
TJA is offline   Reply With Quote
Old May 8, 2008, 13:53   #5
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 114
TJA is on a distinguished road
I found, that a changed prefix does install something: Three empty directories will get created at the right place:

/tmp/lib
/tmp/include
/tmp/include/angband


But nothing more!

:-O
TJA is offline   Reply With Quote
Old May 8, 2008, 15:06   #6
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 114
TJA is on a distinguished road
In mk/rules.mk at least two variables are set wrong:

DATA_PATH = ./lib/
bindir = ..


This way, the binary will be moved up once and the other data will be installed to ./lib instead of the real $prefix ...




But changing the DATA_PATH does not install the files to the new path - i just cannot debug this :-(

*sob*
TJA is offline   Reply With Quote
Old May 9, 2008, 09:17   #7
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 114
TJA is on a distinguished road
Nobody else has this problem?
Or nobody cares?

:-O
TJA is offline   Reply With Quote
Old May 9, 2008, 20:04   #8
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quote:
Originally Posted by TJA View Post
Nobody else has this problem?
Or nobody cares?

:-O
You might try the newsgroup. I for one don't look here that often.
I use SUSE 10.0 at the moment. I think I had some problems,
and might have posted them. I think they are fixed now.
http://groups.google.com/group/rec.g...eab2cb3a089c15


IMO you are making a mistake mucking with the paths. Make a directory
/usr/local/src/Angband and untar and do the make there as root with defaults.
Then write a script in /usr/local/bin that does a cd to the directory with the
copied executable and then invokes it.

You may have to muck about with permissions to let user write to lib/save etc.
Whether you want to go setgid or open up the dirs is up to you.

Once you have a working install you can think about reinstalling with different
variables in the makefile.


Or perhaps you should just install in a subdir of your home directory.
Do you have so many users that multiple installs is a problem?

Don't bother answering that rhetorical question. I'll probably miss your post.
If no one here helps, try the newsgroup. There are knowledgable people there.
PowerDiver is offline   Reply With Quote
Old May 9, 2008, 20:17   #9
roustk
Adept
 
Join Date: Dec 2007
Posts: 167
roustk is on a distinguished road
Quote:
Originally Posted by TJA View Post
The next strange thing is, that an "make install" did not install to /usr/local/... as one would assume!

Even an explicite "./configure --prefix=/usr/local" did not change that behavior!
I don't want to dig into it too deeply right now, but there is a compile-time flag for selecting between a single-user and multi-user directory structure. It is possible that this flag is recognized by make (or configure) to determine where to put the executable.

Have you checked the rephial page on compiling? http://rephial.org/wiki/Compiling

Some weeks ago I managed to get it to install into /usr/local/bin for my BSD (well, MacOS) box. config.log reports that I used "./configure --with-private-dirs", and it looks like that is probably the right flag (timestamp for config.log is 15:40, /usr/local/bin/angband is 15:41).

Kevin
roustk is offline   Reply With Quote
Old May 10, 2008, 19:51   #10
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 114
TJA is on a distinguished road
Nope, sadly, there is no such configuration flag :-(

Anyway, the configuration just does not work - of course, i can just copy files where i need them, but the point is, that the package is broken and should be fixed.

I mean, this is Vanilla Angband and the configuration does not work - not a Good Thing :-(
I try to point Andrew Sidwell on that
TJA 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 23:40
Compiling on Linux... HowTo? MKula Vanilla 22 March 12, 2008 18:40
Compiling ToME TJA Variants 6 October 31, 2007 13:32
Windows Compiling and Makefiles APWhite Vanilla 11 August 22, 2007 22:22
Linux compiling under SuSE 9.3 TJA Vanilla 21 August 16, 2007 08:49


All times are GMT +1. The time now is 04:49.


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