problems compiling mama jni component


Roan Horning
 

Hi,

I am having a problem compiling the mama jni code. I receive the
following error message:

mamasubscriptionjni.c:33:36: fatal error: mamajni/dictionaryimpl.h:
No such file or directory

Double checking, I find that there is no dictionaryimpl.h in
mama/jni/src/c/mamajni/

I found dictionaryimpl.h in:

mama/c_cpp/src/c/dictionaryimpl.h

if I copy it to the mamajni folder and try compiling again, I get the
error message

mamasubscriptionjni.c:1109:5: error: unknown type name 'dictionaryClosure'

It appears that all the other header files in the
mama/jni/src/c/mamajni/ directory are being generated. I am guessing
something in my build environment is preventing the correct
dictionaryimpl.h from being generated also.

I am compiling the openMAMA code cloned from the git repository.
My OS is the 32 bit version of Ubuntu 11.10 with kernel
3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686
i686 i386 GNU/Linux

Any help is greatly appreciated

--Roan


Mike Schonberg <mschonberg@...>
 

Roan,

You need a valid JDK 5 or 6 from Oracle installed on your machine as well as ant. The JDK bin directory, and ant should be in your path before any other directories that may have a javac (from OpenJDK perhaps). Also you need to set your JAVA_HOME environment variable to point to the JDK.

See the README file for details.

Regards,
-Mike

-----Original Message-----
From: openmama-users-bounces@lists.openmama.org [mailto:openmama-
users-bounces@lists.openmama.org] On Behalf Of Roan Horning
Sent: Saturday, July 21, 2012 4:18 AM
To: openmama-users@lists.openmama.org
Subject: [Openmama-users] problems compiling mama jni component

Hi,

I am having a problem compiling the mama jni code. I receive the
following error message:

mamasubscriptionjni.c:33:36: fatal error: mamajni/dictionaryimpl.h:
No such file or directory

Double checking, I find that there is no dictionaryimpl.h in
mama/jni/src/c/mamajni/

I found dictionaryimpl.h in:

mama/c_cpp/src/c/dictionaryimpl.h

if I copy it to the mamajni folder and try compiling again, I get the
error message

mamasubscriptionjni.c:1109:5: error: unknown type name
'dictionaryClosure'

It appears that all the other header files in the
mama/jni/src/c/mamajni/ directory are being generated. I am guessing
something in my build environment is preventing the correct
dictionaryimpl.h from being generated also.

I am compiling the openMAMA code cloned from the git repository.
My OS is the 32 bit version of Ubuntu 11.10 with kernel
3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686
i686 i386 GNU/Linux

Any help is greatly appreciated

--Roan
_______________________________________________
Openmama-users mailing list
Openmama-users@lists.openmama.org
https://lists.openmama.org/mailman/listinfo/openmama-users
Please consider the environment before printing this email.

Visit our website at http://www.nyse.com

****************************************************

Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.


Roan Horning
 

Mike,

Thank you for your response. I did have OpenJDK and not a valid JDK
from Oracle. I downloaded JDK 6 from Oracle, and have followed your
suggestion to make sure it is the system default:

$ echo $JAVA_HOME
/home/x15/Development/jdk1.6.0_33

$ echo $PATH
/home/x15/Development/jdk1.6.0_33/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

$ which java
/home/x15/Development/jdk1.6.0_33/bin/java

$ which javac
/home/x15/Development/jdk1.6.0_33/bin/javac

$ which ant
/usr/bin/ant

$ java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b04)
Java HotSpot(TM) Server VM (build 20.8-b03, mixed mode)

$ javac -version
javac 1.6.0_33

Is this a correct version of Java from Oracle to use, or did I
download the wrong SDK?

after running cleaning the project, re-running
generateBuildFiles.sh, configure --avis-path=/usr/local, make and
then make mamajni I get the following error:

make[4]: Entering directory `/home/x15/Development/openMAMA/mama/jni/src/c'

/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../.. -I/home/x15/Development/jdk1.6.0_33/include
-I/home/x15/Development/jdk1.6.0_33/include/solaris
-I/home/x15/Development/jdk1.6.0_33/include/linux
-I/opt/openmama/include -pedantic -Wno-long-long -g -O2 -pedantic
-Wno-long-long -I./../../../../common/c_cpp/src/c
-I./../../../../mama/c_cpp/src/c -MT mamasubscriptionjni.lo -MD -MP
-MF .deps/mamasubscriptionjni.Tpo -c -o mamasubscriptionjni.lo
mamasubscriptionjni.c

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../..
-I/home/x15/Development/jdk1.6.0_33/include
-I/home/x15/Development/jdk1.6.0_33/include/solaris
-I/home/x15/Development/jdk1.6.0_33/include/linux
-I/opt/openmama/include -pedantic -Wno-long-long -g -O2 -pedantic
-Wno-long-long -I./../../../../common/c_cpp/src/c
-I./../../../../mama/c_cpp/src/c -MT mamasubscriptionjni.lo -MD -MP
-MF .deps/mamasubscriptionjni.Tpo -c mamasubscriptionjni.c -fPIC
-DPIC -o .libs/mamasubscriptionjni.o

mamasubscriptionjni.c:33:36: fatal error: mamajni/dictionaryimpl.h: No
such file or directory
compilation terminated.

make[4]: *** [mamasubscriptionjni.lo] Error 1

I am using the version of ant provided by Ubuntu. Any suggestions?

Thanks for your time,

Roan

On Mon, Jul 23, 2012 at 3:27 PM, Mike Schonberg <mschonberg@nyx.com> wrote:
Roan,

You need a valid JDK 5 or 6 from Oracle installed on your machine as well as ant. The JDK bin directory, and ant should be in your path before any other directories that may have a javac (from OpenJDK perhaps). Also you need to set your JAVA_HOME environment variable to point to the JDK.

See the README file for details.

Regards,
-Mike

-----Original Message-----
From: openmama-users-bounces@lists.openmama.org [mailto:openmama-
users-bounces@lists.openmama.org] On Behalf Of Roan Horning
Sent: Saturday, July 21, 2012 4:18 AM
To: openmama-users@lists.openmama.org
Subject: [Openmama-users] problems compiling mama jni component

Hi,

I am having a problem compiling the mama jni code. I receive the
following error message:

mamasubscriptionjni.c:33:36: fatal error: mamajni/dictionaryimpl.h:
No such file or directory

Double checking, I find that there is no dictionaryimpl.h in
mama/jni/src/c/mamajni/

I found dictionaryimpl.h in:

mama/c_cpp/src/c/dictionaryimpl.h

if I copy it to the mamajni folder and try compiling again, I get the
error message

mamasubscriptionjni.c:1109:5: error: unknown type name
'dictionaryClosure'

It appears that all the other header files in the
mama/jni/src/c/mamajni/ directory are being generated. I am guessing
something in my build environment is preventing the correct
dictionaryimpl.h from being generated also.

I am compiling the openMAMA code cloned from the git repository.
My OS is the 32 bit version of Ubuntu 11.10 with kernel
3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686
i686 i386 GNU/Linux

Any help is greatly appreciated

--Roan
_______________________________________________
Openmama-users mailing list
Openmama-users@lists.openmama.org
https://lists.openmama.org/mailman/listinfo/openmama-users
Please consider the environment before printing this email.

Visit our website at http://www.nyse.com

****************************************************

Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.


Roan Horning
 

Hi Mike,

Resolved my issue. I was trying to compile this from the src in the
git repository. I had also previously downloaded the source for the
OpenMAMA release 2.1.1.2. When I looked for the file in the 2.1.1.2
directory structure I found the needed file with the correct structure
defined. Once I copied this into the corresponding place in my git
clone, mamajni compiled without issue. Thanks once again for pointing
me in the right direction on the JDK issue.

Roan

On Sat, Jul 28, 2012 at 5:25 PM, Roan Horning <roan.horning@gmail.com> wrote:
Mike,

Thank you for your response. I did have OpenJDK and not a valid JDK
from Oracle. I downloaded JDK 6 from Oracle, and have followed your
suggestion to make sure it is the system default:

$ echo $JAVA_HOME
/home/x15/Development/jdk1.6.0_33

$ echo $PATH
/home/x15/Development/jdk1.6.0_33/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

$ which java
/home/x15/Development/jdk1.6.0_33/bin/java

$ which javac
/home/x15/Development/jdk1.6.0_33/bin/javac

$ which ant
/usr/bin/ant

$ java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b04)
Java HotSpot(TM) Server VM (build 20.8-b03, mixed mode)

$ javac -version
javac 1.6.0_33

Is this a correct version of Java from Oracle to use, or did I
download the wrong SDK?

after running cleaning the project, re-running
generateBuildFiles.sh, configure --avis-path=/usr/local, make and
then make mamajni I get the following error:

make[4]: Entering directory `/home/x15/Development/openMAMA/mama/jni/src/c'

/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../.. -I/home/x15/Development/jdk1.6.0_33/include
-I/home/x15/Development/jdk1.6.0_33/include/solaris
-I/home/x15/Development/jdk1.6.0_33/include/linux
-I/opt/openmama/include -pedantic -Wno-long-long -g -O2 -pedantic
-Wno-long-long -I./../../../../common/c_cpp/src/c
-I./../../../../mama/c_cpp/src/c -MT mamasubscriptionjni.lo -MD -MP
-MF .deps/mamasubscriptionjni.Tpo -c -o mamasubscriptionjni.lo
mamasubscriptionjni.c

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../..
-I/home/x15/Development/jdk1.6.0_33/include
-I/home/x15/Development/jdk1.6.0_33/include/solaris
-I/home/x15/Development/jdk1.6.0_33/include/linux
-I/opt/openmama/include -pedantic -Wno-long-long -g -O2 -pedantic
-Wno-long-long -I./../../../../common/c_cpp/src/c
-I./../../../../mama/c_cpp/src/c -MT mamasubscriptionjni.lo -MD -MP
-MF .deps/mamasubscriptionjni.Tpo -c mamasubscriptionjni.c -fPIC
-DPIC -o .libs/mamasubscriptionjni.o

mamasubscriptionjni.c:33:36: fatal error: mamajni/dictionaryimpl.h: No
such file or directory
compilation terminated.

make[4]: *** [mamasubscriptionjni.lo] Error 1

I am using the version of ant provided by Ubuntu. Any suggestions?

Thanks for your time,

Roan




On Mon, Jul 23, 2012 at 3:27 PM, Mike Schonberg <mschonberg@nyx.com> wrote:
Roan,

You need a valid JDK 5 or 6 from Oracle installed on your machine as well as ant. The JDK bin directory, and ant should be in your path before any other directories that may have a javac (from OpenJDK perhaps). Also you need to set your JAVA_HOME environment variable to point to the JDK.

See the README file for details.

Regards,
-Mike

-----Original Message-----
From: openmama-users-bounces@lists.openmama.org [mailto:openmama-
users-bounces@lists.openmama.org] On Behalf Of Roan Horning
Sent: Saturday, July 21, 2012 4:18 AM
To: openmama-users@lists.openmama.org
Subject: [Openmama-users] problems compiling mama jni component

Hi,

I am having a problem compiling the mama jni code. I receive the
following error message:

mamasubscriptionjni.c:33:36: fatal error: mamajni/dictionaryimpl.h:
No such file or directory

Double checking, I find that there is no dictionaryimpl.h in
mama/jni/src/c/mamajni/

I found dictionaryimpl.h in:

mama/c_cpp/src/c/dictionaryimpl.h

if I copy it to the mamajni folder and try compiling again, I get the
error message

mamasubscriptionjni.c:1109:5: error: unknown type name
'dictionaryClosure'

It appears that all the other header files in the
mama/jni/src/c/mamajni/ directory are being generated. I am guessing
something in my build environment is preventing the correct
dictionaryimpl.h from being generated also.

I am compiling the openMAMA code cloned from the git repository.
My OS is the 32 bit version of Ubuntu 11.10 with kernel
3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686
i686 i386 GNU/Linux

Any help is greatly appreciated

--Roan
_______________________________________________
Openmama-users mailing list
Openmama-users@lists.openmama.org
https://lists.openmama.org/mailman/listinfo/openmama-users
Please consider the environment before printing this email.

Visit our website at http://www.nyse.com

****************************************************

Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.