[CF-Devel] Crossfire on SuSE

Andreas Vogl andi.vogl at gmx.net
Thu Mar 1 09:26:45 CST 2001


Running Crossfire on SuSE linux (7.x) still has a few serious problems.
Considered that SuSE includes Crossfire in their distribution,
I think it would be extremely rewarding to make version 1.0 run
bug-free on SuSE. If doing so, we can contact and convince the SuSE-team
to include CF version 1.0 in their next distribution.
Many people (myself included) get to know crossfire by discovering it
in their SuSE distribution.

Bug #1: cfclient crashes when resizing. This problem has been GREATLY
improved
with the last patch on x11.c (Whoever did that one: Great work!).
The client no longer crashes on expose events (e.g. switching screens),
and it crashes only when I do big resizing and fast. (Before it used
to crash instantly when I clicked on the window border).
Still, it would be nice if this problem was 100% cleaned up. Here is
a gdb core dump trace for the "crash-on-window-resize" with latest version:

Program received signal SIGSEGV, Segmentation fault.
0x401952f9 in chunk_free (ar_ptr=0x402202c0, p=0x80e7880) at malloc.c:3097
3097    malloc.c: File or directory not found.
(gdb) where
#0  0x401952f9 in chunk_free (ar_ptr=0x402202c0, p=0x80e7880)
    at malloc.c:3097
#1  0x401951cf in free () at malloc.c:2952
#2  0x80564b5 in resize_list_info (l=0x80abd40, w=269, h=326)
    at x11.c:1791
#3  0x8057f71 in check_x_events () at x11.c:2520
#4  0x8051fa2 in event_loop () at x11.c:360
#5  0x804a8a3 in main (argc=1, argv=0xbffff844) at client.c:291

---------
Bug #2: cfclient doesn't compile due to SuSE sound system. Fixing this
problem is a must-do before 1.0 IMHO. (I personally get around the problem
by replacing cfsndserv.c with an empty main routine).
It would already suffice to do a check for SuSE system, and completely
disable sound for SuSE. I don't care about sound, but the client must
compile.
Here is an excerpt of the compile logs for cfclient:

>
     
     ./configure
     
     
[...]
Extras:
Xpre: -lSM -lICE
checking for main in -lasound... yes
checking for alNewConfig in -laudio... no
checking for sys/soundcard.h... yes
checking for sys/audioio.h... no
Using ALSA sound system
[...]

>
     
     make
     
     
[...]
gcc -o cfclient client.o commands.o init.o item.o metaserver.o misc.o
newsocket.o player.o sound.o
x11.o  -lpng -lm  -lXpm -L/usr/X11R6/lib -lX11 -lXext
gcc -g -O2 -DALSA_SOUND -DNEW_SOUND -Wall   -I. -I/usr/X11R6/include -c
cfsndserv.c
cfsndserv.c:56: sys/asoundlib.h: File or directory not found
make: *** [cfsndserv.o] Error 1

---------
Bug #3: Crossedit crashes when closing an item-window. I'd say fixing this
one has least priority. It is probably most work to fix and it only affects
"map-makers", not "gamers". I consider it bad but tolerable for version 1.0.

Thanks to everybody working on the bugs above. =)

Andreas V.


    
    


More information about the crossfire mailing list