Re: cgi_rds problems w/o esql/c
Posted in 1995
I let you into a minuscule secret -- you don't really need ESQL/C after all, but you do have to fix the source code, file names and the makefile for the build to work without ESQL/C. As far as I can see, the files in question are: cgiprintblob.ec icgiencode.ec icgimimetype.ec icgidecode.ec icgigetvalue.ec icgiprintblob.ec None of these contain executable ESQL/C statements. They are named as ESQL/C files to simplify compilation; the esql script provides the correct -I directives. To fix the problem, rename these files as .c files. Edit them, replacing '$include xyz;' by '#include "xyz.h"'. Remove stray $ signs from variable declarations. Edit the makefile lib4glcgi.mak: change the suffixes in the macros CGIU_ECFILES and IECFILES from ".ec" to ".c". Change the macro for UEOBJ to use ".c" in place of ".ec". Change the macros for ICECFILES and UCECFILES so that the RHS of the macro is empty; this means that your carefully produced .c files don't get cleaned up for you. I haven't done the necessary testing to be certain that that's all you have to do, but there's a reasonable chance. It assumes that you have, or can locate, copies of the sqltypes.h and locator.h headers -- if you can't, you are completely stuck. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h> >From: hlt@napcc-hp.cvm.uiuc.edu (Harold Trammel) >Date: 21 Dec 95 20:00:36 GMT >X-Informix-List-Id: <news.19855> > >I downloaded the latest versions of the Informix WWW Freeware. I >followed the instructions and read the Informix CGI.FAQ. We only have >the Informix-4GL/RDS and do not have esql/c. The makefile that comes >with the package appears to expect esql regardless. There are 6 .ec >files that my system cannot handle (obviously?).