Re: Issues while building pyfsevents in python 3.1

2010-04-30 Thread Aahz
In article mailman.2389.1272569408.23598.python-l...@python.org,
Terry Reedy  tjre...@udel.edu wrote:
On 4/29/2010 2:30 AM, mathan kumar wrote:

 I m trying port pyfsevents coded in python2.6 to python3.1.

Specifying system and compiler/version might help responders.

Also, pyobjc-dev is probably a better place for getting help (original
article is not in my news spool).
-- 
Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/

It is easier to optimize correct code than to correct optimized code.
--Bill Harlan
-- 
http://mail.python.org/mailman/listinfo/python-list


Issues while building pyfsevents in python 3.1

2010-04-29 Thread mathan kumar
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

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Issues while building pyfsevents in python 3.1

2010-04-29 Thread Terry Reedy

On 4/29/2010 2:30 AM, mathan kumar wrote:


I m trying port pyfsevents coded in python2.6 to python3.1.


Specifying system and compiler/version might help responders.

--
http://mail.python.org/mailman/listinfo/python-list