Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old August 14, 2007, 17:52   #1
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 117
TJA is on a distinguished road
Linux compiling under SuSE 9.3

Hello,
i just tried ./configure and make and got the following:

Code:
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 what could be wrong?
TJA is offline   Reply With Quote
Old August 14, 2007, 18:06   #2
Daven_26d1
Adept
 
Daven_26d1's Avatar
 
Join Date: Jun 2007
Location: North of England.
Posts: 211
Daven_26d1 is on a distinguished road
Well, you could try updating ncurses, 9.3 is a fairly old build.

Before you do that though, try cding to /src and running
Code:
make -f Makefile.std
not forgetting the capital M in Makefile. That way may or may not work for you.
__________________
You sold a Broken Sword (1d2) (-2,-4) {average} (j) for 1 gold.
The shopkeeper howls in agony!
You say "Dude, the clue is in the name...".
Daven_26d1 is offline   Reply With Quote
Old August 14, 2007, 22:33   #3
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 117
TJA is on a distinguished road
Now, to be honest SuSE 9.3 may not be brand new, but surely young enough to compile an Roguelike game, donīt you think?

Thanx for you tip, it work partly:

Code:
make -f Makefile.std
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-file.o -c z-file.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-form.o -c z-form.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-rand.o -c z-rand.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-term.o -c z-term.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-type.o -c z-type.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-util.o -c z-util.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-virt.o -c z-virt.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-gcu.o -c main-gcu.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-sdl.o -c main-sdl.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o snd-sdl.o -c snd-sdl.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-x11.o -c main-x11.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-xaw.o -c main-xaw.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-gtk.o -c main-gtk.c
gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP  -o angband birth.o cave.o cmd0.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o dungeon.o files.o generate.o init1.o init2.o load.o melee1.o melee2.o monster1.o monster2.o obj-info.o object1.o object2.o randart.o randname.o pathfind.o signals.o save.o spells1.o spells2.o squelch.o store.o tables.o ui.o use-obj.o util.o variable.o wizard1.o wizard2.o x-spell.o xtra1.o xtra2.o z-file.o z-form.o z-rand.o z-term.o z-type.o z-util.o z-virt.o main.o main-gcu.o main-sdl.o snd-sdl.o maid-x11.o main-x11.o main-xaw.o main-gtk.o  -lX11 -lncurses
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [angband] Error 1
Then i tried to run configure again, disabling everything beside curses:

Configuration:

Install path: /usr/local
lib/ path: ./lib/

-- Frontends --
- Curses Yes
- GTK 2.x Disabled
- X11 Disabled
- SDL Disabled


Still those errors:
Code:
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
I have those versions:

ncurses-devel-5.4-68
ncurses-5.4-68


Which curses version is needed?!?

Last edited by TJA; August 14, 2007 at 22:45.
TJA is offline   Reply With Quote
Old August 15, 2007, 00:01   #4
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,947
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by TJA View Post
Now, to be honest SuSE 9.3 may not be brand new, but surely young enough to compile an Roguelike game, donīt you think?


I have those versions:

ncurses-devel-5.4-68
ncurses-5.4-68


Which curses version is needed?!?
ncurses 5.5. (Not that I realised this before release; still, I don't really expect Unix users to be using three-year old package versions. )
takkaria is offline   Reply With Quote
Old August 15, 2007, 00:16   #5
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 117
TJA is on a distinguished road
Now, itīs a freshly set up root-Server at server4you.de


BTW, this is the main problem of Linux - it is moving too fast and has very often no back-compatibility.
If you want to compile "something", you need to download and compile 1 to 20 other kits and libraries and tools more.
Solaris, for example, is much more professional in such things ...

*sob*

Thanx for your reply - i will try to get a newer ncurses
TJA is offline   Reply With Quote
Old August 15, 2007, 00:26   #6
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,947
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by TJA View Post
Now, itīs a freshly set up root-Server at server4you.de


BTW, this is the main problem of Linux - it is moving too fast and has very often no back-compatibility.
Well, in this case, it's because ncurses uses its own boolean type of some kind, I believe, and the later versions allow you to stop it doing that; previous versions don't. I'm not sure you can be backward-compatible in this way.

Quote:
If you want to compile "something", you need to download and compile 1 to 20 other kits and libraries and tools more.
Solaris, for example, is much more professional in such things ...
Well, I use Debian; if I want to compile something, I just apt-get the appropriate dev libraries. Solaris has the advantage of being pretty much centrally administered, where most things are developed by Sun. (Of course, this comes with bad side-effects, like really poor package management.)
takkaria is offline   Reply With Quote
Old August 15, 2007, 00:35   #7
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 117
TJA is on a distinguished road
Yep, about Sun and their System V packages, you are right, of course.
But it works "somehow" and can even be patched

Anyway, i cannot find a *ncurses*5.5.* RPM for SuSE 9.3 on any page :-(
And i surely will not begin to compile whatever else may be needed.
Sad thing.

Thanx for your time!

And GOOD job, as far as i saw from the Windows version!
Thanx for continuing work on Vanilla Angband!
TJA is offline   Reply With Quote
Old August 15, 2007, 09:54   #8
Daven_26d1
Adept
 
Daven_26d1's Avatar
 
Join Date: Jun 2007
Location: North of England.
Posts: 211
Daven_26d1 is on a distinguished road
The errors you got when compiling via make -f..etc is a problem I encountered on SuSE 10.1 with v3.0.8, tho the issue is fixed for me in v3.0.9.

Basically, the makefile hasn't detected your x-libs, or has incorrectly used the path.
Assuming that novell didn't change the tree structure between 9.3 & 10.1, see:

http://angband.oook.cz/forum/showthread.php?t=132

for a workaround that should get you up and running. Beware that I had a typo in the path I reported, but pav slyly corrects me right underneath my fix.
__________________
You sold a Broken Sword (1d2) (-2,-4) {average} (j) for 1 gold.
The shopkeeper howls in agony!
You say "Dude, the clue is in the name...".
Daven_26d1 is offline   Reply With Quote
Old August 15, 2007, 11:45   #9
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 117
TJA is on a distinguished road
Thanx for this tip, Daven!

My ncurses libraries are here:

Code:
rpm -qil ncurses-devel-5.4-68 ncurses-5.4-68 | grep ^\/ | grep lib | grep ncurs
/usr/lib/libncurses++.a
/usr/lib/libncurses++w.a
/usr/lib/libncurses.a
/usr/lib/libncurses.so
/usr/lib/libncursesw.so
/lib/libncurses.so.5
/lib/libncurses.so.5.4
/usr/lib/libncursesw.so.5
/usr/lib/libncursesw.so.5.4

So, i changed Makefile.std like this:

Code:
LIBS = -L/usr/X11R6/lib -L/usr/lib -L/lib
That did not help ...


Code:
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
This does not look like "just a wrong ncurses" ...

:-O

I will try more and report here
TJA is offline   Reply With Quote
Old August 15, 2007, 11:59   #10
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,947
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by TJA View Post
This does not look like "just a wrong ncurses" ...
It is. Note all the errors occur around use of "bool". I have a fix for you, though: re-run "./configure", run "make clean"; edit autoconf.h in src/ and remove the lines mentioning HAVE_STDBOOL_H; recompile. It should work fine.
takkaria 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
Trouble compiling angband 3.0.9 on linux RastaRuedi Vanilla 2 August 1, 2007 17:28


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


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