Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22875 - postgresql-7.3.3 compile fails when checking if ant works
Summary: postgresql-7.3.3 compile fails when checking if ant works
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
: 14172 25202 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-15 11:06 UTC by Jason Waldhelm
Modified: 2007-09-22 23:13 UTC (History)
7 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 Jason Waldhelm 2003-06-15 11:06:59 UTC
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"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-06-15 12:06:16 UTC
same happens here
dev-java/ant-1.5.3-r4
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2003-06-16 13:34:46 UTC
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?
Comment 3 Jason Waldhelm 2003-06-16 13:44:31 UTC
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"
Comment 4 Dewet Diener 2003-06-16 19:11:43 UTC
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. 
Comment 5 Jason Waldhelm 2003-06-17 10:07:00 UTC
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.
Comment 6 Christian Gut 2003-06-28 10:12:16 UTC
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
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-07-08 23:49:27 UTC
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
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-07-25 12:37:59 UTC
*** Bug 25202 has been marked as a duplicate of this bug. ***
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-07-25 12:38:33 UTC
*** Bug 14172 has been marked as a duplicate of this bug. ***
Comment 10 John Robinson 2003-08-01 08:05:42 UTC
I also encountered this bug on a newly-installed system. Installing ant-1.5.2 instead of 1.5.3-r4 fixed the problem.
Comment 11 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-01 13:06:14 UTC
hello, java guys
any idea?
Comment 12 Adrian Almenar 2003-08-01 15:15:19 UTC
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.
Comment 13 André Luiz Pfitzner 2003-08-31 08:44:58 UTC
I resolved it deleting the file /root/.gentoo/java-env
Comment 14 Martin Holzer (RETIRED) gentoo-dev 2003-12-07 16:39:42 UTC
closing with latest version of java-config & ant & pgsql