Difficulties - stat

How to link to the library?

sub __xstat is native('c');

This looks in libc.so

But the libc in my operating system is named libc.so.6

sub __xstat is native('c', v6);

Looks for libc.so.6