This is what I get when trying to compile in gentoo.  It works fine on
my Mac...  Any ideas?

$ sudo gem install do_postgres
Building native extensions.  This could take a while...
ERROR:  Error installing do_postgres:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby18 extconf.rb install do_postgres
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for postgres.h... yes
checking for mb/pg_wchar.h... yes
checking for catalog/pg_type.h... yes
checking for PQsetClientEncoding()... yes
checking for pg_encoding_to_char()... yes
checking for PQfreemem()... yes
creating Makefile

make
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -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
-I/usr/include/postgresql/libpq-4
-I/usr/include/postgresql/libpq-4/server  -fPIC -O2 -pipe
-fno-strict-aliasing  -fPIC -Wall   -c do_postgres_ext.c
do_postgres_ext.c: In function 'parse_date_time':
do_postgres_ext.c:209: warning: implicit declaration of function 'time'
do_postgres_ext.c:210: warning: implicit declaration of function 'localtime'
do_postgres_ext.c:210: warning: assignment makes pointer from integer
without a cast
do_postgres_ext.c:212: error: dereferencing pointer to incomplete type
do_postgres_ext.c:215: warning: implicit declaration of function 'gmtime'
do_postgres_ext.c:215: warning: assignment makes pointer from integer
without a cast
do_postgres_ext.c:217: warning: implicit declaration of function 'mktime'
make: *** [do_postgres_ext.o] Error 1


Gem files will remain installed in
/usr/lib64/ruby/gems/1.8/gems/do_postgres-0.9.10.1 for inspection.
Results logged to
/usr/lib64/ruby/gems/1.8/gems/do_postgres-0.9.10.1/ext/do_postgres_ext/gem_make.out

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to