help: Glib under Cygwin

chang_shen@att.net chang_shen@att.net
Fri Apr 6 07:24:00 GMT 2001


Hi, all:
I am not sure Cygwin supports glib or not. I try to 
compile glib under cygwin (glib is needed for many many 
gnu tools). Below is what I got from configure and make 
log file. I also tried to change g_strsignal() as 
follows, but failed to compile.

Any help is appreciated.

const gchar* g_strsignal(int sig){
    extern const char* strsignal(int signum);
    return strsignal(sig);
}

======config.log======
creating cache ./config.cache
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-
compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/i686-pc-
cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) 
is GNU ld... yes
checking for BSD-compatible nm... /bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... .exe
checking for gcc option to produce PIC... none
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... 
yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) 
is GNU ld... yes
checking whether the linker (/usr/i686-pc-
cygwin/bin/ld.exe) supports shared
libraries... yes
checking command to parse /bin/nm -B output... ok
checking how to hardcode library paths into programs... 
immediate
checking for /usr/i686-pc-cygwin/bin/ld.exe option to 
reload object
files... -r
checking dynamic linker characteristics... Win32 ld.exe
checking if libtool supports shared libraries... yes
checking if package supports dlls... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking whether to enable maintainer-specific portions 
of Makefiles... no
checking host system type... i686-pc-cygwin
checking whether to enable memory checking... no
checking whether to enable memory profiling... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... 
yes
checking whether the C compiler (gcc -g -O2 ) is a cross-
compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD compatible install... /bin/install -c
checking for extra flags to get ANSI library 
prototypes... none needed
checking for extra flags for POSIX compliance... none 
needed
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for vprintf... yes
checking for atexit... yes
checking for on_exit... no
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 4
checking size of long long... 8
checking for working const... yes
checking for __inline... yes
checking for __inline__... yes
checking for inline... yes
checking whether byte ordering is bigendian... no
checking for float.h... yes
checking for limits.h... yes
checking for pwd.h... yes
checking for sys/param.h... yes
checking for sys/poll.h... yes
checking for sys/select.h... yes
checking for sys/time.h... yes
checking for sys/times.h... yes
checking for unistd.h... yes
checking for values.h... no
checking for lstat... yes
checking for strerror... yes
checking for strsignal... yes
checking for memmove... yes
checking for vsnprintf... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for poll... yes
checking for sys_errlist... no
checking for sys_siglist... no
checking for sys_siglist declaration... no
checking for fd_set... yes, found in sys/types.h
checking for wchar.h... yes
checking for wctype.h... no
checking for iswalnum... no
checking for iswalnum in -lw... no
checking if iswalnum() and friends are properly 
defined... no
checking whether realloc (NULL,) will work... yes
checking for an implementation of va_copy()... no
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... yes
checking for dlopen... yes
checking for dlsym... yes
checking for preceeding underscore in symbols... no
checking for dlerror... yes
checking for pthread.h... yes
checking for thread implementation... posix
checking for pthread_attr_init in -lpthread... no
checking for pthread_attr_init in -lpthreads... no
checking for pthread_attr_init in -lthread... no
checking for pthread_attr_init in -lc_r... no
checking for pthread_attr_init... yes
checking necessary linker options...
checking necessary compiler options...  -D_REENTRANT
checking for localtime_r... no
checking for rand_r... no
checking for getpwuid_r... no
checking whether pthread_getspecific is posix like... yes
checking whether pthread_mutex_trylock is posix like... 
yes
checking whether pthread_cond_timedwait is posix like... 
yes
checking size of pthread_mutex_t... 4
checking byte contents of pthread_mutex_t... 0
checking system definitions for POLLIN POLLOUT POLLPRI 
POLLERR POLLHUP
POLLNVAL... done
updating cache ./config.cache
creating ./config.status
creating glib.spec
creating Makefile
creating glib-config
creating gmodule/gmoduleconf.h
creating gmodule/Makefile
creating gthread/Makefile
creating docs/Makefile
creating docs/glib-config.1
creating tests/Makefile
creating config.h
creating glibconfig.h
:2639: checking size of int
configure:2658: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:2650: warning: return-type defaults to `int'
configure:2678: checking size of void *
configure:2697: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:2689: warning: return-type defaults to `int'
configure:2717: checking size of long long
configure:2736: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:2728: warning: return-type defaults to `int'
configure:2757: checking for working const
configure:2811: gcc -c -g -O2 -Wall  conftest.c 1>&5
configure: In function `main':
configure:2785: warning: unused variable `s'
configure:2805: warning: unused variable `foo'
configure:2773: warning: unused variable `zero'
configure:2767: warning: unused variable `x'
configure:2784: warning: `t' might be used uninitialized 
in this function
configure:2802: warning: `b' might be used uninitialized 
in this function
configure:2833: checking for __inline
configure:2849: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:2874: checking for __inline__
configure:2890: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:2915: checking for inline
configure:2931: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:2957: checking whether byte ordering is 
bigendian
configure:2975: gcc -c -g -O2 -Wall  conftest.c 1>&5
configure:2990: gcc -c -g -O2 -Wall  conftest.c 1>&5
configure: In function `main':
configure:2985: `not' undeclared (first use in this 
function)
configure:2985: (Each undeclared identifier is reported 
only once
configure:2985: for each function it appears in.)
configure:2985: parse error before `big'
configure: failed program was:
#line 2979 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
configure:3051: checking for float.h
configure:3061: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3094: checking for limits.h
configure:3104: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3137: checking for pwd.h
configure:3147: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3180: checking for sys/param.h
configure:3190: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3223: checking for sys/poll.h
configure:3233: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3266: checking for sys/select.h
configure:3276: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3309: checking for sys/time.h
configure:3319: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3352: checking for sys/times.h
configure:3362: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3395: checking for unistd.h
configure:3405: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3438: checking for values.h
configure:3448: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3444: values.h: No such file or directory
configure: failed program was:
#line 3443 "configure"
#include "confdefs.h"
#include <values.h>
configure:3482: checking for lstat
configure:3510: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3482: checking for strerror
configure:3510: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3482: checking for strsignal
configure:3510: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3482: checking for memmove
configure:3510: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3482: checking for vsnprintf
configure:3510: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3482: checking for strcasecmp
configure:3510: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3482: checking for strncasecmp
configure:3510: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3482: checking for poll
configure:3510: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3537: checking for sys_errlist
configure:3550: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
/cygdrive/c/TEMP/ccQmXldn.o(.text+0xc): undefined 
reference to `sys_nerr'
/cygdrive/c/TEMP/ccQmXldn.o(.text+0x16): undefined 
reference to
`sys_errlist'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3539 "configure"
#include "confdefs.h"

int main() {

extern char *sys_errlist[];
extern int sys_nerr;
sys_errlist[sys_nerr-1][0] = 0;

; return 0; }
configure:3570: checking for sys_siglist
configure:3582: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
/cygdrive/c/TEMP/ccyBMwyI.o(.text+0xf): undefined 
reference to `sys_siglist'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3572 "configure"
#include "confdefs.h"

int main() {

extern char *sys_siglist[];
exit (sys_siglist[0]);

; return 0; }
configure:3602: checking for sys_siglist declaration
configure:3613: gcc -c -g -O2 -Wall  conftest.c 1>&5
configure: In function `main':
configure:3608: `sys_siglist' undeclared (first use in 
this function)
configure:3608: (Each undeclared identifier is reported 
only once
configure:3608: for each function it appears in.)
configure: failed program was:
#line 3604 "configure"
#include "confdefs.h"
#include <signal.h>
int main() {

strlen (sys_siglist[0]);

; return 0; }
configure:3633: checking for fd_set
configure:3642: gcc -c -g -O2 -Wall  conftest.c 1>&5
configure: In function `main':
configure:3638: warning: unused variable `writeMask'
configure:3638: warning: unused variable `readMask'
configure:3690: checking for wchar.h
configure:3697: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3721: checking for wctype.h
configure:3728: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:3724: wctype.h: No such file or directory
configure: failed program was:
#line 3723 "configure"
#include "confdefs.h"
#include <wctype.h>
configure:3752: checking for iswalnum
configure:3780: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
/cygdrive/c/TEMP/ccvYZmSA.o(.text+0xc): undefined 
reference to `iswalnum'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3757 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully 
few prototypes,
    which can conflict with char iswalnum(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an 
error.  */
/* We use char because int might match the return type 
of a gcc2
    builtin and then its argument prototype would still 
apply.  */
char iswalnum();

int main() {

/* The GNU C library defines this for functions which it 
implements
    to always fail with ENOSYS.  Some functions are 
actually named
    something starting with __ and the normal name is an 
alias.  */
#if defined (__stub_iswalnum) || defined 
(__stub___iswalnum)
choke me
#else
iswalnum();
#endif

; return 0; }
configure:3798: checking for iswalnum in -lw
configure:3817: gcc -o conftest -g -O2 -Wall   
conftest.c -lw   1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/gcc-2.95.2-
9/../../../../i686-pc-cygwin/bin/
ld: cannot find -lw
collect2: ld returned 1 exit status
configure: failed program was:
#line 3806 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an 
error.  */
/* We use char because int might match the return type 
of a gcc2
    builtin and then its argument prototype would still 
apply.  */
char iswalnum();

int main() {
iswalnum()
; return 0; }
configure:3849: checking if iswalnum() and friends are 
properly defined
configure:3871: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure: In function `main':
configure:3866: warning: implicit declaration of 
function `iswalnum'
/cygdrive/c/TEMP/ccoM6rcE.o(.text+0x11): undefined 
reference to `iswalnum'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3851 "configure"
#include "confdefs.h"
#include <stdlib.h>
int main() {

#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
#  ifdef HAVE_WCTYPE_H
#    include <wctype.h>
#  else
#    ifdef HAVE_WCHAR_H
#      include <wchar.h>
#    endif
#  endif
#else
#  define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum
(c))
#endif
iswalnum((wchar_t) 0);

; return 0; }
configure:3892: checking whether realloc (NULL,) will 
work
configure:3909: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:3934: checking for an implementation of va_copy
()
configure:3960: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure: In function `f':
configure:3949: warning: implicit declaration of 
function `va_copy'
configure:3947: warning: `args2' might be used 
uninitialized in this
function
/cygdrive/c/TEMP/ccqM5jyx.o(.text+0x10): undefined 
reference to `va_copy'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3943 "configure"
#include "confdefs.h"

 #include <stdarg.h>
 void f (int i, ...) {
 va_list args1, args2;
 va_start (args1, i);
 va_copy (args2, args1);
 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 
42)
   exit (1);
 va_end (args1); va_end (args2);
 }
 int main() {
   f (0, 42);
   return 0;
 }
configure:3979: checking for an implementation of 
__va_copy()
configure:4005: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:4024: checking whether va_lists can be copied 
by value
configure:4050: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:4094: checking for dlopen
configure:4122: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:4137: checking for dlsym
configure:4165: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:4378: checking for preceeding underscore in 
symbols
configure:4401: gcc -o conftest -g -O2 -Wall    
conftest.c   1>&5
configure: failed program was:
#line 4387 "configure"
#include "confdefs.h"

  #include <dlfcn.h>
                int glib_underscore_test (void) { return 
42; }
  int main() {
    void *f1 = (void*)0, *f2 = (void*)0, *handle;
    handle = dlopen ((void*)0, 0);
    if (handle) {
      f1 = dlsym (handle, "glib_underscore_test");
      f2 = dlsym (handle, "_glib_underscore_test");
    } return (!f2 || f1);
  }
configure:4426: checking for dlerror
configure:4454: gcc -o conftest -g -O2 -Wall   
conftest.c   1>&5
configure:4583: checking for pthread.h
configure:4593: gcc -E  conftest.c >/dev/null 
2>conftest.out
configure:4662: checking for thread implementation
configure:4681: checking for pthread_attr_init in -
lpthread
configure:4700: gcc -o conftest -g -O2 -Wall   
conftest.c -lpthread   1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/gcc-2.95.2-
9/../../../../i686-pc-cygwin/bin/
ld: cannot find -lpthread
collect2: ld returned 1 exit status
configure: failed program was:
#line 4689 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an 
error.  */
/* We use char because int might match the return type 
of a gcc2
    builtin and then its argument prototype would still 
apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
configure:4722: checking for pthread_attr_init in -
lpthreads
configure:4741: gcc -o conftest -g -O2 -Wall   
conftest.c -lpthreads   1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/gcc-2.95.2-
9/../../../../i686-pc-cygwin/bin/
ld: cannot find -lpthreads
collect2: ld returned 1 exit status
configure: failed program was:
#line 4730 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an 
error.  */
/* We use char because int might match the return type 
of a gcc2
    builtin and then its argument prototype would still 
apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
configure:4764: checking for pthread_attr_init in -
lthread
configure:4783: gcc -o conftest -g -O2 -Wall   
conftest.c -lthread   1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/gcc-2.95.2-
9/../../../../i686-pc-cygwin/bin/
ld: cannot find -lthread
collect2: ld returned 1 exit status
configure: failed program was:
#line 4772 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an 
error.  */
/* We use char because int might match the return type 
of a gcc2
    builtin and then its argument prototype would still 
apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
configure:4806: checking for pthread_attr_init in -lc_r
configure:4825: gcc -o conftest -g -O2 -Wall   
conftest.c -lc_r   1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/gcc-2.95.2-
9/../../../../i686-pc-cygwin/bin/
ld: cannot find -lc_r
collect2: ld returned 1 exit status
configure: failed program was:
#line 4814 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an 
error.  */
/* We use char because int might match the return type 
of a gcc2
    builtin and then its argument prototype would still 
apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
configure:4848: checking for pthread_attr_init
configure:4876: gcc -o conftest -g -O2 -Wall   
conftest.c  1>&5
configure:5092: checking necessary linker options
configure:5137: checking necessary compiler options
configure:5155: checking for localtime_r
configure:5183: gcc -o conftest -g -O2 -Wall  -
D_REENTRANT   conftest.c
1>&5
/cygdrive/c/TEMP/ccWMDtue.o(.text+0xc): undefined 
reference to `localtime_r'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5160 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully 
few prototypes,
    which can conflict with char localtime_r(); below.  
*/
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an 
error.  */
/* We use char because int might match the return type 
of a gcc2
    builtin and then its argument prototype would still 
apply.  */
char localtime_r();

int main() {

/* The GNU C library defines this for functions which it 
implements
    to always fail with ENOSYS.  Some functions are 
actually named
    something starting with __ and the normal name is an 
alias.  */
#if defined (__stub_localtime_r) || defined 
(__stub___localtime_r)
choke me
#else
localtime_r();
#endif

; return 0; }
configure:5155: checking for rand_r
configure:5183: gcc -o conftest -g -O2 -Wall  -
D_REENTRANT   conftest.c
1>&5
/cygdrive/c/TEMP/ccr9KMzF.o(.text+0xc): undefined 
reference to `rand_r'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5160 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully 
few prototypes,
    which can conflict with char rand_r(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an 
error.  */
/* We use char because int might match the return type 
of a gcc2
    builtin and then its argument prototype would still 
apply.  */
char rand_r();

int main() {

/* The GNU C library defines this for functions which it 
implements
    to always fail with ENOSYS.  Some functions are 
actually named
    something starting with __ and the normal name is an 
alias.  */
#if defined (__stub_rand_r) || defined (__stub___rand_r)
choke me
#else
rand_r();
#endif

; return 0; }
configure:5209: checking for getpwuid_r
configure:5229: gcc -o conftest -g -O2 -Wall  -
D_REENTRANT   conftest.c
1>&5
/cygdrive/c/TEMP/ccbOA2Ah.o(.text+0x3b): undefined 
reference to `getpwuid_r'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5217 "configure"
#include "confdefs.h"
#include <errno.h>
    int main () { char buffer[10000], *pointer;
    char getpwuid_r (long, void*, void*,
     int, void*);
    int error;
    errno = 0;
    error = getpwuid_r (0, &buffer, &buffer,
     sizeof (buffer), &pointer);
    return errno == ENOSYS || error == ENOSYS;}
configure:5286: checking whether pthread_getspecific is 
posix like
configure:5296: gcc -c -g -O2 -Wall  -D_REENTRANT  
conftest.c 1>&5
configure: In function `main':
configure:5292: too many arguments to function 
`pthread_getspecific'
configure: failed program was:
#line 5289 "configure"
#include "confdefs.h"
#include <pthread.h>
int main() {
pthread_getspecific(0,NULL);
; return 0; }
configure:5311: checking whether pthread_mutex_trylock 
is posix like
configure:5324: gcc -o conftest -g -O2 -Wall  -
D_REENTRANT   conftest.c
1>&5
configure:5319: `PTHREAD_MUTEX_INITIALIZER' undeclared 
here (not in a
function)
configure: failed program was:
#line 5317 "configure"
#include "confdefs.h"
#include <pthread.h>
   pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
   int main () {
   return !pthread_mutex_trylock (&mutex); }
configure:5341: checking whether pthread_cond_timedwait 
is posix like
configure:5361: gcc -o conftest -g -O2 -Wall  -
D_REENTRANT   conftest.c
1>&5
configure: In function `main':
configure:5350: `PTHREAD_MUTEX_INITIALIZER' undeclared 
(first use in this
function)
configure:5350: (Each undeclared identifier is reported 
only once
configure:5350: for each function it appears in.)
configure:5351: `pthread_cond_t' undeclared (first use 
in this function)
configure:5351: parse error before `cond'
configure:5352: storage size of `tval' isn't known
configure:5354: warning: implicit declaration of 
function `gettimeofday'
configure:5357: warning: implicit declaration of function
`pthread_cond_timedwait'
configure:5357: `cond' undeclared (first use in this 
function)
configure:5352: warning: unused variable `tval'
configure: failed program was:
#line 5347 "configure"
#include "confdefs.h"
#include <pthread.h>
   int main () {
   pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
   pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
   struct timeval tval;
   struct timespec tspec;
   gettimeofday (&tval, NULL);
   tspec.tv_sec = tval.tv_sec;
   tspec.tv_nsec = 0;
   return pthread_cond_timedwait (&cond,&mutex,&tspec)
    != -1;}
configure:5404: checking size of pthread_mutex_t
configure:5424: gcc -o conftest -g -O2 -Wall  -
D_REENTRANT   conftest.c
1>&5
configure:5416: warning: return-type defaults to `int'
configure:5444: checking byte contents of pthread_mutex_t
configure:5469: gcc -o conftest -g -O2 -Wall  -
D_REENTRANT   conftest.c
1>&5
configure:5456: warning: return-type defaults to `int'
configure: In function `main':
configure:5457: `PTHREAD_MUTEX_INITIALIZER' undeclared 
(first use in this
function)
configure:5457: (Each undeclared identifier is reported 
only once
configure:5457: for each function it appears in.)
configure: failed program was:
#line 5452 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <pthread.h>
main()
{
  static pthread_mutex_t tv = PTHREAD_MUTEX_INITIALIZER;
  char *p = (char*) &tv;
  int i;
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  for (i = 0; i < 4; i++)
    fprintf(f, "%s%d", i?",":"", *(p++));
  fprintf(f, "\n");
  exit(0);
}
configure:5505: checking system definitions for POLLIN 
POLLOUT POLLPRI
POLLERR POLLHUP POLLNVAL
configure:5536: gcc -o conftest -g -O2 -Wall  -
D_REENTRANT   conftest.c
1>&5

=======make.log=======
make  all-recursive
make[1]: Entering directory `/glib-1.2.8'
Making all in .
make[2]: Entering directory `/glib-1.2.8'
/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 garray.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c garray.c -o garray.o
echo timestamp > garray.lo
/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 gcache.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gcache.c -o gcache.o
echo timestamp > gcache.lo
/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 gcompletion.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gcompletion.c -o gcompletion.o
echo timestamp > gcompletion.lo
/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 gdataset.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gdataset.c -o gdataset.o
echo timestamp > gdataset.lo
/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 gdate.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gdate.c -o gdate.o
echo timestamp > gdate.lo
/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 gerror.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gerror.c -o gerror.o
echo timestamp > gerror.lo
/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 ghash.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c ghash.c -o ghash.o
echo timestamp > ghash.lo
/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 ghook.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c ghook.c -o ghook.o
echo timestamp > ghook.lo
/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 giochannel.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c giochannel.c -o giochannel.o
echo timestamp > giochannel.lo
/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 giounix.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c giounix.c -o giounix.o
echo timestamp > giounix.lo
/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 glist.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c glist.c -o glist.o
echo timestamp > glist.lo
/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 gmain.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gmain.c -o gmain.o
echo timestamp > gmain.lo
/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 gmem.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gmem.c -o gmem.o
echo timestamp > gmem.lo
/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 gmessages.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gmessages.c -o gmessages.o
echo timestamp > gmessages.lo
/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 gmutex.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gmutex.c -o gmutex.o
echo timestamp > gmutex.lo
/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 gnode.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gnode.c -o gnode.o
echo timestamp > gnode.lo
/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 gprimes.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gprimes.c -o gprimes.o
echo timestamp > gprimes.lo
/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 grel.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c grel.c -o grel.o
echo timestamp > grel.lo
/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 gscanner.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gscanner.c -o gscanner.o
echo timestamp > gscanner.lo
/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 gslist.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -
DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wal
l -D_REENTRANT -c gslist.c -o gslist.o
echo timestamp > gslist.lo
/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 -Wal
l -D_REENTRANT -c gstrfuncs.c -o gstrfuncs.o
gstrfuncs.c: In function `g_strsignal':
gstrfuncs.c:674: conflicting types for `strsignal'
/usr/include/string.h:70: previous declaration of 
`strsignal'
gstrfuncs.c:674: warning: extern declaration of 
`strsignal' doesn't match
global one
make[2]: *** [gstrfuncs.lo] Error 1
make[2]: Leaving directory `/glib-1.2.8'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/glib-1.2.8'
make: *** [all-recursive-am] Error 2

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list