PIL on OpenBSD 3.0

Doug Satan Pants Shawhan doug at humanoid.nsacom.net
Sun Feb 10 23:48:23 EST 2002


Howdy all.

I am having some difficulty getting the Python Imaging Library to compile on OpenBSD 3.0.

My setup is as follows:

Python 2.1.1 installed from the pre-built packages
tk-8.3.3 installed from the pre-built packages
tcl-8.3.3 installed from the pre-built packages
PIL Imaging-1.1.2 from tarball

Built as per instructions in README.

The problem seems to start when finding tk.h

-------------sneep sneep-------------------------------
cc -fpic -O2 -pipe  -fPIC -I/usr/local/include/python2.1 -I/usr/local/include/python2.1 -DHAVE_CONFIG_H  -IlibImaging -I/usr/local/include -c
 ././_imagingtk.c -o ./_imagingtk.o
././_imagingtk.c:20: tk.h: No such file or directory
././_imagingtk.c:23: syntax error before `*'
././_imagingtk.c:31: syntax error before `Tcl_Interp'
././_imagingtk.c: In function `_tkinit':
././_imagingtk.c:37: `Tcl_Interp' undeclared (first use in this function)
././_imagingtk.c:37: (Each undeclared identifier is reported only once
././_imagingtk.c:37: for each function it appears in.)
././_imagingtk.c:37: `interp' undeclared (first use in this function)
././_imagingtk.c:39: syntax error before `long'
././_imagingtk.c:41: `arg' undeclared (first use in this function)
././_imagingtk.c:41: `is_interp' undeclared (first use in this function)
././_imagingtk.c:45: syntax error before `)'
././_imagingtk.c:50: `app' undeclared (first use in this function)
././_imagingtk.c: At top level:
././_imagingtk.c:55: warning: parameter names (without types) in function declaration
././_imagingtk.c:55: conflicting types for `TkImaging_Init'
././_imagingtk.c:23: previous declaration of `TkImaging_Init'
././_imagingtk.c:55: warning: data definition has no type or storage class
././_imagingtk.c:57: syntax error before `&'
*** Error code 1

Stop in /home/towering_intellect/Imaging-1.1.2 (line 324 of Makefile).
--------------sneep sneep-------------------------------

I have attempted to add the path to tk.h in _imagingtk.c to no avail.

Anyone else had any luck getting this dandy package to compile?

Thanks,

d




More information about the Python-list mailing list