For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > August 2005 > Problem compiling Tk-804.027









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem compiling Tk-804.027
lupey

2005-08-08, 5:01 pm

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:
[color=darkred]
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[color=darkred]


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

Slaven Rezic

2005-08-08, 10:00 pm

"lupey" <lupey@pitt.edu> 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:
>
> 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
>
>
> 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 <at> rezic <dot> de

Lost in your Tk widget tree? Try
http://user.cs.tu-berlin.de/~eserte.../Tk-WidgetDump/
Sisyphus

2005-08-14, 9:59 pm


"lupey" <lupey@pitt.edu>

> 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






lupey

2005-08-15, 8:59 am

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...3545b83a8652a7c).

Has anyone solved this yet?

Thank you,

Paul

Sisyphus

2005-08-15, 10:00 pm


"lupey" <lupey@pitt.edu> 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..._frm/thread/187
071ada3e25808/83545b83a8652a7c?q=tk+cygwin&rnum=3&hl=en#83545b83a8652a7c).
>
> 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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com