[Zoo-discuss] zoo installation

Fenoy Gerald gerald.fenoy at geolabs.fr
Wed Jun 18 07:40:24 PDT 2014


Dear Steve,
thanks a lot for your feedbacks.

You are providing wrong lines to make modification, so indeed there is already -fPIC there. You should add the -fPIC option to the compilation line for the service_internal_js.o target, so the line right after the one starting with :

service_internal_js.o: 

You can find the updated file on trunk, revision 487 [1].

Let us know if it solve your issue,
Best regards,

[1] http://zoo-project.org/trac/changeset/487

Le 18 juin 2014 à 15:20, Steve.Toutant at inspq.qc.ca a écrit :

> 
> 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
> 
> 
> 
> 
> <signature.asc>
> 



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/20140618/04085e15/attachment.pgp>


More information about the Zoo-discuss mailing list