gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] psycopg2 2.0.7 on Mac OS


From: James Busser
Subject: [Gnumed-devel] psycopg2 2.0.7 on Mac OS
Date: Tue, 19 Aug 2008 23:40:34 -0700

On 19-Aug-08, at 7:29 AM, Karsten Hilbert wrote:

On Tue, Aug 19, 2008 at 04:12:33PM +0200, Karsten Hilbert wrote:

The psycopg2 modules needs to be upgraded to 0.2.7.
2.0.7, rather

As there are not yet any installers for the above newest (April 2008) version for Mac OS at pythonmac.org, I downloaded the tarball from initdb

        http://www.initd.org/pub/software/psycopg/psycopg2-2.0.7.tar.gz

and after untarring and reading README and INSTALL, from the command line (as root) I tried

        python setup.py install

but got the output below. The readme and install list no other dependencies for example anything more than Python 2.4.4... I am not sure if any other steps were needed maybe hinted from
   http://webpy.org/install_macosx

=========================================

MacBook:/Volumes/MacBookHD_1/Users/djb/Desktop/psycopg2-2.0.7 root# python setup.py install
running install
running build
running build_py
running build_ext
Warning: /bin/sh: line 1: pg_config: command not found
building 'psycopg2._psycopg' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - fno-common -dynamic -DNDEBUG -g -O3 -DPY_MAJOR_VERSION=2 - DPY_MINOR_VERSION=4 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 - DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 - DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPSYCOPG_EXTENSIONS=1 - DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/ Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 - I. -c psycopg/psycopgmodule.c -o build/temp.macosx-10.3-fat-2.4/ psycopg/psycopgmodule.o In file included from psycopg/psycopgmodule.c:23In file included from psycopg/psycopgmodule.c:23: /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:18:20: error: limits.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:21:2: error: #error "Something's broken. UCHAR_MAX should be defined in limits.h." /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:25:2: error: #error "Python's source code assumes C's unsigned char is an 8-bit type." /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:32:19: error: stdio.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:34:5: error: #error "Python.h requires that stdio.h define NULL." /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:37:20: error: string.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:38:19: error: errno.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:39:20: error: stdlib.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:41:20: error: unistd.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:53:20: error: assert.h: No such file or directory In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:55,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:7:20: error: stdint.h: No such file or directory In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:55,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:73: error: parse error before 'Py_uintptr_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:73: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:74: error: parse error before 'Py_intptr_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:74: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:94:76: error: math.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:101:22: error: sys/time.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:102:18: error: time.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:120:24: error: sys/select.h: No such file or directory: /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:18:20:
 error: limits.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:21:2: /Library/Frameworks/Python.framework/Versions/2.4/ include/python2.4/pyport.h:159:22:error: #error "Something's broken. UCHAR_MAX should be defined in limits.h." /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:25:2: error: #error "Python's source code assumes C's unsigned char is an 8-bit type."
error: sys/stat.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:32:19: error: stdio.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:34:5: error: #error "Python.h requires that stdio.h define NULL."/Library/Frameworks/Python.framework/Versions/2.4/include/ python2.4/pyport.h:399:21: error: termios.h: No such file or directory/Library/Frameworks/ Python.framework/Versions/2.4/include/python2.4/Python.h:37:20:
 error: string.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:400: warning: 'struct winsize' declared inside parameter list /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:400: warning: its scope is only this definition or declaration, which is probably not what you want/Library/Frameworks/ Python.framework/Versions/2.4/include/python2.4/Python.h:38:19: error: errno.h: No such file or directory

/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:400: warning: 'struct termios' declared inside parameter list /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:39:20: error: stdlib.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:401: warning: 'struct winsize' declared inside parameter list/Library/Frameworks/Python.framework/Versions/2.4/include/ python2.4/Python.h:41:20: error: unistd.h: No such file or directory

/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:401: warning: 'struct termios' declared inside parameter list /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:53:20: error: assert.h: No such file or directory In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:55,
                 from psycopg/psycopgmodule.c:23:
In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:74,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pymem.h:50: warning: parameter names (without types) in function declaration /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:7:20:/Library/Frameworks/Python.framework/Versions/2.4/ include/python2.4/pymem.h:51: error: parse error before 'size_t' error: stdint.h: No such file or directory

In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:55,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:73: error: parse error before 'Py_uintptr_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:73: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:74: error: parse error before 'Py_intptr_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:74: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:94:76: error: math.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:101:22: error: sys/time.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:102:18: error: time.h: No such file or directory In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:76,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ object.h:227: error: parse error before 'FILE'/Library/Frameworks/ Python.framework/Versions/2.4/include/python2.4/pyport.h:120:24: error: sys/select.h: No such file or directory

/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:159:22: error: sys/stat.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:399:21: error: termios.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:400: warning: 'struct winsize' declared inside parameter list /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:400: warning: its scope is only this definition or declaration, which is probably not what you want /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ object.h:371: error: parse error before 'FILE'/Library/Frameworks/ Python.framework/Versions/2.4/include/python2.4/pyport.h:400: warning: 'struct termios' declared inside parameter list

/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:401: warning: 'struct winsize' declared inside parameter list /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyport.h:401: warning: 'struct termios' declared inside parameter list In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:74,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pymem.h:50: warning: parameter names (without types) in function declaration In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:77,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ objimpl.h:97: warning: parameter names (without types) in function declaration /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ objimpl.h:98: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pymem.h:51: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ objimpl.h:292: warning: parameter names (without types) in function declaration In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:76,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ object.h:227: error: parse error before 'FILE' In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:81,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ unicodeobject.h:55:19: error: ctype.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ unicodeobject.h:118:21: error: wchar.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ object.h:371: error: parse error before 'FILE' In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:81,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ unicodeobject.h:511: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ unicodeobject.h:529: error: parse error before '*' token In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:77,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ objimpl.h:97: warning: parameter names (without types) in function declaration /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ objimpl.h:98: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ objimpl.h:292: warning: parameter names (without types) in function declaration In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:81,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ unicodeobject.h:55:19: error: ctype.h: No such file or directory /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ unicodeobject.h:118:21: error: wchar.h: No such file or directory In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:81,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ unicodeobject.h:511: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ unicodeobject.h:529: error: parse error before '*' token In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:84,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ longobject.h:63: error: parse error before '_PyLong_NumBits' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ longobject.h:63: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ longobject.h:79: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ longobject.h:102: error: parse error before 'size_t' In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:90,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ stringobject.h:10:20: error: stdarg.h: No such file or directory In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:84,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ longobject.h:63: error: parse error before '_PyLong_NumBits' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ longobject.h:63: warning: data definition has no type or storage class In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:90,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ stringobject.h:63: error: parse error before 'va_list' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ longobject.h:79: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ longobject.h:102: error: parse error before 'size_t' In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:90,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ stringobject.h:10:20: In file included from /Library/Frameworks/ Python.framework/Versions/2.4/include/python2.4/Python.h:101,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:12: error: parse error before 'FILE' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:12: warning: no semicolon at end of struct or union /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:15: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:28: error: parse error before '}' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:28: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:38: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:39: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:40: warning: data definition has no type or storage classerror: stdarg.h: No such file or directory In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:90,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ stringobject.h:63: error: parse error before 'va_list'

/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:57: error: parse error before 'FILE' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:58: error: parse error before 'Py_UniversalNewlineFread' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:58: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:58: warning: data definition has no type or storage class In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:101,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:12: error: parse error before 'FILE' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:12: warning: no semicolon at end of struct or union /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:15: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:28: error: parse error before '}' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:28: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:38: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:39: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:40: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:57: error: parse error before 'FILE' In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:112,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyerrors.h:226: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:58: error: parse error before 'Py_UniversalNewlineFread' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ fileobject.h:58: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyerrors.h:228: error: parse error before 'size_t'/Library/Frameworks/ Python.framework/Versions/2.4/include/python2.4/fileobject.h:58: warning: data definition has no type or storage class

In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:116,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ modsupport.h:20: error: parse error before 'va_list' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ modsupport.h:22: error: parse error before 'va_list' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ modsupport.h:23: error: parse error before 'va_list' In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:117,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:32: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:33: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:35: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:36: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:40: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:41: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:42: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:43: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:44: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:45: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:46: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:49: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:55: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:59: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:60: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:64: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:66: error: parse error before '*' token In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:112,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyerrors.h:226: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:82: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pyerrors.h:228: error: parse error before 'size_t' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:123: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:125: error: parse error before '*' token In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:116,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ modsupport.h:20: error: parse error before 'va_list' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ modsupport.h:22: error: parse error before 'va_list' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ modsupport.h:23: error: parse error before 'va_list' In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:119,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ sysmodule.h:12: error: parse error before '*' tokenIn file included from /Library/Frameworks/Python.framework/Versions/2.4/include/ python2.4/Python.h:117,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:32: error: parse error before '*' token

/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:33: error: parse error before '*' token/Library/ Frameworks/Python.framework/Versions/2.4/include/python2.4/ sysmodule.h:12: error: parse error before 'FILE'

/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ sysmodule.h:12: warning: data definition has no type or storage class /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:35: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:36: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:40: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:41: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:42: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:43: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:44: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:45: error: parse error before '*' tokenIn file included from /Library/Frameworks/Python.framework/Versions/2.4/include/ python2.4/Python.h:121,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ import.h:25: error: parse error before 'size_t'

/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:46: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:49: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:55: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:59: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:60: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:64: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:66: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:82: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:123: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ pythonrun.h:125: error: parse error before '*' token In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:119,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ sysmodule.h:12: error: parse error before '*' token /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ sysmodule.h:12: error: parse error before 'FILE' /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ sysmodule.h:12: warning: data definition has no type or storage class In file included from /Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4/Python.h:121,
                 from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ import.h:25: error: parse error before 'size_t'
In file included from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:131: error: parse error before 'size_t'
In file included from psycopg/psycopgmodule.c:26:
./psycopg/config.h:112:21: error: pthread.h: No such file or directory
In file included from ./psycopg/python.h:27,
                 from psycopg/psycopgmodule.c:27:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ structmember.h:10:39: error: stddef.h: No such file or directory
In file included from psycopg/psycopgmodule.c:23:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Python.h:131: error: parse error before 'size_t'
In file included from psycopg/psycopgmodule.c:26:
./psycopg/config.h:112:21: error: pthread.h: No such file or directory
In file included from ./psycopg/python.h:27,
                 from psycopg/psycopgmodule.c:27:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ structmember.h:10:39: error: stddef.h: No such file or directory
In file included from psycopg/psycopgmodule.c:29:
./psycopg/connection.h:27:22: error: libpq-fe.h: No such file or directory
In file included from psycopg/psycopgmodule.c:29:
./psycopg/connection.h:49: error: parse error before 'pthread_mutex_t'
./psycopg/connection.h:49: warning: no semicolon at end of struct or union
./psycopg/connection.h:61: error: parse error before '*' token
./psycopg/connection.h:61: warning: data definition has no type or storage classIn file included from psycopg/psycopgmodule.c:29: ./psycopg/connection.h:27:22: error: libpq-fe.h: No such file or directory

./psycopg/connection.h:78: error: parse error before '}' tokenIn file included from psycopg/psycopgmodule.c:29:
./psycopg/connection.h:49: error: parse error before 'pthread_mutex_t'
./psycopg/connection.h:49: warning: no semicolon at end of struct or union

./psycopg/connection.h:78: warning: data definition has no type or storage class
./psycopg/connection.h:81: error: parse error before '*' token
./psycopg/connection.h:61: error: parse error before '*' token
./psycopg/connection.h:82: error: parse error before '*' token./ psycopg/connection.h:61: warning: data definition has no type or storage class

./psycopg/connection.h:78: error: parse error before '}' token./ psycopg/connection.h:83: error: parse error before '*' token

./psycopg/connection.h:78: warning: data definition has no type or storage class
./psycopg/connection.h:84: error: parse error before '*' token
./psycopg/connection.h:85: error: parse error before '*' token./ psycopg/connection.h:81: error: parse error before '*' token

./psycopg/connection.h:82: error: parse error before '*' token
./psycopg/connection.h:86: error: parse error before '*' token
./psycopg/connection.h:83: error: parse error before '*' token
./psycopg/connection.h:84: error: parse error before '*' token
./psycopg/connection.h:85: error: parse error before '*' token
./psycopg/connection.h:86: error: parse error before '*' token
In file included from psycopg/psycopgmodule.c:30:
./psycopg/cursor.h:41: error: parse error before 'connectionObject'
./psycopg/cursor.h:41: warning: no semicolon at end of struct or union
./psycopg/cursor.h:43: error: parse error before ':' token
./psycopg/cursor.h:44: error: parse error before ':' token
./psycopg/cursor.h:45: error: parse error before ':' token
In file included from psycopg/psycopgmodule.c:30:
./psycopg/cursor.h:41: error: parse error before 'connectionObject'
./psycopg/cursor.h:57: error: parse error before '*' token./psycopg/ cursor.h:41: warning: no semicolon at end of struct or union

./psycopg/cursor.h:43: error: parse error before ':' token
./psycopg/cursor.h:44: error: parse error before ':' token./psycopg/ cursor.h:57: warning: data definition has no type or storage class

./psycopg/cursor.h:59: error: parse error before 'lastoid'./psycopg/ cursor.h:45: error: parse error before ':' token

./psycopg/cursor.h:59: warning: data definition has no type or storage class ./psycopg/cursor.h:57: error: parse error before '*' token./psycopg/ cursor.h:81: error: parse error before '}' token

./psycopg/cursor.h:81: warning: data definition has no type or storage class ./psycopg/cursor.h:84: error: parse error before '*' token./psycopg/ cursor.h:57: warning: data definition has no type or storage class

./psycopg/cursor.h:59: error: parse error before 'lastoid'
./psycopg/cursor.h:59: warning: data definition has no type or storage class
./psycopg/cursor.h:81: error: parse error before '}' token
./psycopg/cursor.h:81: warning: data definition has no type or storage class
./psycopg/cursor.h:84: error: parse error before '*' token
In file included from psycopg/psycopgmodule.c:32:
./psycopg/microprotocols.h:55: error: parse error before 'connectionObject'
./psycopg/microprotocols.h:58: error: parse error before '*' token
In file included from psycopg/psycopgmodule.c:32:
./psycopg/microprotocols.h:55: error: parse error before 'connectionObject'
./psycopg/microprotocols.h:58: error: parse error before '*' token
psycopg/psycopgmodule.c:52: error: 'NULL' undeclared here (not in a function)psycopg/psycopgmodule.c:52: error: 'NULL' undeclared here (not in a function)

psycopg/psycopgmodule.c:96: error: parse error before '_psyco_connect_fill_dsn' psycopg/psycopgmodule.c:96: error: parse error before '_psyco_connect_fill_dsn'
psycopg/psycopgmodule.c:96: error: parse error before 'size_t'
psycopg/psycopgmodule.c:96: error: parse error before 'size_t'psycopg/ psycopgmodule.c: In function '_psyco_connect_fill_dsn':

psycopg/psycopgmodule.c:98: warning: incompatible implicit declaration of built-in function 'strcpy'psycopg/psycopgmodule.c: In function '_psyco_connect_fill_dsn': psycopg/psycopgmodule.c:98: warning: incompatible implicit declaration of built-in function 'strcpy' psycopg/psycopgmodule.c:98: error: 'i' undeclared (first use in this function) psycopg/psycopgmodule.c:98: error: 'i' undeclared (first use in this function) psycopg/psycopgmodule.c:98: error: (Each undeclared identifier is reported only once psycopg/psycopgmodule.c:98: error: (Each undeclared identifier is reported only once
psycopg/psycopgmodule.c:98: error: for each function it appears in.)

psycopg/psycopgmodule.c:98: error: 'kw' undeclared (first use in this function)psycopg/psycopgmodule.c:98: error: for each function it appears in.)

psycopg/psycopgmodule.c:98: error: 'kw' undeclared (first use in this function) psycopg/psycopgmodule.c:98: warning: incompatible implicit declaration of built-in function 'strlen' psycopg/psycopgmodule.c:98: warning: incompatible implicit declaration of built-in function 'strlen' psycopg/psycopgmodule.c:99: error: 'v' undeclared (first use in this function)psycopg/psycopgmodule.c:99: error: 'v' undeclared (first use in this function)

psycopg/psycopgmodule.c: In function 'psyco_connect':psycopg/ psycopgmodule.c: In function 'psyco_connect': psycopg/psycopgmodule.c:109: error: 'size_t' undeclared (first use in this function) psycopg/psycopgmodule.c:109: error: 'size_t' undeclared (first use in this function)
psycopg/psycopgmodule.c:109: error: parse error before 'idsn'
psycopg/psycopgmodule.c:109: error: parse error before 'idsn'

psycopg/psycopgmodule.c:124: warning: return from incompatible pointer type psycopg/psycopgmodule.c:124: warning: return from incompatible pointer type psycopg/psycopgmodule.c:138: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:138: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:146: warning: comparison of distinct pointer types lacks a cast
psycopg/psycopgmodule.c:147: error: parse error before 'l'
psycopg/psycopgmodule.c:146: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:149: error: 'l' undeclared (first use in this function) psycopg/psycopgmodule.c:149: warning: incompatible implicit declaration of built-in function 'strlen'psycopg/psycopgmodule.c:147: error: parse error before 'l'

psycopg/psycopgmodule.c:149: error: 'l' undeclared (first use in this function) psycopg/psycopgmodule.c:149: warning: incompatible implicit declaration of built-in function 'strlen' psycopg/psycopgmodule.c:156: warning: incompatible implicit declaration of built-in function 'malloc'
psycopg/psycopgmodule.c:156: error: invalid operands to binary *
psycopg/psycopgmodule.c:156: warning: incompatible implicit declaration of built-in function 'malloc'
psycopg/psycopgmodule.c:156: error: invalid operands to binary *
psycopg/psycopgmodule.c:156: warning: passing argument 1 of 'malloc' makes integer from pointer without a cast psycopg/psycopgmodule.c:157: warning: comparison of distinct pointer types lacks a castpsycopg/psycopgmodule.c:156: warning: passing argument 1 of 'malloc' makes integer from pointer without a cast

psycopg/psycopgmodule.c:162: error: 'idsn' undeclared (first use in this function)psycopg/psycopgmodule.c:157: warning: comparison of distinct pointer types lacks a cast

psycopg/psycopgmodule.c:162: error: 'idsn' undeclared (first use in this function)
psycopg/psycopgmodule.c:177: error: array subscript is not an integer
psycopg/psycopgmodule.c:177: error: array subscript is not an integerpsycopg/psycopgmodule.c:178: warning: incompatible implicit declaration of built-in function 'memmove'

psycopg/psycopgmodule.c:178: warning: passing argument 3 of 'memmove' makes integer from pointer without a castpsycopg/psycopgmodule.c:178: warning: incompatible implicit declaration of built-in function 'memmove'

psycopg/psycopgmodule.c:178: warning: passing argument 3 of 'memmove' makes integer from pointer without a cast psycopg/psycopgmodule.c:187: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:187: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:191: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:191: warning: comparison of distinct pointer types lacks a castpsycopg/psycopgmodule.c:198: warning: comparison of distinct pointer types lacks a cast

psycopg/psycopgmodule.c:198: warning: comparison of distinct pointer types lacks a castpsycopg/psycopgmodule.c:204: warning: comparison of distinct pointer types lacks a cast

psycopg/psycopgmodule.c:204: warning: comparison of distinct pointer types lacks a cast
psycopg/psycopgmodule.c: In function '_psyco_register_type_set':
psycopg/psycopgmodule.c:232: warning: comparison of distinct pointer types lacks a cast
psycopg/psycopgmodule.c: In function '_psyco_register_type_set':
psycopg/psycopgmodule.c:232: warning: comparison of distinct pointer types lacks a cast
psycopg/psycopgmodule.c: In function 'psyco_register_type':
psycopg/psycopgmodule.c:243: warning: return from incompatible pointer type psycopg/psycopgmodule.c:246: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:248: error: parse error before ')' tokenpsycopg/psycopgmodule.c: In function 'psyco_register_type': psycopg/psycopgmodule.c:248: error: request for member 'string_types' in something not a structure or union psycopg/psycopgmodule.c:243: warning: return from incompatible pointer type

psycopg/psycopgmodule.c:246: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:248: warning: passing argument 1 of '_psyco_register_type_set' from incompatible pointer type
psycopg/psycopgmodule.c:251: error: parse error before ')' token
psycopg/psycopgmodule.c:248: error: parse error before ')' token
psycopg/psycopgmodule.c:248: error: request for member 'string_types' in something not a structure or unionpsycopg/psycopgmodule.c:251: error: request for member 'string_types' in something not a structure or union

psycopg/psycopgmodule.c:251: warning: passing argument 2 of 'typecast_add' from incompatible pointer type psycopg/psycopgmodule.c:248: warning: passing argument 1 of '_psyco_register_type_set' from incompatible pointer typepsycopg/ psycopgmodule.c:256: warning: return from incompatible pointer type

psycopg/psycopgmodule.c:260: warning: passing argument 2 of 'typecast_add' from incompatible pointer type
psycopg/psycopgmodule.c:251: error: parse error before ')' token
psycopg/psycopgmodule.c:251: error: request for member 'string_types' in something not a structure or union psycopg/psycopgmodule.c:251: warning: passing argument 2 of 'typecast_add' from incompatible pointer type psycopg/psycopgmodule.c:256: warning: return from incompatible pointer type psycopg/psycopgmodule.c: In function 'psyco_adapters_init':psycopg/ psycopgmodule.c:260: warning: passing argument 2 of 'typecast_add' from incompatible pointer type

psycopg/psycopgmodule.c:275: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:276: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:277: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type
psycopg/psycopgmodule.c: In function 'psyco_adapters_init':
psycopg/psycopgmodule.c:275: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:279: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:280: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:276: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:277: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:281: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:282: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:279: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:280: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:296: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer typepsycopg/ psycopgmodule.c:281: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type

psycopg/psycopgmodule.c:298: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer typepsycopg/ psycopgmodule.c:282: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type

psycopg/psycopgmodule.c:300: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:296: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:302: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:298: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:306: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:311: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:300: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:302: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:306: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type psycopg/psycopgmodule.c:311: warning: passing argument 2 of 'microprotocols_add' from incompatible pointer type
psycopg/psycopgmodule.c: In function 'psyco_encodings_fill':
psycopg/psycopgmodule.c:395: warning: comparison of distinct pointer types lacks a cast
psycopg/psycopgmodule.c: In function 'psyco_encodings_fill':
psycopg/psycopgmodule.c:395: warning: comparison of distinct pointer types lacks a cast
psycopg/psycopgmodule.c: In function 'init_psycopg':
psycopg/psycopgmodule.c:742: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:760: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:771: warning: passing argument 3 of 'Py_InitModule4' from incompatible pointer type psycopg/psycopgmodule.c:771: warning: passing argument 4 of 'Py_InitModule4' from incompatible pointer type psycopg/psycopgmodule.c:778: warning: passing argument 2 of 'PyCObject_FromVoidPtr' from incompatible pointer type psycopg/psycopgmodule.c:779: warning: comparison of distinct pointer types lacks a cast
psycopg/psycopgmodule.c: In function 'init_psycopg':
psycopg/psycopgmodule.c:742: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:760: warning: comparison of distinct pointer types lacks a cast psycopg/psycopgmodule.c:771: warning: passing argument 3 of 'Py_InitModule4' from incompatible pointer type psycopg/psycopgmodule.c:771: warning: passing argument 4 of 'Py_InitModule4' from incompatible pointer type psycopg/psycopgmodule.c:778: warning: passing argument 2 of 'PyCObject_FromVoidPtr' from incompatible pointer type psycopg/psycopgmodule.c:779: warning: comparison of distinct pointer types lacks a cast
lipo: can't figure out the architecture type of: /var/tmp//ccd9KQ9o.out
error: command 'gcc' failed with exit status 1
MacBook:/Volumes/MacBookHD_1/Users/djb/Desktop/psycopg2-2.0.7 root#




reply via email to

[Prev in Thread] Current Thread [Next in Thread]