<br><font size=2 face="sans-serif">I don't know much about Makefile, and
I see that -fpic is already there, here is the content of Makefile</font>
<br><font size=2 face="sans-serif">ZRPATH=../../..</font>
<br><font size=2 face="sans-serif">include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts</font>
<br><font size=2 face="sans-serif">CFLAGS=${ZOO_CFLAGS} ${JSCFLAGS} ${XML2CFLAGS}
${GDAL_CFLAGS} `geos-config --cflags` -DLINUX_FREE_ISSUE #-DDEBUG</font>
<br>
<br><font size=2 face="sans-serif">cgi-env/ogr_service.zo: service.c</font>
<br><font size=2 face="sans-serif">        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`</font>
<br>
<br><font size=2 face="sans-serif">clean:</font>
<br><font size=2 face="sans-serif">        rm -f cgi-env/ogr_service.zo<br>
</font>
<p>
<p><font size=2 face="sans-serif">Please What should be modified?</font>
<p><font size=2 face="sans-serif">thanks</font>
<p><font size=2 face="sans-serif">steve</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Fenoy Gerald <gerald.fenoy@geolabs.fr></b>
</font>
<p><font size=1 face="sans-serif">2014-06-17 17:32</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">ZOO-discuss <zoo-discuss@lists.osgeo.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Zoo-discuss] zoo installation</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Dear Steve,<br>
thanks for your feedbacks and sorry for this issue.<br>
<br>
As proposed in the messages your provided I would like to invite you to
edit your makefile and replace the line containing:<br>
<br>
gcc ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c service_internal_js.c<br>
<br>
with the following:<br>
<br>
gcc -fPIC ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c service_internal_js.c<br>
<br>
This should solve the issue and you should be able to build the service
as expected by following the documentation.<br>
<br>
I hope you can confirm that this solve your issue and we can fix it in
trunk.<br>
Best regards,<br>
<br>
<br>
Le 17 juin 2014 à 21:51, Steve.Toutant@inspq.qc.ca a écrit :<br>
<br>
> <br>
> I'm following these instructions to install on centos6 <br>
> http://www.zoo-project.org/docs/kernel/install-centos.html#compile-zoo-kernel-and-zoo-services
<br>
> <br>
> When doing this I get an error <br>
> cd ../ogr/base-vect-ops/ <br>
> make <br>
> <br>
> <br>
> 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` <br>
> In file included from ./service.c:29: <br>
> ../../../zoo-kernel/service.h: In function ‘void setMapArray(map*,
char*, int, char*)’: <br>
> ../../../zoo-kernel/service.h:639: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ../../../zoo-kernel/service.h:644: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ../../../zoo-kernel/service.h: In function ‘int addMapsArrayToMaps(maps**,
maps*, char*)’: <br>
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ../../../zoo-kernel/service.h:691: attention : deprecated conversion
from string constant to ‘char*’ <br>
> ./service.c: In function ‘void* createGeometryFromGML(maps*, char*)’:
<br>
> ./service.c:55: attention : deprecated conversion from string constant
to ‘char*’ <br>
> ./service.c: In function ‘int Boundary(maps*&, maps*&, maps*&)’:
<br>
> ./service.c:343: attention : deprecated conversion from string constant
to ‘char*’ <br>
> ./service.c: In function ‘int ConvexHull(maps*&, maps*&,
maps*&)’: <br>
> ./service.c:350: attention : deprecated conversion from string constant
to ‘char*’ <br>
> ./service.c: In function ‘int Centroid(maps*&, maps*&, maps*&)’:
<br>
> ./service.c:369: attention : deprecated conversion from string constant
to ‘char*’ <br>
> /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 <br>
> ../../../zoo-kernel/service_internal_js.o: could not read symbols:
Bad value <br>
> collect2: ld a retourné 1 code d'état d'exécution <br>
> make: *** [cgi-env/ogr_service.zo] Erreur 1 <br>
> <br>
> <br>
> Any ideas on what I should do please? <br>
> thanks_______________________________________________<br>
> Zoo-discuss mailing list<br>
> Zoo-discuss@lists.osgeo.org<br>
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss<br>
<br>
<br>
<br>
Gérald Fenoy<br>
gerald.fenoy@geolabs.fr<br>
<br>
</font></tt>
<br>
<br>
<br>