Index: [thread] [date] [subject] [author]
  From: Denis Oliver Kropp <dok@fischlustig.de>
  To  : ggi-develop@eskimo.com
  Date: Tue, 4 May 1999 20:38:50 +0200

Dynamic linking problem?

Hi,

I did a nice progress on ClanLib´s ggi target,
it uses the right input now and has doublebuffering
support, only direct buffers are used right now.

I have a problem using Xlib or dga target.
When starting the game it gets a SIGSEGV.

I use glibc 2.1.1, libggi,clanbomber and clanlib
are linked with it, X is not.
That is not the problem, I think.
My friend does not have the new libc
and gets the same behaviour.

Below is the gdb and ldd output.

bye

-----------------------------------------------------------------------------

master:/home/dk/Clan/cb/clanbomber# gdb clanbomber
GNU gdb 4.17.m68k.objc.threads.hwwp.fpu.gnat
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-pc-linux-gnu"...
(gdb) r
Starting program: /home/dk/Clan/cb/clanbomber/clanbomber

ClanLib - the platform independent game sdk - Linux version.

Querying system configuration.
This version of ClanLib has the following display impls:

1. X11 implementation.
2. Svgalib implementation.
6. GGI implementation.
Go pick one: 6
Linux thread target has modified Unknown signal handling

Program received signal SIGSEGV, Segmentation fault.
0x403a43d3 in main_arena ()
(gdb) backtrace
#0  0x403a43d3 in main_arena ()
#1  0xbfff002b in ?? ()
#2  0x402fa716 in   ()
#3  0x403029a1 in fprintf ()
#4  0x401c48fa in   ()
#5  0x40442bf4 in GGIdlinit (vis=0x806bf38, args=0x0, argptr=0x0) at visual.c:81
#6  0x403b6f06 in _ggiAddDL (vis=0x806bf38, name=0xbfffe778 "xlib", args=0x0, argptr=0x0, type=1) at dl.c:135
#7  0x403b70e8 in _ggiOpenDL (vis=0x806bf38, name=0xbfffe778 "xlib", args=0x0, argptr=0x0) at dl.c:207
#8  0x403b7e2c in ggiOpen (driver=0xbffffc79 "xlib") at init.c:277
#9  0x403b7c68 in ggiOpen (driver=0x0) at init.c:203
#10 0x4006651c in CL_GGI_DisplayCard::CL_GGI_DisplayCard (this=0x8069250, card_no=0) at Layer1/Display/GGI/display_ggi.cpp:50
#11 0x40073c3a in CL_Implementation_GGI::add_display () at Layer1/System/Unix/implementation_ggi.cpp:54
#12 0x400740a0 in CL_System::init_display () at Layer1/System/Unix/init_linux.cpp:178
#13 0x804d872 in ClanBomberApplication::main (this=0x80673e0, argc=1, argv=0xbffffb44) at ClanBomber.cpp:45
#14 0x40074611 in main (argc=1, argv=0xbffffb44) at Layer1/System/Unix/init_linux.cpp:330
#15 0x402cccdf in   ()
(gdb)                                        

----------------------------------------------------

master:/home/dk/Clan/cb/clanbomber# ldd clanbomber
        libclanlayer1.so => /usr/local/lib/libclanlayer1.so (0x4001b000)
        libclanlayer2.so => /usr/local/lib/libclanlayer2.so (0x40091000)
        libclan.so => /usr/local/lib/libclan.so (0x40108000)
        libHermes.so.1 => /usr/local/lib/libHermes.so.1 (0x4017e000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40194000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401a0000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40244000)
        libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x40253000)
        libm.so.6 => /lib/libm.so.6 (0x40298000)
        libc.so.6 => /lib/libc.so.6 (0x402b5000)
        libclancommon.so => /usr/local/lib/libclancommon.so (0x403aa000)
        libgii.so.0 => /usr/local/lib/libgii.so.0 (0x403ac000)
        libggi.so.2 => /usr/local/lib/libggi.so.2 (0x403b4000)
        libvga.so.1 => /usr/lib/libvga.so.1 (0x403bf000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x4040b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libgg.so.0 => /usr/local/lib/libgg.so.0 (0x40436000)
        libdl.so.2 => /lib/libdl.so.2 (0x4043b000)                


--
Denis Oliver Kropp (dok)
+ Fischlustig +

ClanBomber, the kick ass game that uses kick ass Clanlib.
www.fischlustig.de/clanbomber	www.clanlib.org
(klopft sich auf die Schulter)

Index: [thread] [date] [subject] [author]