[Zoo-discuss] zoo installation

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Wed Jun 18 06:20:44 PDT 2014


I don't know much about Makefile, and I see that -fpic is already there, 
here is the content of Makefile
ZRPATH=../../..
include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts
CFLAGS=${ZOO_CFLAGS} ${JSCFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} `geos-config 
--cflags` -DLINUX_FREE_ISSUE #-DDEBUG

cgi-env/ogr_service.zo: service.c
        g++ ${CFLAGS} -shared -fpic -o cgi-env/ogr_service.zo ./service.c 
../../../zoo-kernel/service_internal.o ${JS_LDFLAGS} ${JSLDFLAGS} 
${GDAL_LIBS} ${XML2LDFLAGS} ${MACOS_LD_FLAGS} ${ZOO_LDFLAGS} 
${MACOS_LD_NET_FLAGS} `geos-config --libs`

clean:
        rm -f cgi-env/ogr_service.zo


Please What should be modified?
thanks
steve



Fenoy Gerald <gerald.fenoy at geolabs.fr> 
2014-06-17 17:32

A
Steve.Toutant at inspq.qc.ca
cc
ZOO-discuss <zoo-discuss at lists.osgeo.org>
Objet
Re: [Zoo-discuss] zoo installation








Dear Steve,
thanks for your feedbacks and sorry for this issue.

As proposed in the messages your provided I would like to invite you to 
edit your makefile and replace the line containing:

gcc ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c 
service_internal_js.c

with the following:

gcc -fPIC ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c 
service_internal_js.c

This should solve the issue and you should be able to build the service as 
expected by following the documentation.

I hope you can confirm that this solve your issue and we can fix it in 
trunk.
Best regards,


Le 17 juin 2014 à 21:51, Steve.Toutant at inspq.qc.ca a écrit :

> 
> I'm following these instructions to install on centos6 
> 
http://www.zoo-project.org/docs/kernel/install-centos.html#compile-zoo-kernel-and-zoo-services 

> 
> When doing this I get an error 
> cd ../ogr/base-vect-ops/ 
> make 
> 
> 
> g++ -I../../../../thirds/cgic206/ -I../../../zoo-kernel/ 
-I/usr/local/include/js/ -I/usr/include/libxml2 -I/usr/include/gdal 
`geos-config --cflags` -DLINUX_FREE_ISSUE  -shared -fpic -o 
cgi-env/ogr_service.zo ./service.c ../../../zoo-kernel/service_internal.o 
../../../zoo-kernel/ulinet.o ../../../zoo-kernel/service_internal_js.o 
-lcurl  -L/usr/local/lib -lmozjs185 -lm -L/usr/lib64 -lgdal -lxml2 -lz -lm 
 -lcrypto  `geos-config --libs` 
> In file included from ./service.c:29: 
> ../../../zoo-kernel/service.h: In function ?void setMapArray(map*, 
char*, int, char*)?: 
> ../../../zoo-kernel/service.h:639: attention : deprecated conversion 
from string constant to ?char*? 
> ../../../zoo-kernel/service.h:644: attention : deprecated conversion 
from string constant to ?char*? 
> ../../../zoo-kernel/service.h: In function ?int 
addMapsArrayToMaps(maps**, maps*, char*)?: 
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion 
from string constant to ?char*? 
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion 
from string constant to ?char*? 
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion 
from string constant to ?char*? 
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion 
from string constant to ?char*? 
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion 
from string constant to ?char*? 
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion 
from string constant to ?char*? 
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion 
from string constant to ?char*? 
> ./service.c: In function ?void* createGeometryFromGML(maps*, char*)?: 
> ./service.c:55: attention : deprecated conversion from string constant 
to ?char*? 
> ./service.c: In function ?int Boundary(maps*&, maps*&, maps*&)?: 
> ./service.c:343: attention : deprecated conversion from string constant 
to ?char*? 
> ./service.c: In function ?int ConvexHull(maps*&, maps*&, maps*&)?: 
> ./service.c:350: attention : deprecated conversion from string constant 
to ?char*? 
> ./service.c: In function ?int Centroid(maps*&, maps*&, maps*&)?: 
> ./service.c:369: attention : deprecated conversion from string constant 
to ?char*? 
> /usr/bin/ld: ../../../zoo-kernel/service_internal_js.o: relocation 
R_X86_64_32 against `.rodata' can not be used when making a shared object; 
recompile with -fPIC 
> ../../../zoo-kernel/service_internal_js.o: could not read symbols: Bad 
value 
> collect2: ld a retourné 1 code d'état d'exécution 
> make: *** [cgi-env/ogr_service.zo] Erreur 1 
> 
> 
> Any ideas on what I should do please? 
> thanks_______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss



Gérald Fenoy
gerald.fenoy at geolabs.fr




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20140618/11342b6a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/octet-stream
Size: 211 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20140618/11342b6a/attachment-0001.obj>


More information about the Zoo-discuss mailing list