[Zoo-discuss] zoo installation

Fenoy Gerald gerald.fenoy at geolabs.fr
Tue Jun 17 14:32:21 PDT 2014


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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20140617/700ce257/attachment.pgp>


More information about the Zoo-discuss mailing list