Missing declarations/jdbc error - Mailing list pgsql-jdbc

From Christine Warren
Subject Missing declarations/jdbc error
Date
Msg-id 21530F7443DED311AC3500C04F238E88CC0A4B@SANTW40LIBRY001
Whole thread Raw
Responses Re: Missing declarations/jdbc error
List pgsql-jdbc
Hello
We are currently trying to set up postgresql 7.4.3 on RedHat Enterprise
linux WS 2.4... for use on a software platform called DSpace, as such we
have also installed Java 1.4.2, Apache-Ant and Tomcat 5.0.19 which are
required for use with Dspace. We have been unable to get past the gmake
command in the installation of Pgsql.

We had been adviced of a possible pre-existing JDBC driver conflict, we have
since deleted any *jdbc.jar file as well as any postgresql.jar file and have
still encountered the following errors after the gmake command.

What can be the cause of the 'Wmissing-declarations'. and what (if anything)
has to be done before running ./config or gmake.

This is the line at which the error occured in the build.xml file:  <javac
classpath="{$srcdir}" srcdir="${srcdir}" destdir="${builddir}"
debug="${debug}">


This is the error generated by the gmake command :

pgc.c:1436: warning: label `find_rule' defined but not used
/usr/include/ctype.h: At top level:
pgc.c:3417: warning: `yy_flex_realloc' defined but not used
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -I./../include -I.
-I../../../../src/include -D_GNU_SOURCE   -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1 -DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o type.o type.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -I./../include -I.
-I../../../../src/include -D_GNU_SOURCE   -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1 -DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o ecpg.o ecpg.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -I./../include -I.
-I../../../../src/include -D_GNU_SOURCE   -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1 -DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o ecpg_keywords.o
ecpg_keywords.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -I./../include -I.
-I../../../../src/include -D_GNU_SOURCE   -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1 -DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o output.o output.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -I./../include -I.
-I../../../../src/include -D_GNU_SOURCE   -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1 -DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o keywords.o keywords.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -I./../include -I.
-I../../../../src/include -D_GNU_SOURCE   -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1 -DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o c_keywords.o
c_keywords.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -I./../include -I.
-I../../../../src/include -D_GNU_SOURCE   -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1 -DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o descriptor.o
descriptor.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -I./../include -I.
-I../../../../src/include -D_GNU_SOURCE   -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1 -DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o variable.o variable.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -Wno-error -L../../../../src/port
-Wl,-rpath,/usr/local/pgsql/lib preproc.o type.o ecpg.o ecpg_keywords.o
output.o keywords.o c_keywords.o ../ecpglib/typename.o descriptor.o
variable.o -lz -lreadline -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd
-lpgport  -o ecpg
gmake[4]: Leaving directory
`/usr/dspace/postgresql-7.4.3/src/interfaces/ecpg/preproc'
gmake[3]: Leaving directory
`/usr/dspace/postgresql-7.4.3/src/interfaces/ecpg'
gmake[3]: Entering directory
`/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc'
/usr/bin/ant -buildfile ./build.xml all
Buildfile: ./build.xml

all:

prepare:
    [mkdir] Created dir:
/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/build
    [mkdir] Created dir:
/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/jars

check_versions:

check_driver:

driver:
     [copy] Copying 1 file to
/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql
     [echo] Configured build for the JDBC3 edition driver with NO SSL

compile:
    [javac] Compiling 77 source files to
/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/build
    [javac]
/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3S
tatement.java:28: error: Invalid checked exception class
`java.sql.SQLException' in `throws' clause. The exception must be a subclass
of an exception thrown by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.l
ang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet createRefCursorResultSet
(String cursorName) throws SQLException
    [javac]                                          ^
    [javac]
/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3P
reparedStatement.java:23: error: Invalid checked exception class
`java.sql.SQLException' in `throws' clause. The exception must be a subclass
of an exception thrown by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.l
ang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet createRefCursorResultSet
(String cursorName) throws SQLException
    [javac]                                          ^
    [javac]
/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3P
oolingDataSource.java:29: error: Method
`org.postgresql.jdbc2.optional.PoolingDataSource.getDataSource(java.lang.Str
ing)' was defined with return type
`org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
    [javac]        static Jdbc3PoolingDataSource getDataSource(String name)
    [javac]                                      ^
    [javac]
/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3C
allableStatement.java:23: error: Invalid checked exception class
`java.sql.SQLException' in `throws' clause. The exception must be a subclass
of an exception thrown by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.l
ang.String)' from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet createRefCursorResultSet
(String cursorName) throws SQLException
    [javac]                                          ^
    [javac] 4 errors

BUILD FAILED
file:/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc/build.xml:119: Compile
failed; see the compiler error output for details.

Total time: 1 second
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory
`/usr/dspace/postgresql-7.4.3/src/interfaces/jdbc'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/dspace/postgresql-7.4.3/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/dspace/postgresql-7.4.3/src'
gmake: *** [all] Error 2

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: [BUGS] BUG #1347: Bulk Import stopps after a while (
Next
From: "Barry Lind"
Date:
Subject: Re: Bug in JDBC-Driver?