I am trying to get php_exif working as a self contained extension for php4.0.3 on Apache 1.3.12 under linux. The rub is that it is an isp webserver so I have to compile, install and use in my own webspace (/home/earth). I have obtained and compiled m4, autoconf and libtools. After messing around with the config_vars.mk it finally compiled with no errors. However:
dl("exif.so"); gives the error:
Invalid library (maybe not a PHP library) 'exif.so'
Anyone get any ideas?
Thanks
Dave
Below is config_vars.mk which I had to mess around with to get the compilation to work:
EXT_STATIC =
EXT_SHARED =
EXT_LIBS =
EXT_LTLIBS =
prefix = /home/earth
exec_prefix = $(prefix)
libdir = ${exec_prefix}/lib
prefix = /home/earth
phplibdir = /home/earth/php_exif/modules
PHP_COMPILE = $(LIBTOOL) --mode=compile $(COMPILE) -c $<
CC = gcc
CFLAGS = -g -O2
CPP =
CPPFLAGS =
CXX =
DEFS =
EXTENSION_DIR = /home/earth/ext
EXTRA_LDFLAGS =
EXTRA_LIBS =
INCLUDES = -I/usr/local/include/php -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/home/earth/include
LEX =
LEX_OUTPUT_ROOT =
LFLAGS =
SHARED_LIBTOOL = $(LIBTOOL)
LIBTOOL = /home/earth/bin/libtool
SHELL = /bin/sh