Ticket #14 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

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

Change History

Changed 13 years ago by djay

  • status changed from new to closed
  • resolution set to fixed

Hi Niels,

many thanks for your feedbacks.

I've added the -fPIC option to the Makefile.in line you pointed out. This is now available on the SVN server as rev.50. Indeed, I think that there is no need for adding the -shared option to the file but I can be wrong.

I hope you can tell us if this modification solve your issue when compiling on 64 bits platform.

Waiting for your reply, I close this ticket.

Please, feel free to reopen this ticket if anything still goes wrong on your side when compiling on such an architecture.

Changed 12 years ago by barbara

Zastanawiasz nad tym czy granice możliwości ludzi są nieograniczone? Na pewno interesują Cię zwierzątka. Słyszałaś o wielce popularnej na tym małym świecie księdze rekordów i chcesz znaleźć przykładowe ciekawostki ze świata.

Note: See TracTickets for help on using tickets.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png