Error compiling a postgresql extension

Поиск
Список
Период
Сортировка
От Shachar Shemesh
Тема Error compiling a postgresql extension
Дата
Msg-id 411F7D3C.9050103@shemesh.biz
обсуждение исходный текст
Список pgsql-cygwin
Hi all,

I'm trying to compile a postgresql extension
(http://pgfoundry.org/projects/sql2pg/. The sources are at
http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/sql2pg/mssqlext/). I run
./configure with "CPPFLAGS=-I<where postgresql sources are>/src/include
./configure". When I try to compile, I get the attached errors. It seems
as if the Postgresql sources are not compatible with Cygwin.

As a side note, I'll mention that trying to compile the same sources
with native Visual C causes even greater grief, but that's off topic for
this list.

Any help would be greatly appreciated.

             Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/

make  all-am
make[1]: Entering directory `/home/sun/mssqlext'
if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/home/sun/postgresql-7.4.3/src/include/  -g
-O2-MT tinyint.lo -MD -MP -MF ".deps/tinyint.Tpo" \ 
  -c -o tinyint.lo `test -f 'tinyint.c' || echo './'`tinyint.c; \
then mv -f ".deps/tinyint.Tpo" ".deps/tinyint.Plo"; \
else rm -f ".deps/tinyint.Tpo"; exit 1; \
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/sun/postgresql-7.4.3/src/include/ -g -O2 -MT tinyint.lo -MD -MP -MF
.deps/tinyint.Tpo-c tinyint.c  -DPIC -o .libs/tinyint.o 
In file included from /home/sun/postgresql-7.4.3/src/include/postgres.h:48,
                 from tinyint.c:1:
/home/sun/postgresql-7.4.3/src/include/c.h:341: warning: redefinition of `sig_atomic_t'
/usr/include/signal.h:9: warning: `sig_atomic_t' previously declared here
In file included from /home/sun/postgresql-7.4.3/src/include/c.h:797,
                 from /home/sun/postgresql-7.4.3/src/include/postgres.h:48,
                 from tinyint.c:1:
/home/sun/postgresql-7.4.3/src/include/port.h:97: error: conflicting types for `strcasecmp'
/usr/include/string.h:60: error: previous declaration of `strcasecmp'
/home/sun/postgresql-7.4.3/src/include/port.h:105: error: conflicting types for `random'
/usr/include/stdlib.h:183: error: previous declaration of `random'
/home/sun/postgresql-7.4.3/src/include/port.h:109: error: conflicting types for `srandom'
/usr/include/stdlib.h:184: error: previous declaration of `srandom'
tinyint.c:28: error: syntax error before "utinyintin"
tinyint.c:28: warning: data definition has no type or storage class
tinyint.c:28: error: syntax error before "utinyintin"
tinyint.c: In function `utinyintin':
tinyint.c:28: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:32: error: conflicting types for `utinyintin'
tinyint.c:28: error: previous declaration of `utinyintin'
tinyint.c:53: error: syntax error before "utinyintout"
tinyint.c:53: warning: data definition has no type or storage class
tinyint.c:53: error: syntax error before "utinyintout"
tinyint.c: In function `utinyintout':
tinyint.c:53: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:57: error: conflicting types for `utinyintout'
tinyint.c:53: error: previous declaration of `utinyintout'
tinyint.c:68: error: syntax error before "utinyintrecv"
tinyint.c:68: warning: data definition has no type or storage class
tinyint.c:68: error: syntax error before "utinyintrecv"
tinyint.c: In function `utinyintrecv':
tinyint.c:68: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:72: error: conflicting types for `utinyintrecv'
tinyint.c:68: error: previous declaration of `utinyintrecv'
tinyint.c:82: error: syntax error before "utinyintsend"
tinyint.c:82: warning: data definition has no type or storage class
tinyint.c:82: error: syntax error before "utinyintsend"
tinyint.c: In function `utinyintsend':
tinyint.c:82: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:86: error: conflicting types for `utinyintsend'
tinyint.c:82: error: previous declaration of `utinyintsend'
tinyint.c:95: error: syntax error before "utinytoi2"
tinyint.c:95: warning: data definition has no type or storage class
tinyint.c:95: error: syntax error before "utinytoi2"
tinyint.c: In function `utinytoi2':
tinyint.c:95: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:99: error: conflicting types for `utinytoi2'
tinyint.c:95: error: previous declaration of `utinytoi2'
tinyint.c:105: error: syntax error before "utinytoi4"
tinyint.c:105: warning: data definition has no type or storage class
tinyint.c:105: error: syntax error before "utinytoi4"
tinyint.c: In function `utinytoi4':
tinyint.c:105: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:109: error: conflicting types for `utinytoi4'
tinyint.c:105: error: previous declaration of `utinytoi4'
tinyint.c:115: error: syntax error before "i2toutiny"
tinyint.c:115: warning: data definition has no type or storage class
tinyint.c:115: error: syntax error before "i2toutiny"
tinyint.c: In function `i2toutiny':
tinyint.c:115: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:119: error: conflicting types for `i2toutiny'
tinyint.c:115: error: previous declaration of `i2toutiny'
tinyint.c:130: error: syntax error before "i4toutiny"
tinyint.c:130: warning: data definition has no type or storage class
tinyint.c:130: error: syntax error before "i4toutiny"
tinyint.c: In function `i4toutiny':
tinyint.c:130: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:134: error: conflicting types for `i4toutiny'
tinyint.c:130: error: previous declaration of `i4toutiny'
tinyint.c:145: error: syntax error before "utinyint_text"
tinyint.c:145: warning: data definition has no type or storage class
tinyint.c:145: error: syntax error before "utinyint_text"
tinyint.c: In function `utinyint_text':
tinyint.c:145: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:149: error: conflicting types for `utinyint_text'
tinyint.c:145: error: previous declaration of `utinyint_text'
tinyint.c:158: error: syntax error before "text_utinyint"
tinyint.c:158: warning: data definition has no type or storage class
tinyint.c:158: error: syntax error before "text_utinyint"
tinyint.c: In function `text_utinyint':
tinyint.c:158: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:162: error: conflicting types for `text_utinyint'
tinyint.c:158: error: previous declaration of `text_utinyint'
tinyint.c:182: error: syntax error before "utinyinteq"
tinyint.c:182: warning: data definition has no type or storage class
tinyint.c:182: error: syntax error before "utinyinteq"
tinyint.c: In function `utinyinteq':
tinyint.c:182: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:186: error: conflicting types for `utinyinteq'
tinyint.c:182: error: previous declaration of `utinyinteq'
tinyint.c:193: error: syntax error before "utinyintne"
tinyint.c:193: warning: data definition has no type or storage class
tinyint.c:193: error: syntax error before "utinyintne"
tinyint.c: In function `utinyintne':
tinyint.c:193: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:197: error: conflicting types for `utinyintne'
tinyint.c:193: error: previous declaration of `utinyintne'
tinyint.c:204: error: syntax error before "utinyintlt"
tinyint.c:204: warning: data definition has no type or storage class
tinyint.c:204: error: syntax error before "utinyintlt"
tinyint.c: In function `utinyintlt':
tinyint.c:204: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:208: error: conflicting types for `utinyintlt'
tinyint.c:204: error: previous declaration of `utinyintlt'
tinyint.c:215: error: syntax error before "utinyintle"
tinyint.c:215: warning: data definition has no type or storage class
tinyint.c:215: error: syntax error before "utinyintle"
tinyint.c: In function `utinyintle':
tinyint.c:215: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:219: error: conflicting types for `utinyintle'
tinyint.c:215: error: previous declaration of `utinyintle'
tinyint.c:226: error: syntax error before "utinyintgt"
tinyint.c:226: warning: data definition has no type or storage class
tinyint.c:226: error: syntax error before "utinyintgt"
tinyint.c: In function `utinyintgt':
tinyint.c:226: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:230: error: conflicting types for `utinyintgt'
tinyint.c:226: error: previous declaration of `utinyintgt'
tinyint.c:237: error: syntax error before "utinyintge"
tinyint.c:237: warning: data definition has no type or storage class
tinyint.c:237: error: syntax error before "utinyintge"
tinyint.c: In function `utinyintge':
tinyint.c:237: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:241: error: conflicting types for `utinyintge'
tinyint.c:237: error: previous declaration of `utinyintge'
tinyint.c:248: error: syntax error before "btutinyintcmp"
tinyint.c:248: warning: data definition has no type or storage class
tinyint.c:248: error: syntax error before "btutinyintcmp"
tinyint.c: In function `btutinyintcmp':
tinyint.c:248: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:252: error: conflicting types for `btutinyintcmp'
tinyint.c:248: error: previous declaration of `btutinyintcmp'
tinyint.c:264: error: syntax error before "hashutinyint"
tinyint.c:264: warning: data definition has no type or storage class
tinyint.c:264: error: syntax error before "hashutinyint"
tinyint.c: In function `hashutinyint':
tinyint.c:264: warning: return makes integer from pointer without a cast
tinyint.c: At top level:
tinyint.c:268: error: conflicting types for `hashutinyint'
tinyint.c:264: error: previous declaration of `hashutinyint'
make[1]: *** [tinyint.lo] Error 1
make[1]: Leaving directory `/home/sun/mssqlext'
make: *** [all] Error 2

В списке pgsql-cygwin по дате отправления:

Предыдущее
От: Jason Tishler
Дата:
Сообщение: Re: FAQ_MSWIN suggested improvement, version 2
Следующее
От: "Daniel Secomb"
Дата:
Сообщение: Issues With Windows 98