PostgreSQL emerge fails when it checks to see if ant works: Calculating dependencies ...done! >>> emerge (1 of 2) dev-db/postgresql-7.3.3 to / >>> md5 src_uri ;-) postgresql-7.3.3.tar.gz >>> Unpacking source... >>> Unpacking postgresql-7.3.3.tar.gz to /var/tmp/portage/postgresql-7.3.3/work >>> Source unpacked. java tcltk python perl java ssl nls libg++ pam readline zlib configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether to build with recode support... no checking whether NLS is wanted... yes checking for default port number... 5432 checking for default soft limit on number of connections... 1024 checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes configure: using CFLAGS=-march=pentium3 -O3 -pipe -fomit-frame-pointer checking whether the C compiler still works... yes checking how to run the C preprocessor... gcc -E checking whether to build with Tcl... yes checking whether to build with Tk... yes checking whether to build Perl modules... yes checking whether to build Python modules... yes checking whether to build Java/JDBC tools... yes checking for jakarta-ant... no checking for ant... /usr/bin/ant checking whether /usr/bin/ant works... no configure: error: ant does not work !!! ERROR: dev-db/postgresql-7.3.3 failed. !!! Function src_compile, Line 92, Exitcode 1 !!! (no error message) I got around this by setting USE="-java". Output of emerge -s dev-java/ant: * dev-java/ant Latest version available: 1.5.3-r4 Latest version installed: 1.5.3-r4 Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge -u postgresql 3. # emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-pfeifer-r1_pre12 i686 Intel(R) Pentium(R) 4 Mobile CPU 2.00GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/images/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/images/portage/overlay" USE="x86 oss 3dnow apm avi encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline arts svga tcltk java guile sdl gpm tcpd pam libwww perl python esd imlib oggvorbis qt motif opengl mozilla cdr X gtk cups alsa crypt acpi apache2 kde postgres ssl -gnome -scanner" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync7.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
same happens here dev-java/ant-1.5.3-r4
I guess you use jdk-1.3.1(blackdown-jdk or sun-jdk, etc) and ant-1.5.3. If you emerge jdk-1.4.1 or ant-1.5.2, it'll be ok. jdk-1.3.1 + ant-1.5.3 is NG jdk-1.3.1 + ant-1.5.2 is OK jdk-1.4.1 + ant-1.5.2 is OK jdk-1.4.1 + ant-1.5.3 is OK But we need to resolv it with jdk-1.3.1. so I debuged it then I got this message. 'Unable to load default ProjectHelper due to java.lang.NoClassDefFoundError: org/xml/sax/SAXException' (I don't know about ant...) any idea?
i'm using: blackdown-jdk-1.4.1 ant-1.5.3-r4 which is one of the combinations you says works. is this a typo on your part or am i missing something else? "jdk-1.4.1 + ant-1.5.3 is OK"
Check that 1.4.1 is your default/system VM as well. I was just bitten by the same thing while trying to update my postgreSQL, but then noticed that autoclean didn't uninstall blackdown-jdk-1.3.1 after I updated to 1.4.1. So I simply used java-config to set my default to 1.4.1, and now everything works as advertised.
i used `java-config --set-system-vm=blackdown-jdk-1.4.1` to set the correct jdk version then re-emerged postgresql and it passed the ants test. thanks for the tip.
had the same problem here. perhaps we should check this in the ebuild. or someone should clarify why it doesnt work with blackdown-jdk-1.3.x
ok to solve this is really simple (workaround) use java-config to set a system-vm reemerge ant, then call ant and see if it works. the reemerge postgresql
*** Bug 25202 has been marked as a duplicate of this bug. ***
*** Bug 14172 has been marked as a duplicate of this bug. ***
I also encountered this bug on a newly-installed system. Installing ant-1.5.2 instead of 1.5.3-r4 fixed the problem.
hello, java guys any idea?
Martin said the possible and fastest workaround for this, Java team knows about this issue. User needs to: 1. java-config --list-available-vms 2. java-config --set-system-vm=(HERE GOES THE VM SELECTED) 3. source /etc/profile 4. Re-emerge postgresql, and problems should not appear again. Sorry for this inconvenience, but were working on it.
I resolved it deleting the file /root/.gentoo/java-env
closing with latest version of java-config & ant & pgsql