Hello,
In order to use a php gallery (spgm) on my wl-500gx, I installed lighttpd with cgi-mod, php5-cgi, php5-mod-gd. PHP things works really fine, but I noticed a weird thing : I was unable to use gd php functions to manipulate jpeg files. I had a look at the libgd et php5 makefiles in the kamikaze repository and found out that they were compiled without support for jpeg files. That's why I decided to include it myself, by changing the following files:
package/libgd/Makefile
-- without-jpeg \
++ with-jpeg=$(STAGING_DIR)/usr \
package/php5/Makefile
-- without-jpeg \
++ with-jpeg-dir="$(STAGING_DIR)/usr"
I then launch the compilation using V=99 make. The target package/libgd-compile fails with the following error message :
...
/home/bdelagoutte/tmp/trunk/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-g
cc -shared gd.lo gdfx.lo gd_security.lo gd_gd.lo gd_gd2.lo gd_io.lo gd_io_dp.lo
gd_gif_in.lo gd_gif_out.lo gd_io_file.lo gd_io_ss.lo gd_jpeg.lo gd_png.lo gd_ss
.lo gd_topal.lo gd_wbmp.lo gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.
lo gdfontt.lo gdft.lo gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo wbmp.lo -Wl,
--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib -L/usr/lib -L/home/bdelagoutte/tm
p/trunk/openwrt/staging_dir_mipsel/usr/lib -L/home/bdelagoutte/tmp/trunk/openwrt
/staging_dir_mipsel/lib /usr/lib/libjpeg.so -lpng12 -lz -lm -Wl,-rpath -Wl,/usr
/lib -Wl,-soname -Wl,libgd.so.2 -o .libs/libgd.so.2.0.0
/usr/lib/libjpeg.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[6]: *** [libgd.la] Erreur 1
It seems that the build process is trying to link against my local i386 libjpeg.so library. What's wrong with the changes I made ? Can anyone give me a piece of advice about how to solve this ?
Thank you !
Benjamin