I checkout the lastest CVS of slony1. I can configure it successful on MinGW but when I make it, it display a problem:
$ make
make[1]: Entering directory `/c/lun/workspace/slony1-engine/src'
make[2]: Entering directory `/c/lun/workspace/slony1-engine/src/xxid'
sed -e 's;FILEDESC;"Slony xxid datatype";' -e 's;VFT_APP;VFT_DLL;' -e 's;SLVERSION;SLONY_I_VERSION_STRING_DEC ,'`date '+%y%j' | sed 's/^0*//'`';' ../../src/slon/port/win32ver.rc.in > win32ver.rc
windres -i win32ver.rc -o win32ver.o --include-dir=../..
rm -f win32ver.rc
dlltool --export-all --output-def xxid.def xxid.o win32ver.o
dllwrap -o xxid.dll --def xxid.def xxid.o win32ver.o /usr/local/pgsql/lib/pgxs/src/utils/dllinit.o -L/usr/local/pgsql/lib -lpostgres
rm -f xxid.def
make[2]: Leaving directory `/c/lun/workspace/slony1-engine/src/xxid'
make[2]: Entering directory `/c/lun/workspace/slony1-engine/src/slon'
gcc -g -O2 -I../.. -I../../src/slon -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/server/port/win32 -c -o slon.o slon.c
slon.c:14:21: pthread.h: No such file or directory
In file included from slon.c:35:
slon.h:98: error: syntax error before "pthread_t"
slon.h:98: warning: no semicolon at end of struct or union
slon.h:103: error: syntax error before "worker_thread"
slon.h:103: warning: data definition has no type or storage class
slon.h:104: error: syntax error before "message_lock"
slon.h:104: warning: data definition has no type or storage class
slon.h:105: error: syntax error before "message_cond"
slon.h:105: warning: data definition has no type or storage class
slon.h:111: error: syntax error before '}' token
slon.h :153: error: syntax error before "pthread_mutex_t"
slon.h:153: warning: no semicolon at end of struct or union
slon.h:154: warning: data definition has no type or storage class
slon.h:160: error: conflicting types for 'prev'
slon.h:109: error: previous declaration of 'prev' was here
slon.h:161: error: conflicting types for 'next'
slon.h:110: error: previous declaration of 'next' was here
slon.h:162: error: syntax error before '}' token
slon.h:410: error: syntax error before "slon_wait_listen_lock"
slon.h:410: warning: data definition has no type or storage class
slon.h:411: error: syntax error before "slon_wait_listen_cond"
slon.h:411: warning: data definition has no type or storage class
slon.c:52: error: syntax error before "slon_wait_listen_lock"
slon.c:52: warning: data definition has no type or storage class
slon.c:53: error: syntax error before "slon_wait_listen_cond"
slon.c:53: warning: data definition has no type or storage class
slon.c:59: error: syntax error before "local_event_thread"
slon.c:59: warning: data definition has no type or storage class
slon.c:60: error: syntax error before "local_cleanup_thread"
slon.c:60: warning: data definition has no type or storage class
slon.c:61: error: syntax error before "local_sync_thread"
slon.c:61: warning: data definition has no type or storage class
slon.c:67: error: syntax error before "main_thread"
slon.c:67: warning: data definition has no type or storage class
make[2]: *** [slon.o] Error 1
make[2]: Leaving directory `/c/lun/workspace/slony1-engine/src/slon'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/lun/workspace/slony1-engine/src'
make: *** [all] Error 2
how to solve it?
thx for help
--
Jr. P
calendarw
_______________________________________________ Slony1-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/slony1-general
