Re: PHP compile help ifx_checkAPI error
Posted in 2005
On Fri, 27 May 2005 08:26:20 GMT, Jonathan Leffler <jleffler@earthlink.net> wrote: >I suspect that the trouble is that the PHP build is not attempting to >link the relevant object file - ifxchkapi.o or some such name - as well >as the libraries. If you look at the linker line for an ESQL/C program >with shared libraries, you see that the object file is also linked; and >I'd be relatively surprised, given the error message, if the PHP module >is built with the object file included. > >Work out how to build/link the PHP shared object with the esql script - >or how to get the object file included in the link line. I am still struggling with this. I greped inside checkapi.o and see ifx_checkapi. I found the Informix Makefile for ifx.c. It appears to call esql and link the correct library. What I don't understand is it works with Fedora. I compared the Makefiles between the two and don't see a difference. IFX_LIBOBJS = /u/informix/lib/esql/checkapi.o $(srcdir)/ifx.c: $(srcdir)/ifx.ec $(builddir)/libphpifx.a (if test -d $(INFORMIXDIR); then \\ THREADLIB=POSIX $(INFORMIXDIR)/bin/esql -e $(IFX_ESQL_FLAGS) $(srcdir )/ifx.ec; mv ifx.c $@; \\ THREADLIB=POSIX $(INFORMIXDIR)/bin/esql -e $(IFX_ESQL_FLAGS) $(srcdir )/ifx.ec; \\ mv ifx.c $@ || true; \\ else \\ touch $@; \\ fi) $(builddir)/libphpifx.a: $(LIBTOOL) --mode=link $(CC) $(IFX_LIBOBJS) -o $@ Thanks, Gary Quiring