[ltt-dev] Using userspace markers

OB obconseil at gmail.com
Fri Aug 8 07:56:47 EDT 2008


Hello !

I'm trying to use lttng with the userspace markers, from the
markers-userspace-0.5.tar.bz2 version.

I'm working on a x86_64 machine installed with both 32 & 64 libs,
and gcc  4.1.2  (Fedora 8).

I have this error when compiling in 64 bits :
(I added the -m64, but it does not change anything)

# make -f Makefile_64
# gcc -m64 -Wl,-Telf_x86_64.xmark -O2 -fPIC -DCONFIG_MARKERS -shared 
-o libtestlib.so testlib.c marker-lib.o

/usr/bin/ld: marker-lib.o: relocation R_X86_64_PC32 against 
`__stop___markers' can not be used when making a shared object; 
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

However, the program compiles in 32 bits.

There is a patch in this directory :
patch-linker-script-x86_64.x.patch , but I don't understand on what 
file applying it.

Could you help me on this ?
Thanks !

Julien




More information about the lttng-dev mailing list