The cast of rstrm->tcp_handle in xdr_rec.c:xdrrec_getpos() to obtain a valid file descriptor for use with lseek() is incorrect.
The correct cast is *(int *)rstrm->tcp_handle.