Problem compiling Tk-804.027
Problem compiling Tk-804.027
am 08.08.2005 20:40:27 von lupey
Hello,
I'm trying to install Tk-804.027 on Cygwin on a Windows 2000 machine.
'make' fails at this line with the following error:
>>SNIP
gcc -c -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV
-fno-strict-aliasing
-pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"804.027\"
-DXS_VERSION=\"804.027\" "-I/usr/lib/perl5/5.8/cygwin/CORE"
-D__WIN32__
-D_WIN32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused
-D__USE_FIXED_PROTOTYPES__ Xlib.c
In file included from ../pTk/tkWinPort.h:19,
from ../pTk/tkPort.h:28,
from Xlib.xs:7:
.../pTk/mTk/xlib/X11/Xlib.h:1206:35: ../pTk/tkIntXlibDecls.h: No such
file
or directory
>>SNIP
Here are the locations of the tkIntXlibDecls.h file in my Tk-804.027
directory:
$ find -name tkIntXlibDecls.h
../blib/arch/Tk/pTk/tkIntXlibDecls.h
../pTk/mTk/generic/tkIntXlibDecls.h
../pTk/tkIntXlibDecls.h
What is going on here?
Thank you,
Paul
Paul Cantalupo
Research Specialist/Systems Programmer
559 Crawford Hall
Department of Biological Sciences
University of Pittsburgh
Pittsburgh, PA 15260
Work: 412-624-4687
Fax: 412-624-4759
Re: Problem compiling Tk-804.027
am 08.08.2005 23:01:10 von Slaven Rezic
"lupey" writes:
> Hello,
>
> I'm trying to install Tk-804.027 on Cygwin on a Windows 2000 machine.
> 'make' fails at this line with the following error:
>
> >>SNIP
> gcc -c -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV
> -fno-strict-aliasing
> -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"804.027\"
> -DXS_VERSION=\"804.027\" "-I/usr/lib/perl5/5.8/cygwin/CORE"
> -D__WIN32__
> -D_WIN32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused
> -D__USE_FIXED_PROTOTYPES__ Xlib.c
> In file included from ../pTk/tkWinPort.h:19,
> from ../pTk/tkPort.h:28,
> from Xlib.xs:7:
> ../pTk/mTk/xlib/X11/Xlib.h:1206:35: ../pTk/tkIntXlibDecls.h: No such
> file
> or directory
> >>SNIP
>
>
> Here are the locations of the tkIntXlibDecls.h file in my Tk-804.027
> directory:
>
> $ find -name tkIntXlibDecls.h
> ./blib/arch/Tk/pTk/tkIntXlibDecls.h
> ./pTk/mTk/generic/tkIntXlibDecls.h
> ./pTk/tkIntXlibDecls.h
>
> What is going on here?
>
I remember that there's some problem with wrongly used or defined
macros (WINDOWS? __CYGWIN__?). Unfortunately, other than using 800.025
I don't know any solution.
Regards,
Slaven
--
Slaven Rezic - slaven rezic de
Lost in your Tk widget tree? Try
http://user.cs.tu-berlin.de/~eserte/src/perl/Tk-WidgetDump/
Re: Problem compiling Tk-804.027
am 15.08.2005 04:38:33 von Sisyphus
"lupey"
> In file included from ../pTk/tkWinPort.h:19,
> from ../pTk/tkPort.h:28,
> from Xlib.xs:7:
> ../pTk/mTk/xlib/X11/Xlib.h:1206:35: ../pTk/tkIntXlibDecls.h: No such
> file
I found the same problem on Win32.
To fix it, in Xlib.h I changed:
#include "../pTk/tkIntXlibDecls.h"
to:
#include "../../../pTk/tkIntXlibDecls.h"
A little later on, I had another problem. PNG/libpng/libpng.a does not get
built. I don't know why that happens. The makefile runs the following
command, which should do the job:
ar rcs libpng.a png.o pngerror.o pngget.o pngmem.o pngpread.o pngread.o
pngrio.o pngrtran.o pngrutil.o pngset.o pngtrans.o pngwio.o pngwrite.o
pngwtran.o pngwutil.o
When that failure occurs, the 'make' process aborts. I then went into the
PNG/libpng folder and ran that same 'ar ....' command - which built
libpng.a. Then back to the top level Tk-804.027 folder and run 'make' again.
The process then ran to a successful conclusion, and 'make test' passed all
tests. (I'm using 'dmake' instead of 'make', but I don't think there's any
relevance in that.)
Hth.
Cheers,
Rob
Re: Problem compiling Tk-804.027
am 15.08.2005 15:54:01 von lupey
Sisyphus,
I tried what you suggested but I didn't get the libpng.a error. I got
an error as was seen by Guido
(http://groups-beta.google.com/group/comp.lang.perl.tk/brows e_frm/thread/187071ada3e25808/83545b83a8652a7c?q=tk+cygwin&r num=3&hl=en#83545b83a8652a7c).
Has anyone solved this yet?
Thank you,
Paul
Re: Problem compiling Tk-804.027
am 16.08.2005 01:56:36 von Sisyphus
"lupey" wrote in message
news:1124114041.297087.163240@g14g2000cwa.googlegroups.com.. .
> Sisyphus,
> I tried what you suggested but I didn't get the libpng.a error. I got
> an error as was seen by Guido
>
(http://groups-beta.google.com/group/comp.lang.perl.tk/brows e_frm/thread/187
071ada3e25808/83545b83a8652a7c?q=tk+cygwin&rnum=3&hl=en#8354 5b83a8652a7c).
>
> Has anyone solved this yet?
>
Looks to me that Guido didn't get it quite right. (S)he has written:
.../../../../pTk/tkIntXlibDeclsÂ.h
For me, it needed to be:
.../../../pTk/tkIntXlibDeclsÂ.h
I don't think that has any bearing on the problem, however - probably just a
typo in Guido's post.
In short, I can't reproduce your error - and therefore can't fix it. I've
looked at the Xlib.xs errors reported in Guido's post and can't even relate
them to what appears in Xlib.xs.
eg, Guido's post reports the following error:
Xlib.xs:378: error: `XlibVtab' undeclared (first use in this function)
I cannot find the string XlibVtab anywhere within Xlib.xs. I also can't find
a function named boot_Tk_Xlib or the string tabSize. Does this file get
rewritten under Cygwin ??
I'm compiling with gcc-3.4.4 (albeit a native Win32 port of it) so it's
probably not a gcc-related problem, though there's no guarantee of that.
Once again, I'm glad I don't use Cygwin :-)
Cheers,
Rob