Art Kagel 'dostats.ec' - compiling on HP-UX

Art Kagel 'dostats.ec' - compiling on HP-UX

Post by Adam Bradle » Sun, 31 Dec 1899 09:00:00



Hi all,

I was wondering if somebody might be able to help me.......I have extracted
Art Kagel's 'dostats.ec' utility from 'utils2_ak' but I am having trouble
compiling it.

I am not a programmer myself so please forgive my naivety.........

I am running IDS 7.31 on a HP-UX(Unix) Box - I know for a fact that we have
an ansi-c compiler installed. I have tried to compile 'dostats.ec' using
the following switches:

esql -ansi -o dostats dostats.ec

esql -o dostats dostats.ec

.....but both give me the same result,namely:

esqlc: "dostats.ec", line 1337: Warning -33036: This line does not conform
to AN
SI X3.135-1989.
35 warning(s)
cc: "/home/kenny/informix.731/incl/esql/locator.h", line 111: error 1705:
Functi
on prototypes are an ANSI feature.
cc: "/home/kenny/informix.731/incl/esql/locator.h", line 113: error 1705:
Functi
on prototypes are an ANSI feature.
cc: "/home/kenny/informix.731/incl/esql/locator.h", line 115: error 1705:
Functi
on prototypes are an ANSI feature.
cc: "/home/kenny/informix.731/incl/esql/locator.h", line 117: error 1705:
Functi
on prototypes are an ANSI feature.
cc: "dostats.ec", line 214: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 215: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 216: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 217: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 218: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 220: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 238: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 1426: error 1705: Function prototypes are an ANSI
feature

 
 
 

Art Kagel 'dostats.ec' - compiling on HP-UX

Post by allen » Sun, 31 Dec 1899 09:00:00


Try the switch:  -Aa

allen


> Hi all,

> I was wondering if somebody might be able to help me.......I have extracted
> Art Kagel's 'dostats.ec' utility from 'utils2_ak' but I am having trouble
> compiling it.

> I am not a programmer myself so please forgive my naivety.........

> I am running IDS 7.31 on a HP-UX(Unix) Box - I know for a fact that we have
> an ansi-c compiler installed. I have tried to compile 'dostats.ec' using
> the following switches:

> esql -ansi -o dostats dostats.ec

> esql -o dostats dostats.ec

> .....but both give me the same result,namely:

> esqlc: "dostats.ec", line 1337: Warning -33036: This line does not conform
> to AN
> SI X3.135-1989.
> 35 warning(s)
> cc: "/home/kenny/informix.731/incl/esql/locator.h", line 111: error 1705:
> Functi
> on prototypes are an ANSI feature.
> cc: "/home/kenny/informix.731/incl/esql/locator.h", line 113: error 1705:
> Functi
> on prototypes are an ANSI feature.
> cc: "/home/kenny/informix.731/incl/esql/locator.h", line 115: error 1705:
> Functi
> on prototypes are an ANSI feature.
> cc: "/home/kenny/informix.731/incl/esql/locator.h", line 117: error 1705:
> Functi
> on prototypes are an ANSI feature.
> cc: "dostats.ec", line 214: error 1705: Function prototypes are an ANSI
> feature.
> cc: "dostats.ec", line 215: error 1705: Function prototypes are an ANSI
> feature.
> cc: "dostats.ec", line 216: error 1705: Function prototypes are an ANSI
> feature.
> cc: "dostats.ec", line 217: error 1705: Function prototypes are an ANSI
> feature.
> cc: "dostats.ec", line 218: error 1705: Function prototypes are an ANSI
> feature.
> cc: "dostats.ec", line 220: error 1705: Function prototypes are an ANSI
> feature.
> cc: "dostats.ec", line 238: error 1705: Function prototypes are an ANSI
> feature.
> cc: "dostats.ec", line 1426: error 1705: Function prototypes are an ANSI
> feature


 
 
 

Art Kagel 'dostats.ec' - compiling on HP-UX

Post by Daniel Bonesan » Sun, 31 Dec 1899 09:00:00


This is what I use:

CFLAGS=-g -Ae -Wl,+s -n -v +Onolimit
EFLAGS=-I$(INFORMIXDIR)/incl/esql -L$(INFORMIXDIR)/lib/esql -keepccomment
all : dostats
dostats : dostats.ec
        esql $(CFLAGS) $(EFLAGS) dostats.ec -o dostats

>  N. Daniel Bonesana
> SIEMENS-ITRON BUSINESS SERVICES S.A.
> Balcarce 683, (C1064AAM) Buenos Aires, Argentina.

-----Original Message-----

Sent: Thursday, October 21, 1999 12:44 AM

Subject: Art Kagel 'dostats.ec' - compiling on HP-UX

Hi all,

I was wondering if somebody might be able to help me.......I have extracted
Art Kagel's 'dostats.ec' utility from 'utils2_ak' but I am having trouble
compiling it.

I am not a programmer myself so please forgive my naivety.........

I am running IDS 7.31 on a HP-UX(Unix) Box - I know for a fact that we have
an ansi-c compiler installed. I have tried to compile 'dostats.ec' using
the following switches:

esql -ansi -o dostats dostats.ec

esql -o dostats dostats.ec

.....but both give me the same result,namely:

esqlc: "dostats.ec", line 1337: Warning -33036: This line does not conform
to AN
SI X3.135-1989.
35 warning(s)
cc: "/home/kenny/informix.731/incl/esql/locator.h", line 111: error 1705:
Functi
on prototypes are an ANSI feature.
cc: "/home/kenny/informix.731/incl/esql/locator.h", line 113: error 1705:
Functi
on prototypes are an ANSI feature.
cc: "/home/kenny/informix.731/incl/esql/locator.h", line 115: error 1705:
Functi
on prototypes are an ANSI feature.
cc: "/home/kenny/informix.731/incl/esql/locator.h", line 117: error 1705:
Functi
on prototypes are an ANSI feature.
cc: "dostats.ec", line 214: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 215: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 216: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 217: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 218: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 220: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 238: error 1705: Function prototypes are an ANSI
feature.
cc: "dostats.ec", line 1426: error 1705: Function prototypes are an ANSI
feature

 
 
 

Art Kagel 'dostats.ec' - compiling on HP-UX

Post by Douglas Wils » Sun, 31 Dec 1899 09:00:00




Quote:>Hi all,

>I was wondering if somebody might be able to help me.......I have extracted
>Art Kagel's 'dostats.ec' utility from 'utils2_ak' but I am having trouble
>compiling it.

>I am not a programmer myself so please forgive my naivety.........

>I am running IDS 7.31 on a HP-UX(Unix) Box - I know for a fact that we have
>an ansi-c compiler installed. I have tried to compile 'dostats.ec' using
>the following switches:

>esql -ansi -o dostats dostats.ec

When I ran into this problem I read the wrong man pages but
found the right solution. The esql help message says there's a
'-ansi' flag, but that doesn't seem to work. The cc man pages
say theres a '-Aa' or '-Ae' flag for ansi, which does work on
the esql command.

Hope that helps,
Douglas Wilson

 
 
 

Art Kagel 'dostats.ec' - compiling on HP-UX

Post by Art S. Kage » Sun, 31 Dec 1899 09:00:00





> >Hi all,

> >I was wondering if somebody might be able to help me.......I have extracted
> >Art Kagel's 'dostats.ec' utility from 'utils2_ak' but I am having trouble
> >compiling it.

> >I am not a programmer myself so please forgive my naivety.........

> >I am running IDS 7.31 on a HP-UX(Unix) Box - I know for a fact that we have
> >an ansi-c compiler installed. I have tried to compile 'dostats.ec' using
> >the following switches:

> >esql -ansi -o dostats dostats.ec

> When I ran into this problem I read the wrong man pages but
> found the right solution. The esql help message says there's a
> '-ansi' flag, but that doesn't seem to work. The cc man pages
> say theres a '-Aa' or '-Ae' flag for ansi, which does work on
> the esql command.

The esql -ansi flag enables ANSI SQL compliance testing during the ESQL
parsing phase.  It generates warnings for any non-ANSI SQL features used
such as MATCHES.  It has nothing to do with ANSI C as you discovered.

Art S. Kagel

 
 
 

Art Kagel 'dostats.ec' - compiling on HP-UX

Post by Jonathan Leffle » Sun, 31 Dec 1899 09:00:00



> Hi all,

> I was wondering if somebody might be able to help me.......I have extracted
> Art Kagel's 'dostats.ec' utility from 'utils2_ak' but I am having trouble
> compiling it.

> I am not a programmer myself so please forgive my naivety.........

> I am running IDS 7.31 on a HP-UX(Unix) Box - I know for a fact that we have
> an ansi-c compiler installed. I have tried to compile 'dostats.ec' using
> the following switches:

> esql -ansi -o dostats dostats.ec

> esql -o dostats dostats.ec

> .....but both give me the same result,namely:

> esqlc: "dostats.ec", line 1337: Warning -33036: This line does not conform
> to AN
> SI X3.135-1989.
> 35 warning(s)
> cc: "/home/kenny/informix.731/incl/esql/locator.h", line 111: error 1705:
> Functi
> on prototypes are an ANSI feature.

This message means you are using the bundled HP-UX C compiler, which is
famous for not recognizing prototypes.  It is only useful for two things:
    *    Rebuilding the HP-UX kernel
    *    Bootstrapping the GNU C Compiler
Either buy the HP ANSI C compiler, or get GCC and use that.

--

Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN
#include <disclaimer.h>

 
 
 

Art Kagel 'dostats.ec' - compiling on HP-UX

Post by Jonathan Leffle » Sun, 31 Dec 1899 09:00:00


Hmm; interesting.  I did not realize that the bundled compiler supported that
option.
OK; I live, I learn (occasionally).



> > This message means you are using the bundled HP-UX C compiler, which is
> > famous for not recognizing prototypes.  It is only useful for two things:
> >     *    Rebuilding the HP-UX kernel
> >     *    Bootstrapping the GNU C Compiler
> > Either buy the HP ANSI C compiler, or get GCC and use that.

> I was able to eventually compile with the bundled HP-UX C compiler with the
> following command:

> esql -Ae -o dostats dostats.ec

> (The '-Ae' switch told the compiler to use extended-ANSI mode)

--

Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN
#include <disclaimer.h>
 
 
 

Art Kagel 'dostats.ec' - compiling on HP-UX

Post by Adam Bradle » Sun, 31 Dec 1899 09:00:00




> This message means you are using the bundled HP-UX C compiler, which is
> famous for not recognizing prototypes.  It is only useful for two things:
>     *    Rebuilding the HP-UX kernel
>     *    Bootstrapping the GNU C Compiler
> Either buy the HP ANSI C compiler, or get GCC and use that.

> --

> Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN
> #include <disclaimer.h>

I was able to eventually compile with the bundled HP-UX C compiler with the
following command:

esql -Ae -o dostats dostats.ec

(The '-Ae' switch told the compiler to use extended-ANSI mode)

 
 
 

1. Art's dostats script

Hi everyone, just a quick question.  I've downloaded the ak_utils2 package
from IIUG (the one with the dostats utility).  I also downloaded gcc 3.0.3
from Sunfreeware.com

I haven't used any of these utilities before.
Do I need anything else (esqlc?), or is this all I need to compile and run
the utility ?

Regards
Dirk

"Hate wears you down, and does not hurt your enemy. It is like taking poison
and wishing your enemy would die."

2. ******NY/NJ-DATA MODELERS/LOGICAL/PHYSICAL-WANTED********

3. Can't get TCL packages to compile on HP-UX 11i

4. Sql7 error?

5. dostats.ec - need compiling help

6. List of OODBMS vendors (frozen June'93)

7. Kagel′s dostats installation in Linux

8. Starting Console from Client (8.1.6)

9. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN--HP-UX, Oracle DBA, Baan

10. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN-HP-UX, Oracle DBA, Baan

11. Mr Art Kagel