[Pljava-dev] Problems compiling under Mac OS X

From: p3consulting at mac(dot)com (p3consulting)
To:
Subject: [Pljava-dev] Problems compiling under Mac OS X
Date: 2004-05-14 08:29:53
Message-ID: E02918AC-A580-11D8-9A58-0003933F0AB6@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hello,

Here some reports of problems I have got trying compiling pljava under
Mac OS X:

1. the jni.h file is in the JavaVM framework
This requires a simple modification of the pljva/C/Makefile

#-----------------------------------------------------------------------
--
#
# Makefile--
# Makefile for pljava
#
#-----------------------------------------------------------------------
--
NAME := pljava

include $(MODULEROOT)/Makefile.global

ifeq ($(PORTNAME), win32)
DLL_BUILD := 1
else
ifeq ($(PORTNAME), cygwin)
DLL_BUILD := 1
override CPPFLAGS := -DCYGWIN $(CPPFLAGS)
else
ifeq ($(PORTNAME), darwin)
DLL_BUILD := 0
override CPPFLAGS := -DDARWIN -framework JavaVM $(CPPFLAGS)
else
JRE_INCL := $(PORTNAME)
ifeq ($(host_cpu), i686)
JRE_LIB := lib/i386/client
else
JRE_LIB := lib/$(host_cpu)/client
endif
endif
endif
endif

2. every #include <jni.h>
should be converted to
#ifdef DARWIN
#include <JavaVM/jni.h>
#else
#include <jni.h>
#endif

3. ant 1.5.1 is installed by default on Mac OS X
the build fails with

BUILD FAILED
file:/Volumes/Data2/download_osx/PostgreSQL/org.postgresql.pljava/
build.xml:30: Could not create task or type of type: depend.

Ant could not find the task or a class this task relies upon.

Should I have to install another ant version ?
Another .jar missing ?

Any idea ?

Pascal Pochet
p3consulting at mac.com
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2369 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20040514/df226594/attachment.bin>

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2004-05-14 10:58:55 [Pljava-dev] Problems compiling under Mac OS X
Previous Message Thomas Hallgren 2004-02-19 14:15:11 [Pljava-dev] memory jvm