[ZOO-Discuss] [ZOO Project Trac] #14: Build failure GetStatus service on Ubuntu 64-bit

ZOO Project Trac zoo-dev at cartography.st
Fri Dec 10 13:01:02 PST 2010


#14: Build failure GetStatus service on Ubuntu 64-bit
--------------------------+-------------------------------------------------
Reporter:  nielshoffmann  |       Owner:            
    Type:  defect         |      Status:  new       
Priority:  minor          |   Component:  zoo-kernel
 Version:  1.0            |    Keywords:            
--------------------------+-------------------------------------------------
 I tried to build the GetStatus service from the workshop tutorials on my
 Ubuntu 64-bit system and got an error:

 /usr/bin/ld: ../../../zoo-kernel/service_internal.o: relocation
 R_X86_64_32 against `.rodata' can not be used when making a shared object;
 recompile with -fPIC
 ../../../zoo-kernel/service_internal.o: could not read symbols: Bad value
 collect2: ld returned 1 exit status
 make: *** [cgi-env/wps_status.zo] Error 1

 I think I fixed it by adding the "-shared -fPIC" arguments to the makefile
 for the zoo_loader.cgi in the service_internal.o section like this:
 service_internal.o: service_internal.c service.h
         gcc ${JS_ENABLED} ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -shared
 -fPIC -c service_internal.c

-- 
Ticket URL: <http://svn.zoo-project.org/trac/ticket/14>
ZOO Project Trac <http://www.zoo-project.org/>
Open WPS Platform


More information about the Zoo-discuss mailing list