[Zoo-discuss] Error in compiling Rev. 773 with Java Support

Fenoy Gerald gerald.fenoy at geolabs.fr
Mon Jun 13 03:09:53 PDT 2016


Hi Rakesh,
sorry for late reply.

You can find, in revision  774 the fix about the issue you have reported which is relative to the yaml support.

I hope you can confirm that this solves your issue. Please also note that the Java ZOO-API  has been slightly modified, it is now defined in a org.zoo_project package.

I hope you can confirm that this solves your issue.

Best regards,

> Le 12 juin 2016 à 17:07, rakesh prithiviraj <rakeshuk at outlook.com> a écrit :
> 
> Hi,
> 
> I updated zoo-project to latest revision 773 and could no longer compile ZOO-API for java.
> 
> worker at vm-04:~/02-Installations/zoo-project/zoo-project/zoo-kernel$ ./configure  --with-python --with-java=/usr/lib/jvm/java-7-openjdk-amd64/
>  
> This worked fine.
> 
> Compiling ZOO-API for java throws error:
> 
> worker at vm-04:~/02-Installations/zoo-project/zoo-project/zoo-api/java$ make
> javac org/zoo_project/ZOO.java
> javah org.zoo_project.ZOO
> gcc -fPIC -c zoo-api.c -I/usr/lib/jvm/java-7-openjdk-amd64//include -I/usr/lib/jvm/java-7-openjdk-amd64//include/linux -I/usr/include/libxml2 -I../../zoo-kernel/ -I../../../thirds/cgic206/
> gcc zoo-api.o -shared -o libZOO.so -Wl,../../zoo-kernel//service_yaml.o,../../zoo-kernel/lex.cr.o,../../zoo-kernel/main_conf_read.tab.o,../../zoo-kernel/lex.sr.o,../../zoo-kernel/service_conf.tab.o,../../zoo-kernel/service_internal.o,../../zoo-kernel/server_internal.o,../../zoo-kernel/response_print.o,../../zoo-kernel/service_internal_java.o,../../zoo-kernel/service_internal_js.o,../../zoo-kernel/ulinet.o -L/usr/lib -lgdal -lxml2 -L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -lpthread -ldl  -lutil -lm  -lpython2.7 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions    -L/usr/lib/jvm/java-7-openjdk-amd64//jre/lib/amd64/server/ -ljvm -lpthread -L/usr/lib -lmozjs185 -lm -lcrypto   -lcurl -lfcgi  -lzoo_service -lyaml
> /usr/bin/ld: cannot find ../../zoo-kernel//service_yaml.o: No such file or directory
> collect2: error: ld returned 1 exit status
> make: *** [libZOO.so] Error 1
> 
> 
> Before the update, I had no issues. the following is the working output.
> 
> ftep at worker-01:~/02-Installations/zoo-project/zoo-project/zoo-api/java$ make
> javac ZOO.java
> javah ZOO
> gcc -fPIC -c zoo-api.c -I/usr/lib/jvm/java-7-openjdk-amd64//include -I/usr/lib/jvm/java-7-openjdk-amd64//include/linux -I/usr/include/libxml2 -I../../zoo-kernel/ -I../../../thirds/cgic206/
> gcc zoo-api.o -shared -o libZOO.so -Wl,../../zoo-kernel/service_internal.o,../../zoo-kernel/service_internal_java.o,../../zoo-kernel/ulinet.o -L/usr/lib -lgdal -lxml2 -L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -lpthread -ldl  -lutil -lm  -lpython2.7 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions    -L/usr/lib/jvm/java-7-openjdk-amd64//jre/lib/amd64/server/ -ljvm -lpthread  -lcrypto   -lcurl -lfcgi
> 
> Could you please let me know if I need to install any specific package for YAML. I am not compiling ZOO-kernel with YAML support. Tested on Ubuntu 14.04.
> 
> Thanks,
> Rakesh
> 
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/zoo-discuss



Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay



More information about the Zoo-discuss mailing list