------- Additional Comments From nicholas at mxc dot ca  2009-08-11 04:48 
-------
Created an attachment (id=4127)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4127&action=view)
libopagent.so.1.0.0

Hrm. I've tried the obvious things and can seem to make my own "libopagent.so"
minimal testcase.

$ cat opagenttest.c
char op_open_agent ();
int
main ()
{
return op_open_agent ();
  ;
  return 0;
}

With gold:
$ gcc opagenttest.c -lopagent -L/usr/lib/oprofile
$

With binutils:
$ gcc opagenttest.c -lopagent -L/usr/lib/oprofile
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_check_format'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_init'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_openr'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_perror'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_get_mach'
/usr/lib/oprofile/libopagent.so: undefined reference to `bfd_get_arch'
collect2: ld returned 1 exit status


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10508

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to