Complete.Org: Mailing Lists: Archives: freeciv-dev: June 1999:
Re: [Freeciv-Dev] Running with Xaw (PR#20)
Home

Re: [Freeciv-Dev] Running with Xaw (PR#20)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Running with Xaw (PR#20)
From: schaefer@xxxxxx
Date: Mon, 14 Jun 1999 03:23:49 -0700 (PDT)

dwp@xxxxxxxxxxxxxx wrote:
> 
> Peter Schäfer wrote:
> 
> > The left 3 buttons on top, the menu bar, are clustered together to the left,
> > over the map window.
> >
> > The options menu gives the warning
> > Warning: Cannot convert string "optioncenpoplabel" to type Widget,
> > and looks pretty .. default after that, with all buttons on top of each 
> > other.
> 
> I bet you have an old Freeciv resources file somewhere
> which is being used.
> 
> -- David

You are right; I have got a wrong application resource file;
Wonder what is the right way to handle this is ?

So I tried running xrdb over ./data/Freeciv
which doesn't seem to work well( wonder whether it should ? ):

xrdb: colon missing on line 81, ignoring line
xrdb: colon missing on line 82, ignoring line
xrdb: colon missing on line 1092, ignoring line
xrdb: colon missing on line 2294, ignoring line
xrdb: colon missing on line 2295, ignoring line
xrdb: colon missing on line 2296, ignoring line
xrdb:  "<BtnDown>" on line 2358 overrides entry on line 2312
xrdb:  "<Key>g" on line 2359 overrides entry on line 2336
xrdb:  "<Key>Tab" on line 2360 overrides entry on line 2313
xrdb:  "<Key>KP_8" on line 2361 overrides entry on line 2315
xrdb:  "<Key>KP_9" on line 2362 overrides entry on line 2317
xrdb:  "<Key>KP_6" on line 2363 overrides entry on line 2319
xrdb:  "<Key>KP_3" on line 2364 overrides entry on line 2321
xrdb:  "<Key>KP_2" on line 2365 overrides entry on line 2323
xrdb:  "<Key>KP_1" on line 2366 overrides entry on line 2325
xrdb:  "<Key>KP_4" on line 2367 overrides entry on line 2327
xrdb:  "<Key>KP_7" on line 2368 overrides entry on line 2329
xrdb:  "<Key>KP_5" on line 2369 overrides entry on line 2331
xrdb:  "<Btn2Down>" on line 2470 overrides entry on line 2457
xrdb:  "<Btn2Up>" on line 2471 overrides entry on line 2458
xrdb:  "<BtnDown>" on line 2477 overrides entry on line 2358

After that  when starting ./civ
Warning: Color name "black " is not defined
Warning: Cannot convert string "True " to type Boolean

At this point, I discovered that I seemed to somehow have appended spaces to
all lines by mistake .. Hope you are nonetheless entertained by the email :-)

Now, please do excuse me if you think I'm in -pedantic mode .. .


Even more playing around, having an empty global "Freeciv" resource
( with the idea to override for several versions/users ), 
and not setting anything else, the programs segfaults:

(gdb) where
#0  0x40196851 in index () at soinit.c:27
#1  0xbffff4bc in ?? ()
#2  0x8058f52 in ui_main (argc=1, argv=0xbffff58c) at gui_main.c:288
#3  0x804cc55 in main (argc=1, argv=0xbffff58c) at civclient.c:111
(gdb) up
#1  0xbffff4bc in ?? ()
(gdb) list
soinit.c:22: No such file or directory.
(gdb) up
#2  0x8058f52 in ui_main (argc=1, argv=0xbffff58c) at gui_main.c:288
288       loglevel = log_parse_level_str(appResources.loglevel_str);


Probably some kind of return value might be checked 
and an error msg printed.

  XtGetApplicationResources(toplevel, &appResources, resources,
                            XtNumber(resources), NULL, 0);

  loglevel = log_parse_level_str(appResources.loglevel_str);
  if (loglevel==-1) {
    exit(1);
 


-- 
Peter Schaefer - schaefer@xxxxxx, schaefer@xxxxxx
"FermaT, by Software Migrations Ltd, is an industrial strength program
transformation system used to migrate IBM 370 Assembler modules into 
equivalent readable and maintainable COBOL programs, and to help solve 
the year 2000 challenge for IBM 370 Assembler code."


[Prev in Thread] Current Thread [Next in Thread]