libpng icon indicating copy to clipboard operation
libpng copied to clipboard

I tried to build libpng 1.6.34, then got error on libz...

Open abdulbadii opened this issue 6 years ago • 2 comments

When compiled libpng it gave me an error although I completed compiling zlib-1.2.11: ... make check-am make[1]: Entering directory '/usr/src/libpng-1.6.34' /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -no-undefined -export-dynamic -version-number 16:34:0 -export-symbols libpng.sym -o libpng16.la -rpath /usr/local/lib png.lo pngerror.lo pngget.lo pngmem.lo pngpread.lo pngread.lo pngrio.lo pngrtran.lo pngrutil.lo pngset.lo pngtrans.lo pngwio.lo pngwrite.lo pngwtran.lo pngwutil.lo mips/mips_init.lo mips/filter_msa_intrinsics.lo intel/intel_init.lo intel/filter_sse2_intrinsics.lo powerpc/powerpc_init.lo powerpc/filter_vsx_intrinsics.lo -lz

*** Warning: linker path does not have real file for library -lz. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libz but no candidates were found. (...for file magic test) *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols, *** because either the platform does not support them or *** it was explicitly requested with -no-undefined, *** libtool will only create a static version of it. libtool: link: lib -OUT:.libs/libpng16.lib png.o pngerror.o pngget.o pngmem.o pngpread.o pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o mips/mips_init.o mips/filter_msa_intrinsics.o intel/intel_init.o intel/filter_sse2_intrinsics.o powerpc/powerpc_init.o powerpc/filter_vsx_intrinsics.o ./libtool: line 1730: lib: command not found make[1]: *** [Makefile:924: libpng16.la] Error 127 make[1]: Leaving directory '/usr/src/libpng-1.6.34' make: *** [Makefile:1959: check] Error 2

libz 1.2.11 result is in /usr/local/lib,

Me@LENOVOG40 /usr/local/lib $ ls libz.a libz.dll.a pkgconfig/

What's actually happen and how to solve it ?

abdulbadii avatar Feb 28 '18 00:02 abdulbadii

It sounds like a problem with your operating system or build system (some kind of Linux) rather than a problem with libpng itself.

It says up there there is no shared object version of libz.

I notice you are building in /usr/src/ but you are looking in /usr/local/lib for libz.

Anyway after three years this bug report should be closed.

benkasminbullock avatar Feb 12 '21 01:02 benkasminbullock

Is this still relevant ?

luzpaz avatar Jul 05 '23 00:07 luzpaz