Re: [libvirt] [PATCH 0/7] Update systemtap probing

Hi, I got similar mistake with you ,so I reconfigured and had dtrace installed. But can't successfully recompile dtraced-libvirt with every possible mean. ./autogen --with-pic --enable-shared=yes --with-dtrace make Then I got error below: *** Warning: Linking the shared library libvirt.la against the non-libtool *** objects probes.o is not portable! /usr/bin/ld: probes.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC probes.o: could not read symbols: Bad value -fPIC flag added but nothing changed.BTW,I'm on 64bit system.Do you have any idea about the reconfiguration? Pls let me know if anyone has good advice.Thx!

Hi, I got similar mistake with you ,so I reconfigured and had dtrace installed. But can't successfully recompile dtraced-libvirt with every possible mean. ./autogen --with-pic --enable-shared=yes --with-dtrace make Then I got error below: *** Warning: Linking the shared library libvirt.la against the non-libtool *** objects probes.o is not portable! /usr/bin/ld: probes.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC probes.o: could not read symbols: Bad value -fPIC flag added but nothing changed.BTW,I'm on 64bit system.Do you have any idea about the reconfiguration? Pls let me know if anyone has good advice.Thx!

On Wed, Oct 26, 2011 at 11:14:52PM +0800, Smith Brian wrote:
Hi, I got similar mistake with you ,so I reconfigured and had dtrace installed. But can't successfully recompile dtraced-libvirt with every possible mean.
./autogen --with-pic --enable-shared=yes --with-dtrace make
Then I got error below:
*** Warning: Linking the shared library libvirt.la against the non-libtool *** objects probes.o is not portable! /usr/bin/ld: probes.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC probes.o: could not read symbols: Bad value
-fPIC flag added but nothing changed.BTW,I'm on 64bit system.Do you have any idea about the reconfiguration?
Well remove the '--with-pic' flag would be the most likely fix. Also --enable-shared=yes is not required, since that's the default Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

You're right, that is the root cause of the numeric errors, supporting systemtap should install not only package "systemtap",but also "systemtap*" to get dtrace installed. And also,many Ubuntu versions have a bug called:"systemtap process probes requires CONFIG_UTRACE enabled",which means I can't use it without recompile the kernel :'( Thank you so much!
participants (3)
-
Daniel P. Berrange
-
lvroyce
-
Smith Brian