Ticket #14 (closed defect: fixed)
Build failure GetStatus service on Ubuntu 64-bit
Reported by: | nielshoffmann | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | zoo-kernel | Version: | 1.0 |
Keywords: | Cc: |
Description
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