Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Alright, I've been doing some sleuthing and here is what I deduced so far. When I run make Tk, a file regarding the TK make process gets created in my c:\strawberry\cpan\build directory. After digging through this newly created directory, I found about 6 files that use an #include tchar.h command if CYGWIN is not defined (which makes sense for me because I am not using Cygwin). I haven't bothered scouring for an #include stdio.h file but I am guessing its probably a similar case.

Anyways, during the make process, I am hanging on this command:

gcc -c -I.. -I../pTk/mTk/xlib -I. -Ibitmaps -I../pTk/mTk/xlib -s -O2 + -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY +S -fno-strict-aliasing -DPERL_MSVCRT_READFIX -DPERLDLL -s -O2 -DVERSION=\"804.028\" -DXS_VERSION=\"804.028\" "-IC +:\strawberry\perl\lib\CORE" -Wall -Wno-implicit-int -Wno-comment -W +no-unused -D__USE_FIXED_PROTOTYPES__ ClientWin.c

Doing some digging shows that this is a call to the gnu c compiler (though I didn't figure out what all the switches are). When called, this command throws this error

In file included from ..\pTk\mTk\xlib\../../../pTk/Lang.h:23, from ..\pTk\mTk\xlib\../../../pTk/tkIntXlibDecls.h:26 +, from ..\pTk\mTk\xlib\X11/Xlib.h:1206, from ClientWin.c:30: ..\pTk\mTk\xlib\../../../pTk/tcl.h:157: stdio.h: No such file or direc +tory In file included from ..\pTk\mTk\xlib\../../../pTk/tcl.h:2376, from ..\pTk\mTk\xlib\../../../pTk/Lang.h:23, from ..\pTk\mTk\xlib\../../../pTk/tkIntXlibDecls.h:26 +, from ..\pTk\mTk\xlib\X11/Xlib.h:1206, from ClientWin.c:30: ..\pTk\mTk\xlib\../../../pTk/tclPlatDecls.h:21: tchar.h: No such file +or directory dmake: Error code 129, while making 'ClientWin.o' dmake.EXE: Error code 255, while making 'pTk\libpTk.a' SREZIC/Tk-804.028.tar.gz C:\strawberry\c\bin\dmake.EXE -- NOT OK Failed during this command: SREZIC/Tk-804.028.tar.gz : make NO

..which seems to show various infiles getting included, but tchar.h and stdio.h not loading correctly for some reason. This seems strange to me because I do, indeed, have both tchar.h and stdio.h in the following directory:


so the only conclusions I can come to are:

1) there is something wrong with my c compiler (which may very well be an issue because I never explicitly downloaded a c compiler, though I have installed CPAN modules before which makes me think that I do, indeed, have the Gnu c compiler functioning).

2) those two files tchar.h and stdio.h, are somehow corrupt.

3) there is a command somewhere looking for those two files at one particular path that is different from the path in which they reside.

4) I have completely misunderstood there errors being thrown at me and need to look for a different problem.

So, is there anyone else out there willing to help me try to figure out how to get Tk installed and running correctly?

Thanks to everyone so far for their help. I feel I am getting close.


In reply to Re: Tk Package Fails to Make by BJ_Covert_Action
in thread SOLVED (mostly): Tk Package Fails to Make by BJ_Covert_Action

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (4)
    As of 2021-01-26 06:56 GMT
    Find Nodes?
      Voting Booth?