Created
          January 15, 2009 23:57 
        
      - 
      
- 
        Save luislavena/47713 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Luis@KEORE (D:\Users\Luis\projects\oss\datamapper\do.git\do_postgres\ext\do_postgres_ext) | |
| $ make | |
| gcc -I. -I. -ID:/Users/Luis/ruby/ruby-186-p114-MINGW-rubygems-131/lib/ruby/1.8/i386-mingw32 -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_POSTGRES_H -DHAVE_MB_PG_WCHAR_H -DHAVE_CATALOG_PG_TYPE_H -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQFREEMEM -DHAVE_GETTIMEOFDAY -DHAVE_CRYPT -Id:/users/luis/projects/oss/_libs/extras/include -Id:/users/luis/projects/oss/_libs/pgsql/include/server/port/win32 -ID:/users/luis/projects/oss/_libs/pgsql/include/server -Id:/users/luis/projects/oss/_libs/pgsql/include -g -O2 -Wall -c do_postgres_ext.c | |
| In file included from D:/users/luis/projects/oss/_libs/pgsql/include/server/postgres.h:49, | |
| from do_postgres_ext.c:2: | |
| D:/users/luis/projects/oss/_libs/pgsql/include/server/utils/elog.h:114: warning: `libintl_printf' is an unrecognized format function type | |
| D:/users/luis/projects/oss/_libs/pgsql/include/server/utils/elog.h:120: warning: `libintl_printf' is an unrecognized format function type | |
| D:/users/luis/projects/oss/_libs/pgsql/include/server/utils/elog.h:126: warning: `libintl_printf' is an unrecognized format function type | |
| D:/users/luis/projects/oss/_libs/pgsql/include/server/utils/elog.h:132: warning: `libintl_printf' is an unrecognized format function type | |
| D:/users/luis/projects/oss/_libs/pgsql/include/server/utils/elog.h:138: warning: `libintl_printf' is an unrecognized format function type | |
| D:/users/luis/projects/oss/_libs/pgsql/include/server/utils/elog.h:162: warning: `libintl_printf' is an unrecognized format function type | |
| D:/users/luis/projects/oss/_libs/pgsql/include/server/utils/elog.h:299: warning: `libintl_printf' is an unrecognized format function type | |
| In file included from D:/Users/Luis/ruby/ruby-186-p114-MINGW-rubygems-131/lib/ruby/1.8/i386-mingw32/missing.h:16, | |
| from D:/Users/Luis/ruby/ruby-186-p114-MINGW-rubygems-131/lib/ruby/1.8/i386-mingw32/ruby.h:718, | |
| from do_postgres_ext.c:14: | |
| d:/Users/Luis/compilers/baked-for-ruby/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:27: error: redefinition of `struct timezone' | |
| make: *** [do_postgres_ext.o] Error 1 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | diff --git a/do_postgres/ext/do_postgres_ext/extconf.rb b/do_postgres/ext/do_postgres_ext/extconf.rb | |
| index a8e7631..1414466 100644 | |
| --- a/do_postgres/ext/do_postgres_ext/extconf.rb | |
| +++ b/do_postgres/ext/do_postgres_ext/extconf.rb | |
| @@ -28,11 +28,14 @@ def have_build_env | |
| have_header('catalog/pg_type.h') | |
| end | |
| -dir_config('pgsql', config_value('includedir-server'), config_value('libdir')) | |
| dir_config('pgsql', config_value('includedir'), config_value('libdir')) | |
| +dir_config('pgsql-server', config_value('includedir-server'), config_value('libdir')) | |
| +dir_config('pgsql-win32', config_value('includedir')) | |
| +dir_config('pgsql-port', config_value('includedir')) | |
| +dir_config('pgsql-extras', config_value('includedir')) | |
| required_libraries = [] | |
| -desired_functions = %w(PQsetClientEncoding pg_encoding_to_char PQfreemem) | |
| +desired_functions = %w(PQsetClientEncoding pg_encoding_to_char PQfreemem gettimeofday crypt) | |
| compat_functions = %w(PQescapeString PQexecParams) | |
| if have_build_env | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment