[Python-bugs-list] [ python-Bugs-440178 ] Build not finding libtk on Solaris 2.6
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 10 Jul 2001 12:50:50 -0700
Bugs item #440178, was opened at 2001-07-10 12:50
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=440178&group_id=5470
Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Build not finding libtk on Solaris 2.6
Initial Comment:
Using gcc 2.95.3 for Solaris 2.6 I was able to build a version
of Python 2.1 without additional modules apparently without
problem albeit with a fair number of compiler warnings .
But when I tried to rebuild it with Tk after doing a
make clobber, the library build could not find libtk.
I downloaded version 8.3 of tcl and Tk from the sunfreeware
site; the pkgadd loaded them into /usr/local/lib.
libtk8.3.s0
libtcl8.3.so
_tkinter and tkappinit apparently compiled OK but the
library build failed (also with a copy of libtk in the local
directory (/opt2/GNU/Python2.1) where I had unpacked
Python2.1 .
The edited portion of Setup was as follows :
# *** 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
An edited portion of the make output follows :
gcc -g -O2 -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:45:
/usr/openwin/include/X11/Xlib.h:149: warning: function declaration isn't a prototype
(several more such)
/usr/openwin/include/X11/Xlib.h:2063: warning: type defaults to `int' in declaration of
`XSetTransientForHint'
(Many more such)
/usr/openwin/include/X11/Xlib.h:4162: warning: type defaults to `int' in declaration of
`XWindowEvent'
gcc -g -O2 -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
(ditto)
/usr/openwin/include/X11/Xlib.h:2063: warning: type defaults to `int' in declaration of
`XSetTransientForHint'
(ditto)
/usr/openwin/include/X11/Xlib.h:4162: warning: type defaults to `int' in declaration of
`XWindowEvent'
if test -f buildno; then \
expr `cat buildno` + 1 >buildno1; \
mv -f buildno1 buildno; \
else echo 1 >buildno; fi
gcc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -DBUILD=`cat buildno`
-o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
rm -f libpython2.1.a
ar cr libpython2.1.a Modules/getbuildinfo.o
ar cr libpython2.1.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.1.a Objects/abstract.o Objects/bufferobject.o Objects/cellobject.o
Objects/classobject.o Objects/cobject.o Objects/complexobject.o Objects/fileobject.o
Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.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/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o
Objects/unicodectype.o
ar cr libpython2.1.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/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.1.a Modules/config.o Modules/getpath.o Modules/main.o
ar cr libpython2.1.a Modules/gcmodule.o Modules/threadmodule.o Modules/signalmodule.o
Modules/posixmodule.o Modules/_sre.o Modules/_tkinter.o Modules/tkappinit.o
: libpython2.1.a
gcc -o python \
Modules/python.o \
libpython2.1.a -lpthread -lsocket -lnsl -ldl -lthread -L/usr/local/lib -ltk8.3 -ltcl8.3
-L/usr/openwin/lib -lX11 -lm
PYTHONPATH= ./python ./setup.py build
ld.so.1: ./python: fatal: libtk8.3.so: open failed: No such file or directory
*** Error code 137
make: Fatal error: Command failed for target `sharedmods'
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=440178&group_id=5470