I try to compile and link the test1.c example that comes with mpatrol
and get the following linking error.
[rob@localhost fail]$ ppc_6xx-g++ -I/opt/eldk-4.1/ppc_6xx/usr/include
test1.c -L/eldk-4.1/ppc_6xx/usr/lib -lmpatrol -lbfd -liberty
/opt/eldk-4.1/usr/../ppc_6xx/usr/lib/libbfd.a(cache.o): In function
`bfd_open_file':
: undefined reference to `unlink_if_ordinary'
collect2: ld returned 1 exit status
After googling "undefined reference to unlink_if_ordinary", I found this
reference to a similar problem
http://gcc.gnu.org/ml/gcc-help/2007-08/msg00036.html
Any help or ideas on how to solve this problem would be greatly
appreciated.
Rob