Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Cannot compile on FreeBSD

#43

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

Reported by Psycopg website · February 15th, 2011 @ 03:56 PM

State: invalid
Milestone: none
Assigned to: nobody

Activity

  1. Landreville
    Landreville

    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

    February 15th, 2011 @ 09:04 PM

  2. Daniele Varrazzo
    Daniele Varrazzo
    • State changed from new to invalid
    • Tag changed from rel-2.4-beta2 to freebsd, rel-2.4-beta2

    February 15th, 2011 @ 09:37 PM