NOT ABLE TO DO THE DIRECTORY OPERATIONS

Hello,
my application needs directory operation on nfs file system.Iam able to mount the nfs file system and I can do all file operations successfully,but directory operations are giving problems. when I opened a directory using opendir() function , returned value is not NULL but it is 1.when I do the readir operation using this value SIGSEV error is coming saying source is not available for readir64();
Please let me know which shared library I need to use.I am using libc.so.3.

Can you do it with the command ls?

Yes ,I am able to do with ls command.

Sorry don’t know

NFS configuration problem?