QMTest on Mac OS X
Steve Byan
smb at world.std.com
Thu Oct 9 16:05:33 UTC 2003
I'm trying out QMTest 2.0.3. I attempted to build and install it on a
Powerbook G4 running Mac OS X 10.2.6. I'm not sure of the OS X
developer tools release on this machine; gcc is at version 3.1. When I
attempt a "make check", the test fails:
multivac% make check
cd qm && PYTHONPATH=.:./zope-dtml:./zope-dtml/ExtensionClass python -O
./setup.py -q build
warning: build_py: package init file './test/classes/__init__.py' not
found (or not a regular file)
warning: build_py: package init file './test/classes/__init__.py' not
found (or not a regular file)
cd zope-dtml/DocumentTemplate &&
PYTHONPATH=.:./zope-dtml:./zope-dtml/ExtensionClass python -O
./setup.py -q build
cd zope-dtml/ExtensionClass &&
PYTHONPATH=.:./zope-dtml:./zope-dtml/ExtensionClass python -O
./setup.py -q build
qm/test/qmtest -D tests run \
-c qmtest_path=qm/test/qmtest
Traceback (most recent call last):
File
"/Users/smb/work/projects/scsi_reservations/doc/test/QMTest/qm-2.0.3/
qm/test/qmtest.py", line 78, in ?
exit_code = command.Execute()
File
"/Users/smb/work/projects/scsi_reservations/doc/test/QMTest/qm-2.0.3/
qm/test/cmdline.py", line 569, in Execute
return method()
File
"/Users/smb/work/projects/scsi_reservations/doc/test/QMTest/qm-2.0.3/
qm/test/cmdline.py", line 1137, in __ExecuteRun
database = self.GetDatabase()
File
"/Users/smb/work/projects/scsi_reservations/doc/test/QMTest/qm-2.0.3/
qm/test/cmdline.py", line 576, in GetDatabase
self.__database = database.load_database(self.__db_path)
File
"/Users/smb/work/projects/scsi_reservations/doc/test/QMTest/qm-2.0.3/
qm/test/database.py", line 1152, in load_database
document = qm.xmlutil.load_xml_file(config_path)
File
"/Users/smb/work/projects/scsi_reservations/doc/test/QMTest/qm-2.0.3/
qm/xmlutil.py", line 41, in load_xml_file
return load_xml(file)
File
"/Users/smb/work/projects/scsi_reservations/doc/test/QMTest/qm-2.0.3/
qm/xmlutil.py", line 50, in load_xml
document = xml.dom.minidom.parse(file)
File
"/BinaryCache/python/python-3.root~377/usr/lib/python2.2/xml/dom/
minidom.py", line 960, in parse
File
"/BinaryCache/python/python-3.root~377/usr/lib/python2.2/xml/dom/
minidom.py", line 951, in _doparse
File
"/BinaryCache/python/python-3.root~377/usr/lib/python2.2/xml/dom/
pulldom.py", line 328, in parse
File
"/BinaryCache/python/python-3.root~377/usr/lib/python2.2/xml/sax/
__init__.py", line 93, in make_parser
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
make: *** [check-serial] Error 1
Here's the output of ./configure:
multivac% ./configure
creating cache ./config.cache
checking for python2... python
checking Python version... 2.2
checking Python prefix... /usr
checking Python platform... darwin-6.6-Power Macintosh
checking for happydoc... no
checking for jade... no
checking for tidy... no
checking DocBook stylesheets... no
checking for docbook DTD... /usr/lib/sgml
configure: warning: Documentation will not be built.
updating cache ./config.cache
creating ./config.status
creating GNUmakefile
creating qm.spec
creating qm/setup_path.py
When running make, I get a lot of warnings:
multivac% make
cd qm && PYTHONPATH=.:./zope-dtml:./zope-dtml/ExtensionClass python -O
./setup.py -q build
warning: build_py: package init file './test/classes/__init__.py' not
found (or not a regular file)
warning: build_py: package init file './test/classes/__init__.py' not
found (or not a regular file)
cd zope-dtml/DocumentTemplate &&
PYTHONPATH=.:./zope-dtml:./zope-dtml/ExtensionClass python -O
./setup.py -q build
cd zope-dtml/ExtensionClass &&
PYTHONPATH=.:./zope-dtml:./zope-dtml/ExtensionClass python -O
./setup.py -q build
ExtensionClass.c:123: warning: function declaration isn't a prototype
ExtensionClass.c: In function `CallMethodO':
ExtensionClass.c:187: warning: suggest explicit braces to avoid
ambiguous `else'
ExtensionClass.c: In function `CMethod_getattro':
ExtensionClass.c:610: warning: suggest explicit braces to avoid
ambiguous `else'
ExtensionClass.c: In function `PMethod_getattro':
ExtensionClass.c:924: warning: suggest explicit braces to avoid
ambiguous `else'
ExtensionClass.c: In function `delsetattr_by_name':
ExtensionClass.c:1083: warning: unused variable `v'
ExtensionClass.c: In function `delsetattro_by_name':
ExtensionClass.c:1113: warning: unused variable `v'
ExtensionClass.c: In function `CCL_dealloc':
ExtensionClass.c:1664: warning: suggest explicit braces to avoid
ambiguous `else'
ExtensionClass.c: In function `subclass_dealloc':
ExtensionClass.c:3069: warning: suggest explicit braces to avoid
ambiguous `else'
ExtensionClass.c: In function `subclass__init__':
ExtensionClass.c:3343: warning: unused variable `r'
ExtensionClass.c: At top level:
ExtensionClass.c:3529: warning: function declaration isn't a prototype
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power Macintosh-2.2/ExtensionClass.o
cputype (18, architecture ppc) does not match cputype (7) for specified
-arch flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
Acquisition.c:74: warning: function declaration isn't a prototype
Acquisition.c: In function `CallMethodO':
Acquisition.c:121: warning: suggest explicit braces to avoid ambiguous
`else'
Acquisition.c:125: warning: suggest explicit braces to avoid ambiguous
`else'
Acquisition.c: In function `Wrapper_special':
Acquisition.c:301: warning: suggest parentheses around assignment used
as truth value
Acquisition.c: In function `Wrapper_findattr':
Acquisition.c:401: warning: suggest parentheses around assignment used
as truth value
Acquisition.c:437: warning: suggest parentheses around assignment used
as truth value
Acquisition.c: In function `Wrapper_acquire':
Acquisition.c:528: warning: suggest explicit braces to avoid ambiguous
`else'
Acquisition.c: In function `Xaq_getattro':
Acquisition.c:569: warning: unused variable `r'
Acquisition.c:569: warning: unused variable `v'
Acquisition.c:569: warning: unused variable `tb'
Acquisition.c: At top level:
Acquisition.c:1426: warning: function declaration isn't a prototype
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power Macintosh-2.2/Acquisition.o
cputype (18, architecture ppc) does not match cputype (7) for specified
-arch flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
MethodObject.c:68: warning: function declaration isn't a prototype
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power Macintosh-2.2/MethodObject.o
cputype (18, architecture ppc) does not match cputype (7) for specified
-arch flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
MultiMapping.c:235: warning: function declaration isn't a prototype
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power Macintosh-2.2/MultiMapping.o
cputype (18, architecture ppc) does not match cputype (7) for specified
-arch flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
ThreadLock.c:297: warning: function declaration isn't a prototype
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power Macintosh-2.2/ThreadLock.o
cputype (18, architecture ppc) does not match cputype (7) for specified
-arch flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
Missing.c:305: warning: function declaration isn't a prototype
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power Macintosh-2.2/Missing.o cputype
(18, architecture ppc) does not match cputype (7) for specified -arch
flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
Sync.c:117: warning: function declaration isn't a prototype
Sync.c:55: warning: `ErrorObject' defined but not used
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power Macintosh-2.2/Sync.o cputype
(18, architecture ppc) does not match cputype (7) for specified -arch
flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
Record.c: In function `Record___setstate__':
Record.c:154: warning: suggest explicit braces to avoid ambiguous `else'
Record.c: In function `Record_getattr':
Record.c:265: warning: suggest parentheses around assignment used as
truth value
Record.c:269: warning: suggest parentheses around assignment used as
truth value
Record.c: In function `Record_setattr':
Record.c:299: warning: suggest parentheses around assignment used as
truth value
Record.c: In function `Record_compare':
Record.c:353: warning: suggest parentheses around assignment used as
truth value
Record.c: In function `Record_subscript':
Record.c:477: warning: suggest parentheses around assignment used as
truth value
Record.c:496: warning: suggest parentheses around assignment used as
truth value
Record.c: In function `Record_ass_sub':
Record.c:517: warning: suggest parentheses around assignment used as
truth value
Record.c: At top level:
Record.c:593: warning: function declaration isn't a prototype
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power Macintosh-2.2/Record.o cputype
(18, architecture ppc) does not match cputype (7) for specified -arch
flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
ComputedAttribute.c:146: warning: function declaration isn't a prototype
ld: for architecture i386
ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning build/temp.darwin-6.6-Power
Macintosh-2.2/ComputedAttribute.o cputype (18, architecture ppc) does
not match cputype (7) for specified -arch flag: i386 (file not loaded)
ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (can't load from it)
ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc)
does not match cputype (7) for specified -arch flag: i386 (file not
loaded)
rm -rf qm/test/qmtest
cp qm/qm.sh qm/test/qmtest
chmod a-w qm/test/qmtest
chmod a+x qm/test/qmtest
cp qm/test/share/dtds/class-directory.dtd share/xml/class-directory.dtd
cp qm/test/share/dtds/result.dtd share/xml/result.dtd
cp qm/test/share/dtds/suite.dtd share/xml/suite.dtd
rm -f share/xml/CATALOG
echo "-- This file is automatically generated. Do not edit. --" \
>> share/xml/CATALOG
for x in share/xml/fields.mod share/xml/class-directory.dtd
share/xml/result.dtd share/xml/suite.dtd; do \
name=`expr "\`grep NAME $x\`" : '<!-- NAME: \(.*\) -->'`; \
echo 'PUBLIC "-//Software Carpentry//'$name'//EN" \
"'`basename $x`'"' \
>> share/xml/CATALOG; \
done
Regards,
-Steve
--------
Steve Byan <smb at egenera.com>
Software Architect
Egenera, Inc.
165 Forest Street
Marlboro, MA 01752
(508) 858-3125
More information about the qmtest
mailing list