Skip to content

Instantly share code, notes, and snippets.

@mayo
Created January 15, 2009 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayo/47635 to your computer and use it in GitHub Desktop.
Save mayo/47635 to your computer and use it in GitHub Desktop.
#include <libpq-fe.h>
#include <postgres.h>
#include <mb/pg_wchar.h>
#include <catalog/pg_type.h>
/* Undefine constants Postgres also defines */
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#include <ruby.h>
#include <version.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <time.h>
mingw32-gcc -I. -I. -I/usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32 -I/usr/home/mayo/do/do_postgres/ext/do_postgres_ext -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQFREEMEM -I/usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/port/win32 -I/usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include -I/usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/port -I/usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server -I/usr/home/mayo/pg/include -g -O2 -Wall -c /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c
In file included from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/defines.h:183,
from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/ruby.h:37,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:17:
/usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/win32/win32.h:142:1: warning: "fsync" redefined
In file included from /usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/c.h:88,
from /usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/postgres.h:48,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:7:
/usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/pg_config_os.h:35:1: warning: this is the location of the previous definition
In file included from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/defines.h:183,
from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/ruby.h:37,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:17:
/usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/win32/win32.h:159: error: redefinition of 'struct timezone'
In file included from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/defines.h:183,
from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/ruby.h:37,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:17:
/usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/win32/win32.h:204:1: warning: "vsnprintf" redefined
In file included from /usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/c.h:826,
from /usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/postgres.h:48,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:7:
/usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/port.h:189:1: warning: this is the location of the previous definition
In file included from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/defines.h:183,
from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/ruby.h:37,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:17:
/usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/win32/win32.h:205:1: warning: "snprintf" redefined
In file included from /usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/c.h:826,
from /usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/postgres.h:48,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:7:
/usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/port.h:190:1: warning: this is the location of the previous definition
In file included from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/missing.h:16,
from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/ruby.h:718,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:17:
/usr/local/lib/gcc/mingw32/4.2.1/../../../../mingw32/include/sys/time.h:27: error: redefinition of 'struct timezone'
/usr/local/lib/gcc/mingw32/4.2.1/../../../../mingw32/include/sys/time.h:40: error: conflicting types for 'gettimeofday'
/usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/win32/win32.h:211: error: previous declaration of 'gettimeofday' was here
In file included from /usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/ruby.h:718,
from /usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:17:
/usr/home/mayo/.rake-compiler/ruby/ruby-1.8.6-p287/lib/ruby/1.8/i386-mingw32/missing.h:35: error: conflicting types for 'crypt'
/usr/home/mayo/do/cross/postgres-8_2_11/pgsql/include/server/port.h:333: error: previous declaration of 'crypt' was here
/usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c: In function 'cConnection_initialize':
/usr/home/mayo/do/do_postgres/ext/do_postgres_ext/do_postgres_ext.c:468: warning: comparison with string literal results in unspecified behaviour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment