Re: Compiling utils2 on HPUX
Posted in 2007
Topics: Installation, Setup & Upgrades, Connectivity: ESQL/C, 4GL & Embedded SQL, Data Types & Schema Design
Jeffa wrote:
> I think I have followed the instructions in his Makefile, but I am
> still struggling to build AK's utils2 package on HPUX 11.11, with the
> HP gcc package.
>
> Errors as follows
>
> /home/informix/utils2_ak> gmake
> INFORMIXC=gcc esql -I/informix/FT2/incl/public -DHAVE_GNU_GETOPT=0> -o dostats dostats.ec getopt.c
> esqlc: "dostats.ec", line 297: Error -33200: Invalid statement on
> symbol 'lvarchar'.
> esqlc: "dostats.ec", line 2308: Error -33040: Object 'statement2' was
> not declared.
> esqlc: "dostats.ec", line 3480: Warning -33208: Runtime error is
> possible because size of 'arglist' is unknown.
> esqlc: "dostats.ec", line 3836: Error -33051: Syntax error on
> identifier or symbol 'char'.
> esqlc: "dostats.ec", line 3891: Error -33051: Syntax error on
> identifier or symbol 'char'.
> esqlc: "dostats.ec", line 3931: Error -33040: Object 'tabid' was not
> declared.
> 1 warning(s)
> 5 error(s) found
> gmake: *** [dostats] Error 1
Which version of ESQL/C or CSDK are you using? Superficially, it might
appear that you are using ESQL/C 7.2x, which would not understand the
lvarchar type that was added with ESQL/C 9.x. If so, the answer is to
upgrade to CSDK 2.90 or thereabouts. If you're worried about that, then
divulge the server version (IDS) that you're using.
--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Hi,
Thanks for response.
onstat -
IBM Informix Dynamic Server Version 9.40.FC5W2 -- On-Line -- Up 2
days 23:58:32 -- 1456044 Kbytes
esqlvers
IBM Informix CSDK Version 2.81, IBM Informix-ESQL Version 9.53.UC2X3
Is this version OK, or do I need to go higher? I would rather not
upgrade the SDK, but will investigate if I neeed to (application
support matrix issues!)
Jeffa wrote:
> Hi,
>
> Thanks for response.
>
> onstat -
> IBM Informix Dynamic Server Version 9.40.FC5W2 -- On-Line -- Up 2
> days 23:58:32 -- 1456044 Kbytes>
> esqlvers
> IBM Informix CSDK Version 2.81, IBM Informix-ESQL Version 9.53.UC2X3
>
> Is this version OK, or do I need to go higher? I would rather not
> upgrade the SDK, but will investigate if I neeed to (application
> support matrix issues!)
That version should work and while the first error message about not
recognizing lvarchar host bariable definitions definitely points to a
problem like Jonathan is guessing (ie that your esql is old) the second
error complaining about a 'string' type host variable having not been
defined seems to be another problem altogether since even ESQL/C 5.xx
recognized 'string' host vars.
HMM, I think that I've seen this one before... Are you using a version of
GCC later than 3.4.x? I think there is a problem with that and I haven't
had a chance to track it down or to see how to fix it..... Let me know and
let's take this offline for a bit and we'll post final results when/if we
get you going. Send me a reply directly (kagel@bloomberg.net) and deselect
the newsgroup.
Art S. Kagel