Re: Last know working distro?
Mike Aubury <[email protected]> Mon, 19 Apr 2021 19:31:30 +0100
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WF0i=J5zZqKK72erbR9O=vkCLQq3Lz+4uGMN8taJ0iMPw@mail.gmail.com> |
What error are you getting ? (Either the error when you open the cursor, or the issue you have with the include files) Does it work if you compile to C (rather than Esql/C) ? On Mon, 19 Apr 2021, 19:15 Vince Callaway, <[email protected]> wrote: > I need to resurect an old 4gl application and have run into some issues. > > I believe I've narrowed down my problem to a change with the posgres > includes. I don't expect anyone to spend time to get this working. If I > can get a combination of a linux distro and version that will compile and > run I will be happy. > > What I have run into is everywhere I pass a variable to a function and use > that in a CONSTRUCT it fails when it opens the cursor. I get a .warn file > when I do the compile. I'll include it if anyone is interested in what I'm > seeing. > > In file included from /home/vince/aubit4gl/incl/a4gl_esql.h:57, > from agents.cpc:5: > agents.cpc: In function ‘aclfgl_agents_update’: > /home/vince/aubit4gl/incl/a4gl_esql_postgres.h:311:35: warning: implicit > declaration of function ‘A4GL_copy_sqlca_sqlawarn_string8’; did you mean > ‘A4GL_copy_sqlca_sqlawarn_8chars’? [-Wimplicit-function-declaration] > 311 | #define A4GLSQL_SET_SQLCA_SQLWARN > A4GL_copy_sqlca_sqlawarn_string8(sqlca.sqlwarn) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > agents.cpc:1754:16: note: in expansion of macro ‘A4GLSQL_SET_SQLCA_SQLWARN’ > 1754 | A4GLSQL_SET_SQLCA_SQLWARN; > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > agents.cpc:1779:20: warning: implicit declaration of function > ‘A4GL_ESQL_cursor_is_open’ [-Wimplicit-function-declaration] > 1779 | if (A4GL_ESQL_cursor_is_open("agents_dcurs")) { > | ^~~~~~~~~~~~~~~~~~~~~~~~ > agents.cpc:1786:39: warning: implicit declaration of function > ‘A4GL_ESQL_set_cursor_is_open’; did you mean ‘A4GLSQL_get_curr_conn’? > [-Wimplicit-function-declaration] > 1786 | if (sqlca.sqlcode>=0) > {A4GL_ESQL_set_cursor_is_open("agents_dcurs");} > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > | A4GLSQL_get_curr_conn > agents.cpc:1983:19: warning: implicit declaration of function > ‘A4GL_ESQL_set_cursor_is_closed’ [-Wimplicit-function-declaration] > 1983 | A4GL_ESQL_set_cursor_is_closed("agents_dcurs"); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > _______________________________________________ > Aubit4gl-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss > _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss