agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Problem with pljava-1.4.3 on Windows x86_64
Date: Wed, 23 Nov 2011 11:17:33 +0000
Message-ID: <x6sjlf2ilu.fsf@2ndquadrant.com> (raw)
In-Reply-To: <CACgqRxq-WznPehZOKkVWbJzdU68Mxbph3VgQhoPXn6NBaFSF4w@mail.gmail.com>
References: <CACgqRxq-WznPehZOKkVWbJzdU68Mxbph3VgQhoPXn6NBaFSF4w@mail.gmail.com>

Talha Bin Rizwan <talha.rizwan at enterprisedb.com> writes:

> 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.
[snip]
> 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.

Apparently I had some trouble getting it to work when I was building
1.4.2.

The method used to build the 32bit binaries was (and probably is)
using methods deprecated, according to the mingw-w64 team.

Unfortunately, I did not blog about this and now I've forgotten the
details.

One detail is that the jvm.def file, which comes with PL/Java may not
be compatible with 64bit builds - or that may just have been an extra
caution on my part.  The 64bit build (re)creates it.

Another detail is that the EDB built 64bit server for Windows is (or
was) configured with --disable-float8-byval which results in an
incompateble PG_MODULE_MAGIC.


That's all I recall at the moment,

-- 
   Johann Oskarsson                http://www.2ndquadrant.com/    |[]
   PostgreSQL Development, 24x7 Support, Training and Services  --+--
                                                                  |
   Blog: http://my.opera.com/myrkraverk/blog/




view thread (4+ messages)  latest in thread

Message-ID: <x6sjlf2ilu.fsf@2ndquadrant.com>
Permalink:  ../x6sjlf2ilu.fsf@2ndquadrant.com/
Also on:    postgresql.org/message-id/x6sjlf2ilu.fsf@2ndquadrant.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] Problem with pljava-1.4.3 on Windows x86_64
  In-Reply-To: <x6sjlf2ilu.fsf@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox