Build failure when building ruby bindings on Fedora

Jonathan Underwood jonathan.underwood at gmail.com
Fri Nov 27 03:55:54 PST 2015


Hi,

I am attempting to build 0.21 on Fedora rawhide and am hitting the
following failure when building the ruby bindings - seems to be an
unresolved symbol error during linking. Any help appreciated.

Thanks,
Jonathan

gcc -shared -o notmuch.so messages.o tags.o filenames.o threads.o
status.o query.o directory.o message.o init.o thread.o database.o -L.
-L/usr/lib64 -L. -Wl,-z,relro
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector
-rdynamic -Wl,-export-dynamic -Wl,--no-undefined  -m64
../../lib/libnotmuch.so -lruby  -lpthread -ldl -lcrypt -lm   -lc
/usr/bin/ld: messages.o: relocation R_X86_64_PC32 against undefined
symbol `rb_eRuntimeError' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status


More information about the notmuch mailing list