Issues while building pyfsevents in python 3.1

mathan kumar switch2mathan at gmail.com
Thu Apr 29 08:30:50 CEST 2010


I m trying port pyfsevents coded in python2.6 to python3.1.
But i m getting following errors while building that though i havent changed
anything in these lines.

Any idea why?

"
pyfsevents.c:22: error: expected specifier-qualifier-list before
‘CFFileDescriptorRef’
pyfsevents.c:30: error: expected specifier-qualifier-list before
‘FSEventStreamRef’
pyfsevents.c:60: error: expected ‘)’ before ‘streamRef’
pyfsevents.c:101: error: expected ‘)’ before ‘fdref’
pyfsevents.c:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘my_FSEventStreamCreate’
pyfsevents.c: In function ‘pyfsevents_registerpath’:
pyfsevents.c:183: error: ‘PyStringObject’ undeclared (first use in this
function)
pyfsevents.c:183: error: (Each undeclared identifier is reported only once
pyfsevents.c:183: error: for each function it appears in.)
pyfsevents.c:183: error: ‘path’ undeclared (first use in this function)
pyfsevents.c:190: warning: division by zero
pyfsevents.c:194: error: ‘FSEventInfo’ has no member named ‘callback’
pyfsevents.c:196: error: ‘FSEventStreamRef’ undeclared (first use in this
function)
pyfsevents.c:196: error: expected ‘;’ before ‘stream’
pyfsevents.c:197: error: ‘stream’ undeclared (first use in this function)
pyfsevents.c:211: error: ‘FSEventInfo’ has no member named ‘stream’
pyfsevents.c: In function ‘pyfsevents_registerfd’:
pyfsevents.c:244: error: ‘kCFFileDescriptorReadCallBack’ undeclared (first
use in this function)
pyfsevents.c:244: error: ‘kCFFileDescriptorWriteCallBack’ undeclared (first
use in this function)
pyfsevents.c:254: warning: initialization makes pointer from integer without
a cast
pyfsevents.c:266: error: ‘FDInfo’ has no member named ‘callback’
pyfsevents.c:268: error: ‘CFFileDescriptorContext’ undeclared (first use in
this function)
pyfsevents.c:268: error: expected ‘;’ before ‘context’
pyfsevents.c:269: error: ‘CFFileDescriptorRef’ undeclared (first use in this
function)
pyfsevents.c:269: error: expected ‘;’ before ‘fdref’
pyfsevents.c:272: error: ‘fdref’ undeclared (first use in this function)
pyfsevents.c:275: error: ‘CFFileDescriptorCallBack’ undeclared (first use in
this function)
pyfsevents.c:275: error: expected ‘)’ before ‘fd_callback’
pyfsevents.c:285: warning: assignment makes pointer from integer without a
cast
pyfsevents.c:292: error: ‘FDInfo’ has no member named ‘desc’
pyfsevents.c:307: error: ‘FDInfo’ has no member named ‘callback’
pyfsevents.c:308: error: ‘FDInfo’ has no member named ‘desc’
pyfsevents.c: In function ‘removesource’:
pyfsevents.c:373: error: ‘FSEventStreamRef’ undeclared (first use in this
function)
pyfsevents.c:373: error: expected ‘;’ before ‘stream’
pyfsevents.c:374: error: ‘stream’ undeclared (first use in this function)
pyfsevents.c: In function ‘pyfsevents_unregisterfd’:
pyfsevents.c:417: warning: initialization makes pointer from integer without
a cast
lipo: can't figure out the architecture type of:
/var/folders/fF/fFgga6+-E48RL+iXKLFmAE+++TI/-Tmp-//ccCNjSPw.out
error: command 'gcc' failed with exit status 1
"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100429/03136b5d/attachment.html>


More information about the Python-list mailing list