Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 2010 12:52:30 GMT
From:      Milos Negovanovic <milos.negovanovic@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152671: update of lang/python27 to 2.7.1 breaks multiple extensions
Message-ID:  <201011291252.oATCqUpm025253@red.freebsd.org>
Resent-Message-ID: <201011291300.oATD0RQJ074129@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152671
>Category:       ports
>Synopsis:       update of lang/python27 to 2.7.1 breaks multiple extensions
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 29 13:00:27 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Milos Negovanovic
>Release:        8.1
>Organization:
>Environment:
FreeBSD freebsd.spiked.uk.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
1) devel/py-cheetah:

One or more C extensions failed to build.
Performance enhancements will not be available.
Pure Python installation succeeded.
===>  Installing for py27-cheetah-2.4.3
===>   py27-cheetah-2.4.3 depends on package: py27-markdown>=2.0.3 - found
===>   py27-cheetah-2.4.3 depends on file: /usr/local/bin/easy_install-2.7 - found
===>   py27-cheetah-2.4.3 depends on file: /usr/local/bin/python2.7 - found
===>   Generating temporary packing list
===>  Checking if devel/py-cheetah already installed
/usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'line'
  warnings.warn(msg)
running easy_install
error: Not a URL, existing file, or requirement spec: '/usr/ports/devel/py-cheetah/work/Cheetah-2.4.3/dist/Cheetah-2.4.3-py2.7-freebsd-8.1-RELEASE-amd64.egg'
*** Error code 1

Stop in /usr/ports/devel/py-cheetah.


2) databases/py-psycopg2:

cc -fno-strict-aliasing -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.2.2 (dt dec ext pq3)" -DPG_VERSION_HEX=0x080405 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.7 -I. -I/usr/local/include -I/usr/local/include/postgresql/server -c psycopg/green.c -o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/green.o
cc -fno-strict-aliasing -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.2.2 (dt dec ext pq3)" -DPG_VERSION_HEX=0x080405 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.7 -I. -I/usr/local/include -I/usr/local/include/postgresql/server -c psycopg/utils.c -o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/utils.o
cc -shared ${LDFLAGS} -pthread build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/psycopgmodule.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/pqpath.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/typecast.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/microprotocols.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/microprotocols_proto.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/connection_type.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/connection_int.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/cursor_type.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/cursor_int.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/lobject_type.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/lobject_int.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_qstring.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_pboolean.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_binary.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/ada
 pter_asis.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_list.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_datetime.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_pfloat.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_pdecimal.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/green.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/utils.o -L/usr/local/lib -lpq -o build/lib.freebsd-8.1-RELEASE-amd64-2.7/psycopg2/_psycopg.so
cc: ${LDFLAGS}: No such file or directory
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/databases/py-psycopg2.


3) databases/py-sqlite3

cc -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -fPIC -DMODULE_NAME="sqlite3" -I/usr/local/include -IModules/_sqlite -I/usr/local/include/python2.7 -c _sqlite/util.c -o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/util.o
creating build/lib.freebsd-8.1-RELEASE-amd64-2.7
cc -shared ${LDFLAGS} -pthread -O2 -pipe -fno-strict-aliasing build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/cache.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/connection.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/cursor.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/microprotocols.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/module.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/prepare_protocol.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/row.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/statement.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/util.o -L/usr/local/lib -R/usr/local/lib -lsqlite3 -o build/lib.freebsd-8.1-RELEASE-amd64-2.7/_sqlite3.so
cc: ${LDFLAGS}: No such file or directory
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/databases/py-sqlite3.


4) few more python packages are not building but i suspect problem is the same. Looks like C extensions dont build at all.
>How-To-Repeat:
update lang/python27 to latest 2.7.1 and try to build some python package.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011291252.oATCqUpm025253>