[Mono-list] glib build error

Adam Treat manybooby@yahoo.com
Fri, 12 Oct 2001 12:44:04 -0700

When building glib:

/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. 
-DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gstrfuncs.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall 
-D_REENTRANT -c gstrfuncs.c -o gstrfuncs.o
gstrfuncs.c:  In function 'g_strsignal':
gstrfuncs.c:705 conflicting types for 'strsignal'
/usr/include/string.h:70: previous declaration of 'strsignal'
gstrfuncs.c:705: warning: extern declaration of 'strsignal' doesn't match 
global one
make[2]: *** [gstrfuncs.lo] Error1
make[1]: *** [all-recursive] Error1
make: *** [all-recursive-am] Error2

Here is the relevant code??

<snip src=/usr/include/string.h line=70>
68:  #ifdef __CYGWIN__
69:  #ifndef DEFS_H	/* Kludge to work around problem compiling in gdb */
70:  const char  *_EXFUN(strsignal, (int __signo));
71:  #endif
72:  int     _EXFUN(strtosigno, (const char *__name));
73:  #endif

<snip src=gstrfuncs.c line=705>
704:  #ifdef HAVE_STRSIGNAL
705:    extern char *strsignal (int sig);
706:    return strsignal (signum);

Anyone know what's going on?

Adam Treat

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com