Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10551 - dev-db/postgresql-7.2.3-r1 build fails (during compile of jdbc)
Summary: dev-db/postgresql-7.2.3-r1 build fails (during compile of jdbc)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
: 11130 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-10 17:07 UTC by Dylan Carlson (RETIRED)
Modified: 2007-09-22 23:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dylan Carlson (RETIRED) gentoo-dev 2002-11-10 17:07:03 UTC
My environment:  sun-jdk-1.4.1.01, glibc-2.3.1-r2, gcc-3.2-r4, ant-1.5.1-r1 
 
~~~~~~ 
 
make[3]: Entering directory  
`/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc'  
/usr/bin/ant -buildfile ./build.xml all \  
  -Dmajor=7 -Dminor=2 -Dfullversion=7.2.3 -Ddef_pgport=5432  
Buildfile: ./build.xml  
all:  
prepare:  
    [mkdir] Created dir:  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/build  
    [mkdir] Created dir:  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/jars  
check_versions:  
driver:  
[available] DEPRECATED - <available> used to override an existing property.  
[available]   Build file should not reuse the same property name for different  
values.  
[available] DEPRECATED - <available> used to override an existing property.  
[available]   Build file should not reuse the same property name for different  
values.  
[available] DEPRECATED - <available> used to override an existing property.  
[available]   Build file should not reuse the same property name for different  
values.  
     [copy] Copying 1 file to  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql  
     [echo] Configured build for the JDBC2 Enterprise edition driver  
compile:  
    [javac] Compiling 53 source files to  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/build  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/xa/XAConnectionImpl.java:57:  
cannot resolve symbol  
    [javac] symbol  : class RollbackException   
    [javac] location: package transaction  
    [javac] import javax.transaction.RollbackException;  
    [javac]                          ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/xa/ClientConnection.java:70:  
org.postgresql.xa.ClientConnection should be declared abstract; it does not  
define setHoldability(int) in org.postgresql.xa.ClientConnection  
    [javac] final class ClientConnection  
    [javac]       ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java:25:  
org.postgresql.jdbc2.Statement should be declared abstract; it does not define  
getMoreResults(int) in org.postgresql.jdbc2.Statement  
    [javac] public class Statement extends org.postgresql.Statement implements  
java.sql.Statement  
    [javac]        ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java:32:  
org.postgresql.jdbc2.PreparedStatement should be declared abstract; it does  
not define setURL(int,java.net.URL) in org.postgresql.jdbc2.PreparedStatement  
    [javac] public class PreparedStatement extends Statement implements  
java.sql.PreparedStatement  
    [javac]        ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java:42:  
org.postgresql.jdbc2.CallableStatement should be declared abstract; it does  
not define registerOutParameter(java.lang.String,int) in  
org.postgresql.jdbc2.CallableStatement  
    [javac] public class CallableStatement extends  
org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement  
    [javac]        ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java:37:  
org.postgresql.jdbc2.Connection should be declared abstract; it does not  
define setHoldability(int) in org.postgresql.jdbc2.Connection  
    [javac] public class Connection extends org.postgresql.Connection  
implements java.sql.Connection  
    [javac]        ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java:40:  
org.postgresql.jdbc2.DatabaseMetaData should be declared abstract; it does not  
define supportsSavepoints() in org.postgresql.jdbc2.DatabaseMetaData  
    [javac] public class DatabaseMetaData implements java.sql.DatabaseMetaData  
    [javac]        ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60:  
org.postgresql.jdbc2.ResultSet should be declared abstract; it does not define  
getURL(int) in org.postgresql.jdbc2.ResultSet  
    [javac] public class ResultSet extends org.postgresql.ResultSet implements  
java.sql.ResultSet  
    [javac]        ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/largeobject/PGblob.java:26:  
org.postgresql.largeobject.PGblob should be declared abstract; it does not  
define setBytes(long,byte[]) in org.postgresql.largeobject.PGblob  
    [javac] public class PGblob implements java.sql.Blob  
    [javac]        ^  
    [javac]  
/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/org/postgresql/largeobject/PGclob.java:26:  
org.postgresql.largeobject.PGclob should be declared abstract; it does not  
define setString(long,java.lang.String) in org.postgresql.largeobject.PGclob  
    [javac] public class PGclob implements java.sql.Clob  
    [javac]        ^  
    [javac] Note: Some input files use or override a deprecated API.  
    [javac] Note: Recompile with -deprecation for details.  
    [javac] 10 errors  
BUILD FAILED  
file:/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc/build.xml:72:  
Compile failed; see the compiler error output for details.  
Total time: 7 seconds  
make[3]: Leaving directory  
`/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces/jdbc'  
make[3]: *** [all] Error 1  
make[2]: Leaving directory  
`/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src/interfaces'  
make[2]: *** [all] Error 2  
make[1]: Leaving directory  
`/var/tmp/portage/postgresql-7.2.3-r1/work/postgresql-7.2.3/src'  
make[1]: *** [all] Error 2  
make: *** [all] Error 2  
!!! ERROR: The ebuild did not complete successfully.  
!!! Function src_compile, Line 87, Exitcode 2  
!!! (no error message)  
Calculating dependencies      ...done!  
>>> emerge (1 of 1) dev-db/postgresql-7.2.3-r1 to /  
>>> md5 ;-) postgresql-7.2.3.tar.gz
Comment 1 Dylan Carlson (RETIRED) gentoo-dev 2002-11-14 10:08:50 UTC
more on this. 
 
krs- on #gentoo suggested setting the system-vm to 1.3.1 temporarily for this 
build and voila that works.   
 
so, in a nutshell, this is a jdk >1.3 problem.  so somehow this will need to 
be patched to work with 1.4 somehow or maybe a check in the ebuild to make 
sure the vm is set to 1.3.1.06 before the compile, if possible.  (don't know 
enough about what is possible to give you a patch myself, sorry) 
 
Comment 2 Jeremy Wohl 2002-11-23 14:08:58 UTC
*** Bug 11130 has been marked as a duplicate of this bug. ***
Comment 3 Jeremy Wohl 2002-11-23 14:26:05 UTC
How does this actually work?

I did /java-config --set-system-vm=sun-jdk-1.3.1.06/, but ant fails with the 
following -- and thus the pgsql build.

amino ~ # ant
/opt/sun-jdk-1.3.1.06/bin/i386/native_threads/java: error while loading shared 
libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such 
file or directory

Hunting for libstdc++ in the bug database show lots of angst of its 
nonexistence.  Was there another way around this?

thanks.
Comment 4 Jeremy Wohl 2002-11-23 15:43:12 UTC
Right, installing lib-compat fixes my problem.  Now I run into bug #9363.  So 
frustrating, everything builds, but can't install!
Comment 5 Ryan Phillips (RETIRED) gentoo-dev 2003-01-31 16:36:50 UTC
Jeremy: try merging with SANDBOX_DISABLED=1
Comment 6 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:21:36 UTC
db fix
Comment 7 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:26:28 UTC
db fix