[Image-SIG] Re: Compile errors ad nauseum

Fredrik Lundh fredrik at pythonware.com
Mon Jun 2 23:53:27 EDT 2003


"doug" <doug at pop.nsacom.net> wrote:
>
> That seems to have worked! Thanks Frederik!

you're welcome!

> Unfortunately I have run onto another issue:
>
> Tk/tkImaging.c: In function `TkImaging_Init':
> Tk/tkImaging.c:191: warning: passing arg 3 of `Tcl_CreateCommand' from
> incompatible pointer type
> gcc -shared  ./_imagingtk.o ./tkImaging.o  -L/usr/local/lib -ltcl8.0 -ltk8.0
> -L/usr/X11R6/lib -lX11  -o ./_imagingtk.so
> /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../../i386-slackware-linux/bin/ld:
> cannot find -ltcl8.0
> collect2: ld returned 1 exit status
> make: *** [_imagingtk.so] Error 1
>
> My Slackware 9 install has tcl8.4. What am I missing here, folks?

if you have tcl/tk 8.4, why are you linking against 8.0 ? ;-)

I cannot tell if you're using the setup.py build approach (preferred) or
the older Makefile.pre.in approach; if the former, the above means that
Python's Tkinter module was built against 8.0; if the latter, you have
to edit the Setup.in to match your local configuration:

    $ rm Setup
    $ emacs Setup.in
    (change 8.0 to 8.4, and make sure the path's are correct)
    $ make Makefile.pre.in boot
    $ make

</F>






More information about the Image-SIG mailing list