Python-2.2.1, Solaris7, make test fails...
Hugh Sasse Staff Elec Eng
hgs at dmu.ac.uk
Fri Apr 19 08:41:16 EDT 2002
On 19 Apr 2002, Martin v. Loewis wrote:
> Hugh Sasse Staff Elec Eng <hgs at dmu.ac.uk> writes:
>
> > test test_largefile crashed -- exceptions.IOError: [Errno 27] File too large
> >
> > How much space does it want? I don't know this one anyway.
>
> It creates a file with 2500000000L. Depending on the file system you
> are using, that may or may not be possible (it tries to create it with
> a hole in it, so it normally takes only little disk space).
OK, I won't worry about that for now.
>
> > test test_nis skipped -- No NIS master found for any map
> >
> > I didn't expect that. We use nisplus....
>
> You may want to run the test verbosely:
>
> ./python Lib/test/regrtest.py -v test_nis
I'll come back to this one...
>
> > test test_socket_ssl skipped -- Use of the `network' resource not enabled
> >
> > What network resouce?
>
> You need to explicitly give regrtest.py permission to use certain
> resources; see 'regrtest.py -h' for details. In the case, the default
> 'make test' doesn't run the test to avoid triggering a dial-up
> connection.
Thanks, I'll come back to this one too.
>
> > neelix hgs 11 %> ./python
> > Python 2.2.1 (#2, Apr 18 2002, 18:23:04) [C] on sunos5
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import tkine ter
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > ImportError: No module named tkinter
>
> That should have been either Tkinter, or _tkinter - not tkinter.
I remembered: I forgot to uncomment all the places where the Tk stuff
lives.
# *** Always uncomment this (leave the leading underscore in!):
_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
-L/usr/local/lib \
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
-I/usr/local/include \
# *** Uncomment and edit to reflect where your X11 header files are:
# -I/usr/X11R6/include \
# *** Or uncomment this for Solaris:
-I/usr/openwin/include \
# *** Uncomment and edit for Tix extension only:
# -DWITH_TIX -ltix8.1.8.2 \
# *** Uncomment and edit for BLT extension only:
# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
# *** Uncomment and edit for PIL (TkImaging) extension only:
# (See http://www.pythonware.com/products/pil/ for more info)
# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
# *** Uncomment and edit for TOGL extension only:
# -DWITH_TOGL togl.c \
# *** Uncomment and edit to reflect your Tcl/Tk versions:
-ltk8.3 -ltcl8.3 \
# *** Uncomment and edit to reflect where your X11 libraries are:
# -L/usr/X11R6/lib \
# *** Or uncomment this for Solaris:
-L/usr/openwin/lib \
# *** Uncomment these for TOGL extension only:
# -lGL -lGLU -lXext -lXmu \
# *** Uncomment for AIX:
# -lld \
# *** Always uncomment this; X11 libraries to link with:
-lX11
Now the build gives:
Script started on Fri Apr 19 11:57:36 2002
neelix hgs 11 %> gmake
gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -o Modules/python.o Modules/python.c
[...]
gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -DPYTHONPATH='":plat-sunos5:lib-tk"' \
-DPREFIX='"/usr/local"' \
-DEXEC_PREFIX='"/usr/local"' \
-DVERSION='"2.2"' \
-DVPATH='""' \
-o Modules/getpath.o ./Modules/getpath.c
gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -o Modules/main.o Modules/main.c
[...]
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -DWITH_APPINIT -I/usr/local/include -I/usr/openwin/include -c ./Modules/_tkinter.c -o Modules/_tkinter.o
In file included from /usr/local/include/tk.h:83,
from ./Modules/_tkinter.c:49:
/usr/openwin/include/X11/Xlib.h:149: warning: function declaration isn't a prototype
[more similar]
/usr/openwin/include/X11/Xlib.h:2063: warning: type defaults to `int' in declaration of `XSetTransientForHint'
[more similar]
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -DWITH_APPINIT -I/usr/local/include -I/usr/openwin/include -c ./Modules/tkappinit.c -o Modules/tkappinit.o
In file included from /usr/local/include/tk.h:83,
from ./Modules/tkappinit.c:16:
/usr/openwin/include/X11/Xlib.h:149: warning: function declaration isn't a prototype
[more similar]
/usr/openwin/include/X11/Xlib.h:2063: warning: type defaults to `int' in declaration of `XSetTransientForHint'
[more similar]
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -c ./Modules/xxsubtype.c -o Modules/xxsubtype.o
if test -f buildno; then \
expr `cat buildno` + 1 >buildno1; \
mv -f buildno1 buildno; \
else echo 1 >buildno; fi
gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -DBUILD=`cat buildno` -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
rm -f libpython2.2.a
ar cr libpython2.2.a Modules/getbuildinfo.o
ar cr libpython2.2.a Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/tokenizer.o Parser/bitset.o Parser/metagrammar.o Parser/myreadline.o
ar cr libpython2.2.a Objects/abstract.o Objects/bufferobject.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/complexobject.o Objects/descrobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/rangeobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o
ar cr libpython2.2.a Python/bltinmodule.o Python/exceptions.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getmtime.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/pyfpe.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/dynload_shlib.o Python/thread.o Python/thread.o
ar cr libpython2.2.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o
ar cr libpython2.2.a Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/_sre.o Modules/newmodule.o Modules/symtablemodule.o Modules/_tkinter.o Modules/tkappinit.o Modules/xxsubtype.o
ranlib libpython2.2.a
gcc -Xlinker --export-dynamic -o python \
Modules/python.o \
libpython2.2.a -lsocket -lnsl -ldl -lpthread -lthread -L/usr/local/lib -ltk8.3 -ltcl8.3 -L/usr/openwin/lib -lX11 -lm
case $MAKEFLAGS in \
*-s*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
ld.so.1: ./python: fatal: libtk8.3.so: open failed: No such file or directory
Killed
gmake: *** [sharedmods] Error 137
neelix hgs 12 %> exit
neelix hgs 13 %>
script done on Fri Apr 19 12:08:12 2002
But
find /usr/local/lib -name "libt[ck]*" -print
gives
/usr/local/lib/libtcl8.2.so
/usr/local/lib/libtclstub8.2.a
/usr/local/lib/libtk8.2.so
/usr/local/lib/libtkstub8.2.a
/usr/local/lib/libtk8.3.so
/usr/local/lib/libtcl8.3.so
/usr/local/lib/libtclstub8.3.a
/usr/local/lib/libtkstub8.3.a
>
> > gcc -v -shared build/temp.solaris-2.7-sun4u-2.2/_tkinter.o build/temp.solaris-2.7-sun4u-2.2/tkappinit.o -L/usr/openwin/lib -L/usr/local/lib -ltk8.3 -ltcl8.3 -lX11 -o build/lib.solaris-2.7-sun4u-2.2/_tkinter.so
[...]
>
> It seems that you have not put grabbed enough commands: there
> definitely *was* a command to build both _tkinter.o and tkappinit.o.
> When setup.py decides that building the module failed, it removes not
> only the resulting .so, but also all involved object files.
I think there should be enough data there now.
>
> Regards,
> Martin
>
>
Hugh
More information about the Python-list
mailing list