I try to make PHP 5.3.x with the use of libpng installed on the system (./configure ... --with-png-dir ...).
But at make time it failed with:
I'm using XUbuntu 11.04 and all stuff come from the package manager expect the php source code that I would like to compile, so the libpng package is: libpng12-dev (1.2.44-1ubuntu3.1)
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/bin/ld: /usr/lib/libpng.a(libpng12_la-png.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libpng.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Erreur 1
What's wrong with this libpng package ?