Summary: | postgresql-jdbc fails to build while building interfaces | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | David Booth <wbooth> |
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
David Booth
2003-01-04 22:50:00 UTC
Responsible Changed From-To: gnats-admin->freebsd-ports Misfiled Ports Problem Report. Hi! Do you know which Java you are using? Regards, Palle Hi, I cannot reproduce the error. I use Java 1.3.1, just like you. On my side, it tries to compile 50 source files. You only seem to have 24? Can it be a problem with you distribution? compile: [javac] Compiling 50 source files to /usr/local/home/girgen/ports/usr/local/ ports/databases/postgresql-jdbc/work/postgresql-7.3.1/src/interfaces/jdbc/build [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. Regards, Palle I traced this problem to the presence of the postgresql.jar file from a 7.2.3 build of postgresql-jdbc in /usr/local/share/java/classes. Evidently, Ant puts all of the files thar are in this directory in the java.class.path environment ahead of the local directories and some classes in this file were being read instead of some with the same names in the build directory causing the failure. The work-around is to move temporarily the postgresql.jar from the /usr/local/share/java/classes directory during the build. A fix that modifies the build.xml file to exclude this file from the java.class.path is probably a better choice, but I do not have one. David Booth Ah, I suspected this. Thanks for the input, I'll see if I can hack up a=20 patch. /Palle --On m=E5ndag, februari 24, 2003 04.21.04 -0600 David Booth=20 <wbooth@austin.rr.com> wrote: > I traced this problem to the presence of the postgresql.jar file from a > 7.2.3 build of postgresql-jdbc in /usr/local/share/java/classes. > Evidently, Ant puts all of the files thar are in this directory in the > java.class.path environment ahead of the local directories and some > classes in this file were being read instead of some with the same names > in the build directory causing the failure. The work-around is to move > temporarily the postgresql.jar from the /usr/local/share/java/classes > directory during the build. A fix that modifies the build.xml file to > exclude this file from the java.class.path is probably a better choice, > but I do not have one. > > David Booth State Changed From-To: open->closed Fixed by PR 48878 resolution. |