SDL and purify

does SDL work with purify?
if yes, which version does

I’ve got (Purify 4.2 Solaris 2),

and I get this error:

Purify engine: While processing file
/automount/intern.alphard/scratch/klimek/SDL/lib/libSDLx11.so.0.9.12: Error:
Stab relocated relative to undefined symbol. I

Manuel

does SDL work with purify?
if yes, which version does

I’ve got (Purify 4.2 Solaris 2),

and I get this error:

Purify engine: While processing file
/automount/intern.alphard/scratch/klimek/SDL/lib/libSDLx11.so.0.9.12: Error:
Stab relocated relative to undefined symbol. I

Try linking with a statically built version of SDL
(cd obj/x11; make static; cp libSDL.a …/…/lib)
and add -D_SDL_STATIC_LIB to your compile flags

If you find memory leaks or other problems, please let me know! :slight_smile:

Thanks,
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

-----BEGIN PGP SIGNED MESSAGE-----

hmmm, purify works and shows this:

  ABR: Array bounds read
  This is occurring while in:
        TSurface::~TSurface() [libwinlibs.a]
        TBlit_Border::~TBlit_Border() [libwinlibs.a]
        TWinGroup::~TWinGroup() [libwinlibs.a]
        TIron_Window::~TIron_Window() [zoomwindow.o]
        TZoomWindow::~TZoomWindow() [zoomwindow.o]
        TWinGroup::~TWinGroup() [libwinlibs.a]
  Reading 4 bytes from 0x1dc80c in the heap.
  Address 0x1dc80c is 5 bytes past end of a malloc'd block at 0x1dc800 of 8 bytes.
  This block was allocated from:
        malloc         [rtlib.o]
        SDL_AllocFormat [SDL_pixels.c:146]
           
                           case 8:
                                   /* Create an empty 256 color palette */
        =>                         format->palette = (SDL_Palette *)malloc(
                                                                   sizeof(SDL_Palette));
                                   if ( format->palette == NULL ) {
                                           SDL_FreeFormat(format);
        SDL_AllocSurface [SDL_surface.c:89]
                           Bmask = screen->format->Bmask;
                           Amask = screen->format->Amask;
                   }
        =>         surface->format = SDL_AllocFormat(depth, Rmask, Gmask, Bmask, Amask);
                   if ( surface->format == NULL ) {
                           free(surface);
                           return(NULL);
        SDL_VideoInit  [SDL_video.c:106]
        SDL_Init       [SDL.c:71]
        TScreenSurface::TScreenSurface(unsigned int,unsigned int,unsigned char,unsigned int,SDL_Color*,unsigned int,unsigned int) [libwinlibs.a]

mayhap it helps you …
Manuel
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: Jlb7c4YEYrIKY710APOc+pW1wIF3p+bB

iQEVAwUBNy3rvUcorXF6JXhtAQEnJwf/aPSKnhDqxsOgOT4slvx36X0g+2iISM1F
hkmbA4LTuFvnbsvsw3SdXnDfrj/tAb89g0oZnEUe/t3dudB/Aaxu8vuUEBsq6b12
zHj6p2tJyn67EobH3BtNhybF3hP910lsJLmH/EM1639y0pWkRGwJTpOKIpCip7eh
tp3g8Xa/9PRfI+scXO/MUAUaSjNCpPbhqA06ShP9e7cSs/etja0uNYGxGw6X9AxJ
HldySvjsmRwC7JXsaWUpqsZvoOHsZlcVjDiVwKADc8xLylikQ0GoYJCsauIF+p9J
dnqMRlnVmH8GoZOMHQRKUSdGUGm5S4AI3VsfJJuk/PKy9WdmI2pKaA==
=4N0r
-----END PGP SIGNATURE-----