[Pljava-dev] Problem with pljava-1.4.3 on Windows x86_64

From: talha(dot)rizwan at enterprisedb(dot)com (Talha Bin Rizwan)
To:
Subject: [Pljava-dev] Problem with pljava-1.4.3 on Windows x86_64
Date: 2011-11-23 09:50:48
Message-ID: CACgqRxq-WznPehZOKkVWbJzdU68Mxbph3VgQhoPXn6NBaFSF4w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hi,

I am facing problem with pljava-1.4.3 against postgresql-9.1 on windows
x86_64 machine. When I try to load pljava.dll, I am getting "missing
PG_MODULE_MAGIC" error.

I came to know that symbols are not being exported correctly for x86_64 in
pljava-1.4.3/src/C/pljava/Makefile, though the previous mechanism to export
symbols i.e: for x86_32 is working fine, problematic area of Makefile is
given below:

ifeq ($(host_cpu), x86_64)
$(DLLTOOL) --export-all --output-def $(NAME).def $(OBJS)
$(DLLTOOL) --dllname $(plugin) $(DLLTOOL_LIBFLAGS) --def $(NAME).def
gendef - ${JVM_LIB}/jvm.dll > jvm.def
${DLLTOOL} --export-all-symbols --input-def jvm.def --output-lib
libjvm.dll.a
${CC} -shared -o ${plugin} ${OBJS} ${BE_DLLLIBS} -L.
$(JAVA_HOME)/lib/jvm.lib
else
$(DLLTOOL) --export-all $(DLLTOOL_DEFFLAGS) --output-def $(NAME).def $(OBJS)
$(DLLWRAP) $(LDFLAGS_SL) -o $(plugin) --dllname $(plugin) $(DLLWRAP_FLAGS)
--def $(NAME).def $(OBJS) $(SHLIB_LINK)
$(DLLTOOL) --dllname $(plugin) $(DLLTOOL_LIBFLAGS) --def $(NAME).def
endif

I can get rid of this error by removing a check for x86_64 and use a
previous mechanism (i.e: the 'else' part) to generate the dll.

Can someone explain why the dll generation mechanism has been changed for
x86_64.

thanks
-- talha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20111123/6a46771c/attachment.html>

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Johann 'Myrkraverk' Oskarsson 2011-11-23 11:17:33 [Pljava-dev] Problem with pljava-1.4.3 on Windows x86_64
Previous Message Vorarlberger 2011-11-08 13:59:28 [Pljava-dev] How to deal with INOUT parameters