i get the following error when trying to build mmpython. i
am using this for freevo on osx.
running build_ext
building 'mmpython/disc/cdrom' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -
mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3
-Wall -Wstrict-prototypes -I/Library/Frameworks/
Python.framework/Versions/2.3/include/python2.3 -c disc/
cdrommodule.c -o build/temp.darwin-6.8-Power_Macintosh-
2.3/disc/cdrommodule.o
disc/cdrommodule.c: In function `cdrom_toc_header':
disc/cdrommodule.c:114: storage size of `hdr' isn't known
disc/cdrommodule.c:123: `CDROMREADTOCHDR' undeclared
(first use in this function)
disc/cdrommodule.c:123: (Each undeclared identifier is
reported only once
disc/cdrommodule.c:123: for each function it appears in.)
disc/cdrommodule.c:114: warning: unused variable `hdr'
disc/cdrommodule.c: In function `cdrom_toc_entry':
disc/cdrommodule.c:134: storage size of `entry' isn't known
disc/cdrommodule.c:149: `CDROM_MSF' undeclared (first
use in this function)
disc/cdrommodule.c:156: `CDROMREADTOCENTRY'
undeclared (first use in this function)
disc/cdrommodule.c:134: warning: unused variable `entry'
disc/cdrommodule.c: In function `cdrom_leadout':
disc/cdrommodule.c:168: storage size of `entry' isn't known
disc/cdrommodule.c:181: `CDROM_LEADOUT' undeclared
(first use in this function)
disc/cdrommodule.c:182: `CDROM_MSF' undeclared (first
use in this function)
disc/cdrommodule.c:189: `CDROMREADTOCENTRY'
undeclared (first use in this function)
disc/cdrommodule.c:168: warning: unused variable `entry'
error: command 'gcc' failed with exit status 1
Logged In: YES
user_id=1195192
To disable building the CDROM extension (which apparently is not ported
to MacOS currently), in setup.py change:
extensions = = [ Extension('mmpython/disc/cdrom', ['disc/
cdrommodule.c']) ]
to extensions = []
and additionally, change
if child.fromchild.readline().find('cannot find') == -1:
to
if child.fromchild.readline().find('can\'t locate') == -1:
This should compile on MacOS