Skip to content

Instantly share code, notes, and snippets.

@NZKoz
Created September 12, 2008 13:25
Show Gist options
  • Save NZKoz/10436 to your computer and use it in GitHub Desktop.
Save NZKoz/10436 to your computer and use it in GitHub Desktop.
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -I/opt/local/include/pgsql8 -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c compat.c
In file included from compat.c:16:
compat.h:38:2: error: #error PostgreSQL client version too old, requires 7.3 or later.
In file included from compat.c:16:
compat.h:121: error: redefinition of typedef ‘PQnoticeReceiver’
/opt/local/include/pgsql8/libpq-fe.h:141: error: previous declaration of ‘PQnoticeReceiver’ was here
compat.h:125: error: redeclaration of enumerator ‘PQERRORS_TERSE’
/opt/local/include/pgsql8/libpq-fe.h:102: error: previous definition of ‘PQERRORS_TERSE’ was here
compat.h:126: error: redeclaration of enumerator ‘PQERRORS_DEFAULT’
/opt/local/include/pgsql8/libpq-fe.h:103: error: previous definition of ‘PQERRORS_DEFAULT’ was here
In file included from compat.c:16:
compat.h:38:2:compat.h:128: error: redeclaration of enumerator ‘PQERRORS_VERBOSE’
/opt/local/include/pgsql8/libpq-fe.h:105: error: previous definition of ‘PQERRORS_VERBOSE’ was hereerror:
#error Postgcompat.h:128: error: conflicting types for ‘PGVerbosity’reSQL client version too old, requires 7.3 or later.
/opt/local/include/pgsql8/libpq-fe.h:105: error: previous declaration of ‘PGVerbosity’ was here
compat.h:132: error: redeclaration of enumerator ‘PQTRANS_IDLE’
/opt/local/include/pgsql8/libpq-fe.h:93: error: previous definition of ‘PQTRANS_IDLE’ was here
compat.h:133: error: redeclaration of enumerator ‘PQTRANS_ACTIVE’
/opt/local/include/pgsql8/libpq-fe.h:94: error: previous definition of ‘PQTRANS_ACTIVE’ was here
compat.h:134: error: redeclaration of enumerator ‘PQTRANS_INTRANS’
/opt/local/include/pgsql8/libpq-fe.h:95: error: previous definition of ‘PQTRANS_INTRANS’ was here
compat.h:135: error: redeclaration of enumerator ‘PQTRANS_INERROR’
/opt/local/include/pgsql8/libpq-fe.h:96: error: previous definition of ‘PQTRANS_INERROR’ was here
compat.h:137: error: redeclaration of enumerator ‘PQTRANS_UNKNOWN’
/opt/local/include/pgsql8/libpq-fe.h:98: error: previous definition of ‘PQTRANS_UNKNOWN’ was here
compat.h:137: error: conflicting types for ‘PGTransactionStatusType’
In file included from compat.c:16:
compat.h:121: error: redefinition of typedef ‘PQnoticeReceiver’
/opt/local/include/pgsql8/libpq-fe.h:98: error: previous declaration of ‘PGTransactionStatusType’ was here
/opt/local/include/pgsql8/libpq-fe.h:141: error: previous declaration of ‘PQnoticeReceiver’ was here
compat.h:125: error: redeclaration of enumerator ‘PQERRORS_TERSE’
/opt/local/include/pgsql8/libpq-fe.h:102: error: previous definition of ‘PQERRORS_TERSE’ was here
compat.h:142: error: conflicting types for ‘PQtransactionStatus’
compat.h:126: error: redeclaration of enumerator ‘PQERRORS_DEFAULT’
/opt/local/include/pgsql8/libpq-fe.h:263: error: previous declaration of ‘PQtransactionStatus’ was here
/opt/local/include/pgsql8/libpq-fe.h:103: error: previous definition of ‘PQERRORS_DEFAULT’ was here
compat.h:128: error: redeclaration of enumerator ‘PQERRORS_VERBOSE’
/opt/local/include/pgsql8/libpq-fe.h:105: error: previous definition of ‘PQERRORS_VERBOSE’ was herecompat.h:143: error: conflicting types for ‘PQparameterStatus’
/opt/local/include/pgsql8/libpq-fe.h:265: error: previous declaration of ‘PQparameterStatus’ was here
compat.h:128: error: conflicting types for ‘PGVerbosity’
/opt/local/include/pgsql8/libpq-fe.h:105: error: previous declaration of ‘PGVerbosity’ was here
compat.h:132: error: redeclaration of enumerator ‘PQTRANS_IDLE’
/opt/local/include/pgsql8/libpq-fe.h:93: error: previous definition of ‘PQTRANS_IDLE’ was here
compat.h:133: error: redeclaration of enumerator ‘PQTRANS_ACTIVE’
/opt/local/include/pgsql8/libpq-fe.h:94: error: previous definition of ‘PQTRANS_ACTIVE’ was here
compat.h:134: error: redeclaration of enumerator ‘PQTRANS_INTRANS’
/opt/local/include/pgsql8/libpq-fe.h:95: error: previous definition of ‘PQTRANS_INTRANS’ was here
compat.h:157: error: conflicting types for ‘PQsetErrorVerbosity’
compat.h:135: error: redeclaration of enumerator ‘PQTRANS_INERROR’
/opt/local/include/pgsql8/libpq-fe.h:285: error: previous declaration of ‘PQsetErrorVerbosity’ was here
/opt/local/include/pgsql8/libpq-fe.h:96: error: previous definition of ‘PQTRANS_INERROR’ was here
compat.h:137: error: redeclaration of enumerator ‘PQTRANS_UNKNOWN’
/opt/local/include/pgsql8/libpq-fe.h:98: error: previous definition of ‘PQTRANS_UNKNOWN’ was here
compat.h:137: error: conflicting types for ‘PGTransactionStatusType’
/opt/local/include/pgsql8/libpq-fe.h:98: error: previous declaration of ‘PGTransactionStatusType’ was here
compat.h:169:2: error: #error unsupportecompat.h:142: error: conflicting types for ‘PQtransactionStatus’d
pos/opt/local/include/pgsql8/libpq-fe.h:263: error: previous declaration of ‘PQtransactionStatus’ was heret
gresql vecompat.h:143: error: conflicting types for ‘PQparameterStatus’r
sion/opt/local/include/pgsql8/libpq-fe.h:265: error: previous declaration of ‘PQparameterStatus’ was here,
requires 7.3 or later.
compat.h:157: error: conflicting types for ‘PQsetErrorVerbosity’
/opt/local/include/pgsql8/libpq-fe.h:285: error: previous declaration of ‘PQsetErrorVerbosity’ was here
compat.c: In function ‘PQsetClientEncoding’:
compat.c:21: error: syntax error before ‘{’ token
compat.h:169:2: error: #error unsupported postgresql version, requires 7.3 or later.
compat.c: In function ‘PQsetClientEncoding’:
compat.c:21: error: syntax error before ‘{’ token
compat.c:282: error: storage class specified for parameter ‘query’
compat.c:282: error: parameter ‘query’ is initialized
compat.c:286: error: syntax error before ‘if’
compat.c:341: error: parameter ‘target’ is initialized
compat.c:341: error: ‘to’ undeclared (first use in this function)
compat.c:341: error: (Each undeclared identifier is reported only once
compat.c:341: error: for each function it appears in.)
compat.c:342: error: parameter ‘remaining’ is initialized
compat.c:342: error: ‘length’ undeclared (first use in this function)
compat.c:344: error: syntax error before ‘while’
compat.c:396: error: syntax error before ‘len’
compat.c:282: error: storage class specified for parameter ‘query’
compat.c:282: error: parameter ‘query’ is initialized
compat.c:286: error: syntax error before ‘if’
compat.c:470: error: redefinition of parameter ‘i’
compat.c:390: error: previous definition of ‘i’ was here
compat.c:473: error: syntax error before ‘if’
compat.c:341: error: parameter ‘target’ is initialized
compat.c:341: error: ‘to’ undeclared (first use in this function)
compat.c:341: error: (Each undeclared identifier is reported only once
compat.c:341: error: for each function it appears in.)
compat.c:342: error: parameter ‘remaining’ is initialized
compat.c:342: error: ‘length’ undeclared (first use in this function)
compat.c:344: error: syntax error before ‘while’
compat.c:396: error: syntax error before ‘len’
compat.c:470: error: redefinition of parameter ‘i’
compat.c:390: error: previous definition of ‘i’ was here
compat.c:473: error: syntax error before ‘if’
lipo: can't open input file: /var/tmp//cckxBrt0.out (No such file or directory)
make: *** [compat.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment