1.7.8: undefined reference to __xpg_strerror_r
Hughes, Gregory Mark (PSG Consumer Experience)
greg.hughes@hp.com
Tue Mar 8 19:15:00 GMT 2011
Hi,
After updating to Cygwin 1.7.8-1, I am seeing an unresolved reference to __xpg_strerror_r
This test program links successfully if I define _GNU_SOURCE to so select the alternate strerror_r entrypoint.
Compile with "gcc test.c":
#include <errno.h>
#include <string.h>
int main()
{
char err_buf[256];
strerror_r(errno, err_buf, sizeof(err_buf));
}
It appears the leading double underscore has been added to the symbol twice, I see an ____xpg_strerror_r in libcygwin.a.
$ nm /lib/libcygwin.a | grep __xpg_strerror_r
00000000 I __imp____xpg_strerror_r
00000000 T ___xpg_strerror_r
U __imp____xpg_strerror_r
Regards,
Greg.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list