This project is archived and is in readonly mode.
Cannot compile on FreeBSD
Reported by Psycopg website | 2011-02-15 15:56:11 UTC
Submitted by: Landreville
When running python setup.py build_ext on FreeBSD I get the
following error:
gcc -pthread -shared ${LDFLAGS}
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/psycopgmodule.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/green.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/pqpath.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/utils.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/bytes_format.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/connection_int.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/connection_type.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/cursor_int.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/cursor_type.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/lobject_int.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/lobject_type.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/notify_type.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/xid_type.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/adapter_asis.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/adapter_binary.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/adapter_datetime.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/adapter_list.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/adapter_pboolean.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/adapter_pdecimal.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/adapter_pfloat.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/adapter_qstring.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/microprotocols.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/microprotocols_proto.o
build/temp.freebsd-7.0-RELEASE-i386-2.7/psycopg/typecast.o
-L/usr/local/pgsql-9.0.3/lib -lpq -o
build/lib.freebsd-7.0-RELEASE-i386-2.7/psycopg2/_psycopg.so
gcc: ${LDFLAGS}: No such file or directory
error: command 'gcc' failed with exit status 1
This is with psycopg2-2.4-beta2 (same thing happens with 2.3.2), Postgres 9.0.3, Python 2.7.1, FreeBSD 7
Comments and changes to this ticket
-

Landreville 2011-02-15 21:04:25 UTC
I found the issue. There was a patch on 2.7.1 that introduced a regression bug in compiling extensions on FreeBSD. It will be fixed in 2.7.2.
Here's the relevant bug report http://bugs.python.org/issue9437
-

Daniele Varrazzo 2011-02-15 21:37:36 UTC
- State changed from new to invalid
- Tag changed from rel-2.4-beta2 to freebsd, rel-2.4-beta2
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
WARNING: the informations in this tracker are archived. Please submit new tickets or comments to the new tracker.
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.