[Pljava-dev] pljava.so wont compile - now it does! :)

From: ch at lathspell(dot)de (Christian Hammers)
To:
Subject: [Pljava-dev] pljava.so wont compile - now it does! :)
Date: 2013-01-12 22:47:38
Message-ID: 20130112234738.03b606b1@james.intern
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hello

Wow, I finally got it working. Took me only 2h :-)

I got a strange error message with the test suite though. Already tried to
replace the "UTC" with "GMT" but somehow it does not show any effect:

java -cp /usr/share/java/postgresql.jar:target/pljava-jdbc-0.0.1-SNAPSHOT.jar:target/pljava-examples-0.0.1-SNAPSHOT.jar:target/pljava-api-0.0.1-SNAPSHOT.jar:target/org.postgresql.pljava.test.jar org.postgresql.pljava.test.Tester -user postgres -password geheim -database pljava
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
*** testTimestamp()
Timestamp = 2013-01-12 23:44:07.336, Timestamptz = 2013-01-12 23:44:07.338
org.postgresql.util.PSQLException: ERROR: java.lang.SecurityException: read on /usr/share/javazi/UTC
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:374)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:366)
at org.postgresql.pljava.test.Tester.testTimestamp(Tester.java:527)
at org.postgresql.pljava.test.Tester.testParameters(Tester.java:288)
at org.postgresql.pljava.test.Tester.main(Tester.java:227)

What are your plans on integrating javah and the C sources into maven?
Is it possible to tell maven to first compile the java stuff and then
generate C header files from two sub-projects before finally compiling
the C project?

bye,

-christian-

Am Fri, 11 Jan 2013 20:40:13 +0100
schrieb Christian Hammers <ch at lathspell.de>:

> Hello
>
> With the hellblazer git repository code I finally got four .jar files
> but now I wonder how to compile the shared library from the C sources.
> None of the Makefiles seem to work and the pom.xml contains no
> reference to a C compiler:
>
> -=(~/workspace/pljava/lathspell-master/C)$ make
> make[1]: Entering directory
> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
> make[1]: /srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile:
> No such file or directory make[1]: *** No rule to make target
> `/srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile'.
> Stop. make[1]: Leaving directory
> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
> make: *** [pljava_all] Error 2
>
> -=(~/workspace/pljava/lathspell-master/C/pljava)$ make
> find: `/pljava': No such file or directory
> make: Nothing to be done for `checkjavahome'.
>
> (I'm using gcc-4.7 and Oracle/OpenJDK-1.7.
>
> bye,
>
> -christian-
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2013-01-13 09:10:25 [Pljava-dev] Source code move to Git
Previous Message Hal Hildebrand 2013-01-12 14:45:17 [Pljava-dev] Compatibility with Java 1.7 and PostgreSQL 9.2? Is this project still alive?