On Wed, Nov 28, 2001 at 12:20:19PM +0100, Adrian K. wrote:
> 
> sdl-config --libs
> -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread
> 
> 
> configure:9384: gcc -o conftest -g -O2 -march=i586 -ffast-math  -pipe  
>-I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT  -Wall -Wno-unused  
>-L/usr/X11R6/lib -L/usr/lib conftest.c  -L/usr/local/lib -Wl,-rpath,/usr/local/lib 
>-lSDL -lpthread 1>&5
> /usr/i386-slackware-linux/bin/ld: warning: libaudiofile.so.0, needed by 
>/usr/lib/libSDL.so, not found (try using -rpath or -rpath-link)
> /usr/lib/libesd.so.0: undefined reference to `afGetSampleFormat'
> /usr/lib/libesd.so.0: undefined reference to `afReadFrames'
> /usr/lib/libesd.so.0: undefined reference to `afGetChannels'

Here is your problem  

Basicaly SDL needs ESD - ESD needs audiofile - but is linked incorrectly
as it contains links for this library without the reference to this library.

As Eugene seems to be fun of Slackware he should probably try to provide
some solution for this - probably the test for SDL should be made
more complicated and should be checking which libraries has been 
used to create the SDL library you are actually trying to use - but
as I'm not the fan of this 'voodoo' solution - don't expect I'll
be doing this.

There is relatively simplier solution - edit  /usr/local/bin/sdl-config

find section with --libs 
(should look like this:

        --libs)
          libdirs="-L${exec_prefix}/lib"
          echo $libdirs -lSDL -lpthread ..."

 there you could add  -laudiofile right after  -lSDL


> /usr/lib/libesd.so.0: undefined reference to `afCloseFile'
> /usr/lib/libesd.so.0: undefined reference to `afGetRate'
> /usr/lib/libesd.so.0: undefined reference to `afGetFrameCount'
> /usr/lib/libesd.so.0: undefined reference to `afOpenFile'
> /usr/lib/libesd.so.0: undefined reference to `afGetTrackBytes'
> collect2: ld returned 1 exit status
> configure: failed program was:

I think these simple things should be covered by some FAQ

but we would need a person who would maintain such document...


-- 
  .''`.  Which fundamental human right do you want to give up today?
 : :' :      Debian GNU/Linux maintainer - www.debian.{org,cz}
 `. `'  Zdenek Kabelac  kabi@{debian.org, users.sf.net, fi.muni.cz}
   `-         Resistance is futile. You all will be packaged

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to