Issue installing on OSX #201

Closed
fattymelt opened this Issue Oct 14, 2012 · 2 comments

Projects

None yet

3 participants

@fattymelt

Trying to install on OSX and seeing all of these errors... Anyone have an idea?

bash-3.2$ npm install ~/Downloads/brianc-node-postgres-v0.8.4-0-ga1d0091.tar.gz
npm http GET https://registry.npmjs.org/generic-pool/1.0.12
npm http 304 https://registry.npmjs.org/generic-pool/1.0.12

pg@0.8.4 install /Users/seth/node_modules/pg
node-gyp rebuild || (exit 0)

CXX(target) Release/obj.target/binding/src/binding.o
In file included from ../src/binding.cc:1:
/Library/PostgreSQL/9.1/include/libpq-fe.h:23:19: warning: stdio.h: No such file or directory
In file included from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:56:36: warning: sys/types.h: No such file or directory
In file included from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:58,
from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:55:23: warning: sys/time.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:57:25: warning: sys/socket.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:114:26: warning: netinet/in.h: No such file or directory
In file included from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:27,
from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:61,
from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/ev.h:152:21: warning: signal.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/ev.h:161:23: warning: sys/stat.h: No such file or directory
In file included from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:61,
from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:32:19: warning: fcntl.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:36:25: warning: netinet/tcp.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:37:23: warning: arpa/inet.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:38:19: warning: netdb.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:40:21: warning: termios.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:41:17: warning: pwd.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:43:21: warning: pthread.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:47:24: warning: mach/mach.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:48:24: warning: mach/task.h: No such file or directory
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:49:29: warning: mach/semaphore.h: No such file or directory
In file included from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/src/node.h:65:20: warning: assert.h: No such file or directory
In file included from /Users/seth/.node-gyp/0.8.12/src/node.h:270,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:31:20: warning: string.h: No such file or directory
../src/binding.cc:5:20: warning: stdlib.h: No such file or directory
In file included from ../src/binding.cc:1:
/Library/PostgreSQL/9.1/include/libpq-fe.h:325: error: ‘FILE’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:483: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:487: error: ‘size_t’ does not name a type
/Library/PostgreSQL/9.1/include/libpq-fe.h:490: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:491: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:493: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:494: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:496: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:499: error: ‘size_t’ does not name a type
/Library/PostgreSQL/9.1/include/libpq-fe.h:500: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:501: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:508: warning: ‘PQprint’ initialized and declared ‘extern’
/Library/PostgreSQL/9.1/include/libpq-fe.h:508: error: variable or field ‘PQprint’ declared void
/Library/PostgreSQL/9.1/include/libpq-fe.h:508: error: ‘FILE’ was not declared in this scope
/Library/PostgreSQL/9.1/include/libpq-fe.h:508: error: ‘fout’ was not declared in this scope
/Library/PostgreSQL/9.1/include/libpq-fe.h:509: error: expected primary-expression before ‘const’
/Library/PostgreSQL/9.1/include/libpq-fe.h:510: error: expected primary-expression before ‘const’
/Library/PostgreSQL/9.1/include/libpq-fe.h:517: error: ‘FILE’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:525: error: ‘FILE’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:536: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:537: error: ‘size_t’ has not been declared
/Library/PostgreSQL/9.1/include/libpq-fe.h:542: error: ‘size_t’ has not been declared
In file included from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:58,
from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:434: error: ‘fd_set’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:435: error: ‘fd_set’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:446: error: ‘fd_set’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:447: error: ‘fd_set’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:487: error: field ‘ipaddr’ has incomplete type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:513: error: ‘size_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/ares.h:572: error: field ‘addr4’ has incomplete type
In file included from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:27,
from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:61,
from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/ev.h:373: error: field ‘prev’ has incomplete type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/ev.h:374: error: field ‘attr’ has incomplete type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/ev.h:450: error: ISO C++ forbids declaration of ‘sig_atomic_t’ with no type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/ev.h:450: error: expected ‘;’ before ‘volatile’
In file included from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:28,
from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:61,
from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:84: error: ‘uid_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:85: error: ‘gid_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:86: error: ‘ssize_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:87: error: ‘ino_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:88: error: ‘mode_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:137: error: ‘eio_ino_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:238: error: ‘eio_ssize_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:239: error: ‘off_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:329: error: ‘off_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:330: error: ‘off_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:332: error: ‘off_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:333: error: ‘off_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:334: error: ‘off_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:338: error: ‘off_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:339: error: ‘eio_mode_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:340: error: ‘eio_uid_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:340: error: ‘eio_gid_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:342: error: ‘off_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:343: error: ‘eio_mode_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:345: error: ‘off_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:346: error: ‘eio_uid_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:346: error: ‘eio_gid_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:347: error: ‘eio_mode_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:348: error: ‘eio_mode_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:357: error: ‘eio_mode_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:357: error: ‘dev_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:394: error: ‘eio_ssize_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:395: error: ‘eio_ssize_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/eio.h:396: error: ‘eio_ssize_t’ does not name a type
In file included from /Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:61,
from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:73: error: ‘pthread_once_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:74: error: ‘pthread_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:75: error: ‘pthread_mutex_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:76: error: ‘pthread_rwlock_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:78: error: ‘semaphore_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:84: error: ‘gid_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv-private/uv-unix.h:85: error: ‘uid_t’ does not name a type
In file included from /Users/seth/.node-gyp/0.8.12/src/node.h:61,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:274: error: ‘ssize_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:281: error: ‘ssize_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:668: error: ‘ssize_t’ has not been declared
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:682: error: field ‘addr’ has incomplete type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:682: error: ‘ssize_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:866: error: field ‘orig_termios’ has incomplete type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1080: error: ‘sig_atomic_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1236: error: ‘uv_uid_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1237: error: ‘uv_gid_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1342: error: field ‘address4’ has incomplete type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1343: error: field ‘address6’ has incomplete type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1419: error: ‘ssize_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1423: error: field ‘statbuf’ has incomplete type
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1544: error: invalid application of ‘sizeof’ to incomplete type ‘uv_statbuf_t’
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1684: error: ‘uv_mutex_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1684: error: ‘handle’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1685: error: variable or field ‘uv_mutex_destroy’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1685: error: ‘uv_mutex_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1685: error: ‘handle’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1686: error: variable or field ‘uv_mutex_lock’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1686: error: ‘uv_mutex_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1686: error: ‘handle’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1687: error: ‘uv_mutex_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1687: error: ‘handle’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1688: error: variable or field ‘uv_mutex_unlock’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1688: error: ‘uv_mutex_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1688: error: ‘handle’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1693: error: ‘uv_rwlock_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1693: error: ‘rwlock’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1694: error: variable or field ‘uv_rwlock_destroy’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1694: error: ‘uv_rwlock_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1694: error: ‘rwlock’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1695: error: variable or field ‘uv_rwlock_rdlock’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1695: error: ‘uv_rwlock_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1695: error: ‘rwlock’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1696: error: ‘uv_rwlock_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1696: error: ‘rwlock’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1697: error: variable or field ‘uv_rwlock_rdunlock’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1697: error: ‘uv_rwlock_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1697: error: ‘rwlock’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1698: error: variable or field ‘uv_rwlock_wrlock’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1698: error: ‘uv_rwlock_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1698: error: ‘rwlock’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1699: error: ‘uv_rwlock_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1699: error: ‘rwlock’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1700: error: variable or field ‘uv_rwlock_wrunlock’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1700: error: ‘uv_rwlock_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1700: error: ‘rwlock’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1705: error: ‘uv_sem_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1705: error: ‘sem’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1705: error: expected primary-expression before ‘unsigned’
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1705: error: initializer expression list treated as compound expression
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1706: error: variable or field ‘uv_sem_destroy’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1706: error: ‘uv_sem_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1706: error: ‘sem’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1707: error: variable or field ‘uv_sem_post’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1707: error: ‘uv_sem_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1707: error: ‘sem’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1708: error: variable or field ‘uv_sem_wait’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1708: error: ‘uv_sem_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1708: error: ‘sem’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1709: error: ‘uv_sem_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1709: error: ‘sem’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1715: error: variable or field ‘uv_once’ declared void
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1715: error: ‘uv_once_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1715: error: ‘guard’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1715: error: ‘callback’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1715: error: expected primary-expression before ‘void’
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1717: error: ‘uv_thread_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1717: error: ‘tid’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1718: error: ‘entry’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1718: error: expected primary-expression before ‘void’
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1718: error: expected primary-expression before ‘void’
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1718: error: initializer expression list treated as compound expression
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1719: error: ‘uv_thread_t’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/deps/uv/include/uv.h:1719: error: ‘tid’ was not declared in this scope
In file included from /Users/seth/.node-gyp/0.8.12/src/node.h:62,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/deps/v8/include/v8.h:745: error: ‘FILE’ has not been declared
In file included from /Users/seth/.node-gyp/0.8.12/src/node.h:67,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h: In destructor ‘virtual node::ObjectWrap::~ObjectWrap()’:
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:49: error: ‘assert’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h: In static member function ‘static T* node::ObjectWrap::Unwrap(v8::Handlev8::Object)’:
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:60: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:60: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:61: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h: In member function ‘void node::ObjectWrap::Wrap(v8::Handlev8::Object)’:
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:70: error: ‘assert’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h: In member function ‘virtual void node::ObjectWrap::Ref()’:
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:88: error: ‘assert’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h: In member function ‘virtual void node::ObjectWrap::Unref()’:
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:103: error: ‘assert’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h: In static member function ‘static void node::ObjectWrap::WeakCallback(v8::Persistentv8::Value, void_)’:
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:116: error: ‘assert’ was not declared in this scope
In file included from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/src/node.h: At global scope:
/Users/seth/.node-gyp/0.8.12/src/node.h:140: error: ‘ssize_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/src/node.h:144: error: ‘ssize_t’ does not name a type
/Users/seth/.node-gyp/0.8.12/src/node.h: In function ‘v8::Persistentv8::Function_ node::cb_unwrap(void_)’:
/Users/seth/.node-gyp/0.8.12/src/node.h:174: error: ‘assert’ was not declared in this scope
In file included from /Users/seth/.node-gyp/0.8.12/src/node.h:270,
from ../src/binding.cc:2:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void __ev_io_init(ev_io, void ()(_ev_io, int), int, int)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:141: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:141: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:142: error: ‘memset’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void __ev_io_set(_ev_io, int, int)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:149: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:149: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void __ev_io_start(_ev_io)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:156: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:156: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void __ev_io_stop(_ev_io)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:166: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:166: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void __ev_timer_init(ev_timer, void ()(_ev_timer, int), double, double)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:175: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:175: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:176: error: ‘memset’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void __ev_timer_set(_ev_timer, double, double)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:185: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:185: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void __ev_timer_start(_ev_timer)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:192: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:192: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void __ev_timer_stop(_ev_timer)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:205: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:205: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void _ev_timer_again(ev_timer)’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:211: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:211: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void ev_ref()’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:221: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:221: error: ‘fputs’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h: In function ‘void ev_unref()’:
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:228: error: ‘stderr’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/ev-emul.h:228: error: ‘fputs’ was not declared in this scope
../src/binding.cc: In static member function ‘static v8::Handlev8::Value Connection::SendQuery(const v8::Arguments&)’:
../src/binding.cc:139: error: ‘free’ was not declared in this scope
../src/binding.cc: In static member function ‘static v8::Handlev8::Value Connection::DispatchParameterizedQuery(const v8::Arguments&, bool)’:
../src/binding.cc:216: error: ‘free’ was not declared in this scope
../src/binding.cc: In member function ‘bool Connection::Connect(const char
)’:
../src/binding.cc:332: error: ‘printf’ was not declared in this scope
../src/binding.cc:342: error: ‘printf’ was not declared in this scope
../src/binding.cc:348: error: ‘printf’ was not declared in this scope
../src/binding.cc:352: error: ‘assert’ was not declared in this scope
../src/binding.cc: In member function ‘void Connection::HandleIOEvent(int)’:
../src/binding.cc:386: error: ‘printf’ was not declared in this scope
../src/binding.cc:401: error: ‘printf’ was not declared in this scope
../src/binding.cc: In member function ‘void Connection::HandleResult(PGresult
)’:
../src/binding.cc:461: error: ‘printf’ was not declared in this scope
../src/binding.cc: In member function ‘void Connection::Emit(int, v8::Handlev8::Value
)’:
../src/binding.cc:569: error: ‘assert’ was not declared in this scope
../src/binding.cc: In static member function ‘static char
* Connection::ArgToCStringArray(v8::Localv8::Array)’:
../src/binding.cc:666: error: ‘printf’ was not declared in this scope
../src/binding.cc:675: error: ‘printf’ was not declared in this scope
../src/binding.cc: In static member function ‘static void Connection::ReleaseCStringArray(char*
, int)’:
../src/binding.cc:687: error: ‘free’ was not declared in this scope
../src/binding.cc: In static member function ‘static char
Connection::MallocCString(v8::Handlev8::Value)’:
../src/binding.cc:696: error: ‘strlen’ was not declared in this scope
../src/binding.cc:696: error: ‘malloc’ was not declared in this scope
../src/binding.cc:700: error: ‘strcpy’ was not declared in this scope
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h: In static member function ‘static T* node::ObjectWrap::Unwrap(v8::Handlev8::Object) [with T = Connection]’:
../src/binding.cc:95: instantiated from here
/Users/seth/.node-gyp/0.8.12/src/node_object_wrap.h:60: error: ‘assert’ was not declared in this scope
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:236:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:96:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Darwin 11.4.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/seth/node_modules/pg
gyp ERR! node -v v0.8.12
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
pg@0.8.4 node_modules/pg
└── generic-pool@1.0.12
bash-3.2$

@booo
Collaborator
booo commented Oct 15, 2012

Seems like the compiler can not find the most fundamental include files like stdio.h etc. Are you sure they are installed? If you don't want to use the native binding you can ignore these errors. Otherwise you maybe have to install XCode?

@brianc
Owner
brianc commented Oct 15, 2012

Yeah, you'll need to install xcode. How did you install node? Do you have the "command line tools" from xcode installed?

When node-postgres installs it tries to compile the native bindings, giving you the option to use either pure javascript or C/C++ bindings to libpq which is the C postgres client. If the compilation fails for any reason NPM (which is kicking off the compile) will output all the compilation failures as errors but will continue to install node-postgres. This way you can install & use the pure javascript bindings on a computer which cannot, for one reason or another, compile the native bindings. The error messages during install are a bit nasty; however, you can safely ignore them. The javascript & native bindings share the same API.

@brianc brianc closed this Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment