Missing declarations/jdbc error

From: Christine Warren <cwarren(at)library(dot)uwi(dot)tt>
To: "'pgsql-jdbc(at)postgresql(dot)org'" <pgsql-jdbc(at)postgresql(dot)org>
Cc: "'books(at)ejurka(dot)com'" <books(at)ejurka(dot)com>, "'nick(at)fankhausers(dot)com'" <nick(at)fankhausers(dot)com>
Subject: Missing declarations/jdbc error
Date: 2004-12-22 16:14:54
Message-ID: 21530F7443DED311AC3500C04F238E88CC0A4B@SANTW40LIBRY001
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2004-12-22 17:57:00 Re: Bug in JDBC-Driver?
Previous Message Xavier Poinsard 2004-12-22 11:34:54 Re: Patch to reduce the number of messages to translate