[dtrace-discuss] Link errors with DTrace USDT in C++

James McIlree jmcilree at apple.com
Wed May 7 10:51:41 PDT 2008


On May 7, 2008, at 6:19 AM, Chris Dumoulin wrote:
> Could this error be related to using GNU ld? This thread:
> http://mail.opensolaris.org/pipermail/dtrace-discuss/2006-March/001199.html
> indicates that DTrace USDT might not work with GNU ld, but that  
> posting was over two years ago.
>
> Should this work with GNU ld? Why would it work on x86 and not on a  
> Sparc system? Perhaps it's related to the difference in object code  
> that dtrace emits for these two platforms. Anybody have any comments?

	Have you verified that the probes are actually firing when enabled on  
x86?

	It may be that you are just getting lucky that things link on x86,  
but they
aren't actually working.

	I would try with the Solaris toolchain and see if things work  
correctly. If
they still do not, you've likely got a real bug.

	James M



More information about the dtrace-discuss mailing list