gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] MacOSX - pypgsql


From: Tony Lembke
Subject: [Gnumed-devel] MacOSX - pypgsql
Date: Thu, 12 Sep 2002 20:53:36 +1000

In the new MacOSX 10.2

- Python is included as standard,
- postgresql is available as a binary package,
- and development is advanced  on wxWindows for Mac.

pypgsql is not available as a binary for Mac, and I could get no reply from the pypgsql list. There do not seem to be too many other projects using that particular package - gnumed is listed first!

I have tried to compile it from source but get an error in gcc that I haven't the expertise to solve. I have tried using gcc3 (standard) and gcc2. Normally I have little trouble compiling from C source code.

Perhaps someone can suggest a course of action.

The error is

ld: unknown flag: -R/usr/local/pgsql/lib
error: command 'gcc' failed with exit status 1

The log of the build attempt is


[bluey:~/Desktop/Downloads/pypgsql] tlembke% python setup.py build
running build
running build_py
creating build
creating build/lib.darwin-6.0-Power Macintosh-2.2
creating build/lib.darwin-6.0-Power Macintosh-2.2/pyPgSQL
copying pyPgSQL/__init__.py -> build/lib.darwin-6.0-Power Macintosh-2.2/pyPgSQL copying pyPgSQL/PgSQL.py -> build/lib.darwin-6.0-Power Macintosh-2.2/pyPgSQL
creating build/lib.darwin-6.0-Power Macintosh-2.2/pyPgSQL/libpq
copying pyPgSQL/libpq/__init__.py -> build/lib.darwin-6.0-Power Macintosh-2.2/pyPgSQL/libpq
running build_ext
building 'pyPgSQL.libpq.libpqmodule' extension
creating build/temp.darwin-6.0-Power Macintosh-2.2
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c libpqmodule.c -o build/temp.darwin-6.0-Power Macintosh-2.2/libpqmodule.o gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pgboolean.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pgboolean.o gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pgint2object.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pgint2object.o gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pgint8object.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pgint8object.o gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pgversion.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pgversion.o
pgversion.c: In function `PgVersion_New':
pgversion.c:125: warning: `c1' might be used uninitialized in this function pgversion.c:125: warning: `c2' might be used uninitialized in this function pgversion.c:125: warning: `c1' might be used uninitialized in this function pgversion.c:125: warning: `c2' might be used uninitialized in this function pgversion.c:125: warning: `c1' might be used uninitialized in this function pgversion.c:125: warning: `c2' might be used uninitialized in this function gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pglargeobject.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pglargeobject.o
pglargeobject.c: In function `PgLo_pickle':
pglargeobject.c:1201: warning: unused variable `cnx'
pglargeobject.c:1202: warning: unused variable `fd'
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pgnotify.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pgnotify.o gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pgconnection.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pgconnection.o gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pgresult.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pgresult.o gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I/usr/local/pgsql/include -I../../../../../ -I/Library/Frameworks/Python.framework/Versions/2.2/include/python2.2 -c pymemstrdup.c -o build/temp.darwin-6.0-Power Macintosh-2.2/pymemstrdup.o gcc -Wl,-F. -Wl,-flat_namespace,-U,_environ -bundle -framework Python build/temp.darwin-6.0-Power Macintosh-2.2/libpqmodule.o build/temp.darwin-6.0-Power Macintosh-2.2/pgboolean.o build/temp.darwin-6.0-Power Macintosh-2.2/pgint2object.o build/temp.darwin-6.0-Power Macintosh-2.2/pgint8object.o build/temp.darwin-6.0-Power Macintosh-2.2/pgversion.o build/temp.darwin-6.0-Power Macintosh-2.2/pglargeobject.o build/temp.darwin-6.0-Power Macintosh-2.2/pgnotify.o build/temp.darwin-6.0-Power Macintosh-2.2/pgconnection.o build/temp.darwin-6.0-Power Macintosh-2.2/pgresult.o build/temp.darwin-6.0-Power Macintosh-2.2/pymemstrdup.o -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -lpq -o build/lib.darwin-6.0-Power Macintosh-2.2/pyPgSQL/libpq/libpqmodule.so
ld: unknown flag: -R/usr/local/pgsql/lib
error: command 'gcc' failed with exit status 1
[bluey:~/Desktop/Downloads/pypgsql] tlembke%

Thanks,

Tony Lembke








reply via email to

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