don't build py-jsonlib with python 2.4 creating temp.freebsd-8.1-RELEASE-i386-2.4 cc -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/local/include/python2.4 -c _jsonlib.c -o temp.freebsd-8.1-RELEASE-i386-2.4/_jsonlib.o _jsonlib.c:1428: error: expected declaration specifiers or '...' before 'Py_ssize_t' _jsonlib.c: In function 'serializer_validate_string': _jsonlib.c:1430: error: 'Py_ssize_t' undeclared (first use in this function) _jsonlib.c:1430: error: (Each undeclared identifier is reported only once _jsonlib.c:1430: error: for each function it appears in.) _jsonlib.c:1430: error: expected ';' before 'ii' _jsonlib.c:1433: error: 'ii' undeclared (first use in this function) _jsonlib.c:1433: error: 'char_count' undeclared (first use in this function) _jsonlib.c: In function 'serialize_unicode': _jsonlib.c:1460: error: 'Py_ssize_t' undeclared (first use in this function) _jsonlib.c:1460: error: expected ';' before 'char_count' _jsonlib.c:1467: error: 'char_count' undeclared (first use in this function) _jsonlib.c:1468: error: 'ii' undeclared (first use in this function) _jsonlib.c:1491: error: too many arguments to function 'serializer_validate_string' _jsonlib.c: In function 'serialize_dict': _jsonlib.c:1580: error: 'Py_ssize_t' undeclared (first use in this function) _jsonlib.c:1580: error: expected ';' before 'dict_pos' _jsonlib.c:1593: error: 'dict_pos' undeclared (first use in this function) _jsonlib.c: In function 'serializer_append_unicode': _jsonlib.c:1994: error: 'Py_ssize_t' undeclared (first use in this function) _jsonlib.c:1994: error: expected ';' before 'ii' _jsonlib.c:1999: error: 'ii' undeclared (first use in this function) _jsonlib.c:1999: error: 'len_text' undeclared (first use in this function) error: command 'cc' failed with exit status 1 *** Error code 1 Stop in /usr/ports/devel/py-jsonlib. *** Error code 1 Fix: http://www.python.org/dev/peps/pep-0353/ #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; #define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MIN INT_MIN #endif add in _jsonlib.c patch in attache Patch attached with submission follows: How-To-Repeat: echo "PYTHON_VERSION=2.4" >> /etc/make.conf make -C /usr/ports/devel/py-jsonlib install clean
Responsible Changed From-To: freebsd-ports-bugs->wen Fix synopsis and assign.
wen 2010-10-29 08:38:33 UTC FreeBSD ports repository Modified files: devel/py-jsonlib Makefile Added files: devel/py-jsonlib/files patch-_jsonlib.c Log: - Fix build with python-2.4 PR: ports/151597 Submitted by: "Ilya A. Arhipov" <pa36ouHu4er@yandex.ru> Revision Changes Path 1.9 +1 -0 ports/devel/py-jsonlib/Makefile 1.1 +14 -0 ports/devel/py-jsonlib/files/patch-_jsonlib.c (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!