type

sdl-config --libs

you should get back a listing like:

-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread

What the error message says is quite clear, it can't find SDL and it is first
checking /usr/local/lib, and then looking in /usr/lib.  If you have installed
SDL in /usr/local/lib, you may have to add /usr/local/lib to your
/etc/ld.so.conf
file and run /sbin/ldconfig to update your linker's search paths.

If you installed SDL, and SDL-dev rpms, running

rpm -q -i -l SDL

will print out the package description and list the installation
location of each
of the files for that package.  Based on the error message I would guess you
may have two versions of the SDL libraries installed, one in /usr/local/lib and
another in /usr/lib, and the linker is trying to link against one
different from the
one cc compiled with.  That is to say, cc is linking against the one
in /usr/local/lib
and the linker ld is linking against the one in /usr/lib, because
/usr/local/lib isn't
registered with your linker.

Dave

On Thu, 25 Nov 2004 20:21:51 +0000, javier bellido
<[EMAIL PROTECTED]> wrote:
> Well, thanks for your earlier help but I'm still in troubles with
> sdl_perl.
> 
> I tried to build the trunk snapshot
> 
> "perl Build.PL" goes ok but when trying to build I've got the next
> error:
> 
> choco:/home/pelle/descargas/trunk# ./Build
> cc -shared -L/usr/local/lib -o blib/arch/auto/SDL_perl/SDL_perl.so
> src/SDL_perl.o -L/usr/lib -lSDL -lpthread -lpng -lSDL -lSDL_ttf
> -lSDL_image -lSDL_gfx -ljpeg
> /usr/bin/ld: no se puede encontrar -lSDL -lpthread
> collect2: ld devolvió el estado de salida 1
> error building .so file from 'src/SDL_perl.o'
> at /usr/share/perl5/Module/Build/Base.pm line 2505.
> 
> I've installed all the SDL and SDL-dev stuff but nothing changes.
> 
> Any ideas?
> 
> --
> javier bellido <[EMAIL PROTECTED]>
> 


-- 
"The universal aptitude for ineptitude makes any human accomplishment
an incredible miracle"

-Stapp's Ironical Paradox

Reply via email to