[MPlayer-users] zlib detection broken on Solaris?

pl p_l at gmx.fr
Sat Jun 22 17:20:02 CEST 2002


Hi,

On Sat, Jun 22, 2002 at 04:26:34PM +0200, Dominik Mierzejewski wrote:

> >From configure.log:
> [...]
> ============ Checking for zlib ============
> 
> #include <zlib.h>
> int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; }
> 
> gcc    /tmp/mplayer-conf--23497.c -o /tmp/mplayer-conf--23497.o -lz
> 
> ldd /tmp/mplayer-conf--23497.o
>         libz.so =>       (file not found)
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1
> 
> Result is: yes
> ##########################################

> It compiles successfully, but then:
> $ mplayer
> ld.so.1: mplayer: fatal: libz.so: open failed: No such file or directory
> zsh: killed     mplayer

gcc/ld seems to find libz but ld.so does not seem to.

Try and set LD_LIBRARY_PATH=/path/to/libs/ where your libz.so is.
Another way is to add it to your /etc/ld.so.conf (or solaris equivalent
for this file)

I guess it's not the detection but the runtime environment which is
somewhat broken. You'll get the same results under linux if you use
--extra-libs and do not add these paths to your LD_LIBRARY_PATH/ld.so.conf

-- 
Best regards,
  pl




More information about the MPlayer-users mailing list