![]() |
#1 |
Prophet
Join Date: Mar 2008
Posts: 2,755
![]() |
1375 parse error
I am using linux. I just used svn to check out the trunk using "svn checkout svn://rephial.org/angband/trunk", was informed it was 1375, did ./autogen.sh and ./configure and make and cp src/angband .
No errors or warnings so far. When I run the game, I get a parse error on line 58 of p_race.txt. I did a diff against the last version I checked out [1224], and that file does not seem to have changed. I never understood the txt parsing code. I tried running as root, and tried after removing ~/.angband, same parse error so I doubt it is a problem with utility files. Any ideas? Do I just have to learn and debug the parse code? |
![]() |
![]() |
![]() |
#2 |
Angband Devteam member
|
Very weird. I've been compiling and running under Linux repeatedly for ages, and I've never had this problem.
Line 58 of p_race.txt is R:0:0:0:0:0:10:0:0:0:0 As you say, it doesn't seem to have changed. Something odd is going on. I can't reproduce this. Which main-xxx engine do you use - main-x11? If you do ./configure with no options I think only x11 and gcu are built by default. I don't get this happening with any engine (gcu, x11, gtk, sdl). Sorry not to be more help. |
![]() |
![]() |
![]() |
#3 |
Prophet
Join Date: Mar 2008
Posts: 2,755
![]() |
Well, I figured out half of my problem. I had an old p_race.txt under /usr/share/... that was being read instead of the one in the trunk. Unfortunately, I removed the usr/share stuff, and now it won't run because it cannot find the files. I guess I need to use some configure option to tell it not to look there, but I didn't have to do that in the old days.
|
![]() |
![]() |
![]() |
#4 | |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
Quote:
__________________
takkaria whispers something about options. -more- |
|
![]() |
![]() |
![]() |
#5 | |
Prophet
Join Date: Mar 2008
Posts: 2,755
![]() |
Quote:
The configure script even with either of those options lists the install path and lib/ path as /usr/local and /usr/local/share/angband I guess I could try to mess with --libdir, but when I tried --libdir=. it wanted an absolute path and I was hoping to be able to move the entire tree around without breaking the executable. Is there any way to get the behavior that the program looks down from the executable, perhaps using argv[0] to get the exectuable's location? Would that break anything in windows? Would anyone beside me be interested in such a thing? |
|
![]() |
![]() |
![]() |
#6 | |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
Quote:
__________________
takkaria whispers something about options. -more- |
|
![]() |
![]() |
![]() |
#7 |
Prophet
Join Date: Mar 2008
Posts: 2,755
![]() |
I tried that, didn't work, still looking for lib in /usr/local/share/angband. That's both according to the final output from configure, and also the error message at startup.
I gave up and did a make install, after configuring --with-setgid=games , and it starts and saves without errors, but the next time I run it doesn't seem to open the savefile /usr/local/share/angband/save/1000.Eddie [which does get written and is readable inside a directory readable to games]. How perplexing. |
![]() |
![]() |
![]() |
#8 |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
That's bizarre. I can't reproduce that at all.
__________________
takkaria whispers something about options. -more- |
![]() |
![]() |
![]() |
#9 |
Prophet
Join Date: Mar 2008
Posts: 2,755
![]() |
I wonder if there is some lingering trace from old installs, or if maybe somehow my /bin/sh is noncompliant in some strange way. Unfortunately the configure script is long and shell programming was never a strong point with me. I may give up and try to fix my problems by hacking the c code.
|
![]() |
![]() |
![]() |
#10 | |
Prophet
Join Date: Mar 2008
Posts: 2,755
![]() |
Quote:
Someone care to teach me some unix? I have angband running sgid games. It fails to open the savefile, WHICH IT WROTE EARLIER, when the directory has execute set only for games. Code:
linux:/usr/local/share/angband/save # ll total 80 d---rwx--- 2 root games 144 2009-04-23 16:36 . Code:
linux:/usr/local/share/angband/save # chmod o+x . linux:/usr/local/share/angband/save # ll total 80 d---rwx--x 2 root games 144 2009-04-23 19:12 . What the heck is going on? |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile error - latest Vanilla Angband SVN | PaulBlay | Development | 3 | April 19, 2009 21:20 |
Macintosh OSX 3.0.9b: Out of memory error? | Skyknight | Vanilla | 4 | June 8, 2008 04:42 |
SAngband Error | Prismatic | Variants | 20 | May 20, 2008 18:26 |
[Norseband] Help needed to untangle p_info error! | ISNorden | Variants | 5 | April 21, 2008 09:08 |