Opened 12 years ago

Last modified 12 years ago

#4234 new defect

Java stuff in configure breaks things

Reported by: woodbri Owned by: unicoletti
Priority: high Milestone: 6.2 release
Component: MapScript-Java Version: svn-trunk (development)
Severity: normal Keywords:
Cc: sdlime, tbonfort, dmorissette

Description

I am trying to compile svn last night and can't get it to configure

./configure \
  --enable-runpath \
  --enable-ignore-missing-data \
  --with-httpd=/usr/sbin/apache2 \
  --with-proj=/usr \
  --with-agg \
  --with-gd \
  --with-freetype \
  --with-postgis \
  --without-tiff \
  --with-wmsclient \
  --with-fribidi-config=/usr/local/bin/fribidi-config \
  --with-gdal \
  --with-wfs \
  --with-ogr \
  --with-experimental-png \
  --with-geos \
  --with-cairo=yes

And it fails with java stuff that I do not want and didn't request. Should we have an option like:

--with-java=no

...
checking if --with-java-include-os-name specified... no, autodetected linux
checking for javac... /usr/bin/javac
checking symlink for /usr/bin/javac... /etc/alternatives/javac
checking symlink for /etc/alternatives/javac... /etc/alternatives/kaffe-system/bin/javac
configure: error: cannot find java include files

I have thrown an if block around the java stuff to disable it in configure so I can get it to configure without the java tests, but this seems like a problem that needs to be fixed.

Change History (9)

comment:1 by sdlime, 12 years ago

Component: MapServer C LibraryBuild Problems
Owner: changed from sdlime to dmorissette

What OS, etc...? I had no problem at all on SuSE 11 with trunk.

Steve

comment:2 by sdlime, 12 years ago

Cc: sdlime tbonfort added

comment:3 by tbonfort, 12 years ago

Component: Build ProblemsMapScript-Java
Owner: changed from dmorissette to unicoletti

preliminary fix in r13227, added a --enable-java-mapscript configure flag (off by default). Off to Umberto if he wants to fix the actual issue here.

comment:4 by unicoletti, 12 years ago

What is the output for 'which javac' and 'javac -version'?

I don't want to bounce the issue but I suspect this might have something to do with the recent libtool changes.

Could you test against a version without the libtool changes?

comment:5 by tbonfort, 12 years ago

For ref, on my local machine, the configure script passed with or without javac installed on the system. When installed, it was openjdk-6

comment:6 by tbonfort, 12 years ago

btw, it might be nice if the configuration bloc could be changed to take a path to javac instead of taking the output of which javac as is now.

comment:7 by woodbri, 12 years ago

I have tried this on Debian Lenny (yes, its obsolete and scheduled for an upgrade).

# on Lenny
javac -version
Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright IBM Corp 2000, 2007. All rights reserved.

Thanks for the no java option. I updated and tried that again and the resolved it.

comment:8 by unicoletti, 12 years ago

I have not tried it, but I believe that mapserver broke after this changeset

http://trac.osgeo.org/mapserver/changeset/12910/trunk/mapserver/configure.in

which introduces the AX_JNI_INCLUDE_DIR macro which then chokes on that interesting specimen of compiler you have so it's not mapserver fault at all.

I am for reverting r13227.

comment:9 by dmorissette, 12 years ago

Cc: dmorissette added
Note: See TracTickets for help on using tickets.