| Issue 200: | pydobc py3 branch won't build on OSX Py3.1 | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Install Python3.1 using macports on OSX Lion.
2. Get the py3 branch.
3. build
What is the expected output? What do you see instead?
Expected a full build, instead errors out.
Lots of warnings, bu I see those on py2.7 also.
/Users/rizwank/Documents/CodeZoo/pyodbc-py3/src/pyodbccompat.h:106:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif PYODBCCOMPAT_H
^
//
/Users/rizwank/Documents/CodeZoo/pyodbc-py3/src/row.cpp:344:13: error: no matching function for call to 'PySlice_GetIndicesEx'
if (PySlice_GetIndicesEx(key, row->cValues, &start, &stop, &step, &slicelength) < 0)
^~~~~~~~~~~~~~~~~~~~
/opt/local/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1/sliceobject.h:37:17: note: candidate function not viable: no known conversion from 'PyObject *'
(aka '_object *') to 'PySliceObject *' for 1st argument
PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
^
/Users/rizwank/Documents/CodeZoo/pyodbc-py3/src/row.cpp:382:5: error: cannot initialize a member subobject of type 'void *' with an lvalue of type
'PyObject *(PyObject *, Py_ssize_t, Py_ssize_t)'
Row_slice, // sq_slice
^~~~~~~~~
/Users/rizwank/Documents/CodeZoo/pyodbc-py3/src/row.cpp:401:7: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
{ "cursor_description", T_OBJECT_EX, offsetof(Row, description), READONLY, description_doc },
^
2 warnings and 2 errors generated.
error: command '/Developer/usr/bin/clang' failed with exit status 1
Aug 21, 2011
Project Member
#1
mkleehammer
Status:
Complete
|