[ltt-dev] Using userspace markers

Mathieu Desnoyers compudj at krystal.dyndns.org
Fri Aug 8 13:42:01 EDT 2008


* OB (obconseil at gmail.com) wrote:
> 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
>

Have you made sure to do a make clean to remove the 32 bits
marker-lib.o ?


> 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.
>

It's included in the file "elf_x86_64.xmark". Should normally be applied
to your system-wide elf_x86_64.x linker script.

Mathieu

> Could you help me on this ?
> Thanks !
>
> Julien
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list