Hi,
I finally solve the problem of the last error message I post:
---
CC module_id.o
CCLD ruby.so
/usr/lib/libz.so.1.2.3: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
---
My solution is to modify one line in the gems-2.1/ruby/module/Makefile:
# Control whether we link in libz, gcc and stdc++ libraries or not.
# In fact, simics Makefile has had a "-shared" in front of us, so we are
# overwritting their linking parameters.
#MODULE_LDFLAGS += -Wl,-Bstatic -lstdc++ -lz -static-libgcc
#MODULE_LDFLAGS += -Wl,-Bdynamic -lstdc++ -lz -shared-libgcc
(add this line)
MODULE_LDFLAGS += -Wl,-Bdynamic -lstdc++ /usr/lib64/libz.so.1.2.3 -shared-libgcc
---
Muhammad and Berkin, Thanks a lot for answering my questions.
I appreciate for your helps.
Best,
Julia
|