Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old April 23, 2009, 20:11   #1
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,755
PowerDiver is on a distinguished road
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?
PowerDiver is offline   Reply With Quote
Old April 23, 2009, 20:29   #2
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,060
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
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.
Magnate is offline   Reply With Quote
Old April 23, 2009, 22:32   #3
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,755
PowerDiver is on a distinguished road
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.
PowerDiver is offline   Reply With Quote
Old April 23, 2009, 23:15   #4
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,951
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
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.
Try using ./configure --with-private-dirs. That should sort your problem out.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old April 23, 2009, 23:50   #5
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,755
PowerDiver is on a distinguished road
Quote:
Originally Posted by takkaria View Post
Try using ./configure --with-private-dirs. That should sort your problem out.
No, that's not enough. I also tried --with-private-paths, did not work either. Is there a list of all of the configure options somewhere?

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?
PowerDiver is offline   Reply With Quote
Old April 24, 2009, 00:38   #6
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,951
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
No, that's not enough. I also tried --with-private-paths, did not work either. Is there a list of all of the configure options somewhere?

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?
./configure --with-noinstall may be closer to what you're after then. I need to make various changes to the configure buildsystem before release anyway, I'll try and make this all more intuitive and obvious.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old April 24, 2009, 01:39   #7
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,755
PowerDiver is on a distinguished road
Quote:
Originally Posted by takkaria View Post
./configure --with-noinstall.
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.
PowerDiver is offline   Reply With Quote
Old April 24, 2009, 01:43   #8
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,951
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
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.
That's bizarre. I can't reproduce that at all.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old April 24, 2009, 02:24   #9
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,755
PowerDiver is on a distinguished road
Quote:
Originally Posted by takkaria View Post
That's bizarre. I can't reproduce that at all.
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.
PowerDiver is offline   Reply With Quote
Old April 24, 2009, 04:34   #10
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,755
PowerDiver is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
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.

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 .
in this case above, angband on startup cannot load the savefiles in this directory. Mind you, it was able to write the savefile in the first place. When I add the execute bit

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 .
now it starts up just fine loading the savefile in this directory.


What the heck is going on?
PowerDiver 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
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


All times are GMT +1. The time now is 21:10.


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