make embedded -- no console?

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

make embedded -- no console?

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Perhaps I missed something in the recent posts about 8.5.7, but I just
compiled TCL and TK 8.5.7 from sources using "make embedded" in the
macosx folders of each distribution. I get a wish.app in the "build"
folder. It runs, but I get no console. When I run the wish.app I obtain
by the same process on my 8.5a4 sources, it starts up with the console
enabled.

What am I missing here?

Yours, Kevan

--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevin Walzer-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 9/5/09 10:15 PM, Kevan Hashemi wrote:

> Hi,
>
> Perhaps I missed something in the recent posts about 8.5.7, but I just
> compiled TCL and TK 8.5.7 from sources using "make embedded" in the
> macosx folders of each distribution. I get a wish.app in the "build"
> folder. It runs, but I get no console. When I run the wish.app I obtain
> by the same process on my 8.5a4 sources, it starts up with the console
> enabled.
>
> What am I missing here?
>
> Yours, Kevan
>
Kevan,

To get a true standalone Wish, you need to run "make
install-embedded"--instructions are here:

http://wiki.tcl.tk/12987

The console will show if you run the app bundle. Otherwise, when you run
Wish, the Terminal takes the place of the console.

Your standalone build will appear in the "embedded" folder--not the
"build" folder. It doesn't sound like you're following all the required
steps.

Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Kevin,

> To get a true standalone Wish, you need to run "make
> install-embedded"--instructions are here:
>
> http://wiki.tcl.tk/12987

These instructions say "make embedded" and then "make install-embedded".
The addition of "install-embedded" does not help me.

I think I failed to make myself clear in my first letter. I'm asking why
things are different in 8.5.7 from the way they were in 8.5a4 and in 8.4.

I can compile a stand-alone wish.app from 8.5a4 sources with the
following lines.

ver="8.5a4"
make -C tcl${ver}/macosx embedded
make -C tk${ver}/macosx embedded

My directory structure will then look like this:

8.5a4
        tcl8.5a4
        tk8.5a4
        build
                tcl
                tk
                        wish.app
                        wish8.5

If I double-click on wish.app, I get a console window and the main
graphics window. If I run wish8.5 from the terminal, I get the graphics
window and the terminal becomes the TCL console. The same lines, with
{ver} set differently, create wish.app for 8.4.11, .12, and .13.

When I apply these steps to 8.5.7, I get the same structure. The wish8.5
works fine, but wish.app does not. It will not open the console, nor can
I force it to open the console with an AppMain.tcl script.

There appears to have been a change in the build instructions since
8.5a4. What was that change, and why was it made?

Yours, Kevan


--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevin Walzer-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 9/6/09 10:04 AM, Kevan Hashemi wrote:

> Dear Kevin,
>
>> To get a true standalone Wish, you need to run "make
>> install-embedded"--instructions are here:
>>
>> http://wiki.tcl.tk/12987
>
> These instructions say "make embedded" and then "make install-embedded".
> The addition of "install-embedded" does not help me.
>
> I think I failed to make myself clear in my first letter. I'm asking why
> things are different in 8.5.7 from the way they were in 8.5a4 and in 8.4.
>
> I can compile a stand-alone wish.app from 8.5a4 sources with the
> following lines.
>
> ver="8.5a4"
> make -C tcl${ver}/macosx embedded
> make -C tk${ver}/macosx embedded
>
> My directory structure will then look like this:
>
> 8.5a4
> tcl8.5a4
> tk8.5a4
> build
> tcl
> tk
> wish.app
> wish8.5
>
> If I double-click on wish.app, I get a console window and the main
> graphics window. If I run wish8.5 from the terminal, I get the graphics
> window and the terminal becomes the TCL console. The same lines, with
> {ver} set differently, create wish.app for 8.4.11, .12, and .13.
>
> When I apply these steps to 8.5.7, I get the same structure. The wish8.5
> works fine, but wish.app does not. It will not open the console, nor can
> I force it to open the console with an AppMain.tcl script.
>
> There appears to have been a change in the build instructions since
> 8.5a4. What was that change, and why was it made?
>

I don't think there were any changes, and I still don't think you're
doing it right.

I build the standalone embedded with these flags:

  make -C tcl${ver}/macosx install-embedded INSTALL_ROOT=`pwd`/embedded/
  make -C tk${ver}/macosx  install-embedded INSTALL_ROOT=`pwd`/embedded/

This creates a separate directory from "build" called "embedded." That
directory tree looks like this:

embedded
    /Applications
        /Utilities
            /Wish.app

Run this build of Wish, and you should see the console. If that doesn't
work for you, I don't have any other advice.

--Kevin



--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Kevin,

> Run this build of Wish, and you should see the console. If that
> doesn't work for you, I don't have any other advice.

That does not work for me. The wish.app created by "make
install-embedded" is identical to the one first created by "make
embedded". There is no console after double-clicking on wish.app.

I accept, of course, that the same commands work for you. There must be
something wrong with my system. But I claim that the original "make
embedded" will create a wish.app for you in the build/tk directory, if
you care to look for it there, so that the "install-embedded" step,
although useful in certain circumstances, is not relevant to my
no-console problem.

Could my system be out of date for 8.5.7? I have a PPC G4 running 10.4.11.

Yours, Kevan

--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevin Walzer-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 9/6/09 3:03 PM, Kevan Hashemi wrote:

> Dear Kevin,
>
>> Run this build of Wish, and you should see the console. If that
>> doesn't work for you, I don't have any other advice.
>
> That does not work for me. The wish.app created by "make
> install-embedded" is identical to the one first created by "make
> embedded". There is no console after double-clicking on wish.app.
>
> I accept, of course, that the same commands work for you. There must be
> something wrong with my system. But I claim that the original "make
> embedded" will create a wish.app for you in the build/tk directory, if
> you care to look for it there, so that the "install-embedded" step,
> although useful in certain circumstances, is not relevant to my
> no-console problem.
>
> Could my system be out of date for 8.5.7? I have a PPC G4 running 10.4.11.
>
> Yours, Kevan
>

Unfortunately, I have no further ideas on this. Perhaps someone else has
seen this issue?



--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

No Wish Consol 8.5.6 and 8.5.7

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear TCLMAC,

I compiled 8.5.1 through 8.5.7 with "make embedded". I get a
fully-functional wish.app for 8.5.1 through 8.5.5. I double-click and
the console opens up with the main graphics window. But the wish.app for
8.5.6 and 8.5.7 exhibit the same problem: no console.

There are two minor functional differences between the TK makefiles for
8.5.5 and 8.5.6. I edited these out singly and together, and I compiled
8.5.6 using the 8.5.5 makefile. Still no console. (Which is no surprize,
given the nature of the minor differences.)

The 8.5.6 and 8.5.7 wish.app will run a script by means of File/Source,
but buttons are not implemented properly.

button .hello -text "Hello" -command exit
pack .hello

The hello button appears, but wish.app does not quit when you press the
button. If we try the following, the button does not appear at all.

console show
button .hello -text "Hello" -command exit
pack .hello

I assume that "console show" is causing the script to abort. But no
error message window pops up to point out the error. Even the following
script illicits no error message:

error "Dude: where's my error message?"

In the 8.5.5 and earlier wish.app, both the above scripts behave as they
should. Meanwhile, if I run wish8.5 from the command line, the 8.5.6 and
8.5.7 versions work fine. It's only the wish.app stand-alone package
that does not work.

So I suspect the MacOS implementation of the console. I will see if I
can locate any significant changes between the 8.5.5 and 8.5.6
implementations.

Yours, Kevan

--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: No Wish Consol 8.5.6 and 8.5.7

by Daniel A. Steffen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kevan,

On Mon, Sep 7, 2009 at 18:16, Kevan Hashemi<hashemi@...> wrote:
> I compiled 8.5.1 through 8.5.7 with "make embedded".

make sure you use the 'install-embedded' target, the 'embedded' target
is no longer needed and in fact does not do anything different to the
'all' target (it is only there for back-compat reasons), the embedding
magic is all in the 'install-embedded' target...

> I get a
> fully-functional wish.app for 8.5.1 through 8.5.5. I double-click and
> the console opens up with the main graphics window. But the wish.app for
> 8.5.6 and 8.5.7 exhibit the same problem: no console.

works for me, just verified with the tip of core-8-5-branch.

I suspect at runtime you are not using the frameworks versions you
think you are (due to not using install-embedded, check with
DYLD_PRINT_LIBRARIES, c.f. man dyld)

Cheers,

Daniel

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: No Wish Consol 8.5.6 and 8.5.7

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Daniel,

> make sure you use the 'install-embedded' target, the 'embedded' target
> is no longer needed...

I just tried "install-embedded" on its own. Earlier, I tried "embedded"
followed by "install-embedded". All produce the same result as
"embedded" alone.

> works for me, just verified with the tip of core-8-5-branch.

Does not work for me with 8.5.6 or 8.5.7. But works fine for earlier
versions. I'm running MacOS 10.4.11 on a G4. I have not yet tried on an
Intel processor. I don't have any 10.5 systems.

> I suspect at runtime you are not using the frameworks versions you
> think you are...

Whenever I move the frameworks inside the wish.app package, the wish.app
launch fails. I conclude that I am using the correct frameworks.

Yours, Kevan

--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Parent Message unknown Re: make embedded -- no console?

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Daniel,

Here's a table giving processor, MacOS version, XCode version (from
which I obtain gcc), and YES if 8.5.7 wish.app provides a console after
"make embedded".

Intel, 10.5.7, XCode 3.0: YES
PPC, 10.4.11, XCode 2.2: NO
PPC, 10.4.11, XCode 2.4: NO
PPC, 10.4.11, XCode 2.5: NO

After looking at your change log, I thought perhaps we needed GCC 4.2+
to compile 8.5.6+. But all these versions of XCode appear to install GCC
4.0.1, so I don't think the GCC version has anything to do with my problem.

I get the same results for 8.5.6 as I do for 8.5.7.

I always get YES for 8.5.5 and earlier.

The "make install-embedded" command produces the same results as "make
embedded" in every case.

I'm going to install 10.5.7 on one of my PPC machines to see if it's the
PPC part of the 10.4.11 part that is stopping the compile from working
correctly.

Yours, Kevan



--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http:

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Daniel A. Steffen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Kevan,

On Wed, Sep 9, 2009 at 21:41, Kevan Hashemi<hashemi@...> wrote:
> Here's a table giving processor, MacOS version, XCode version (from
> which I obtain gcc), and YES if 8.5.7 wish.app provides a console after
> "make embedded".

that definitely looks like there may be a bug when running on 10.4.
Unfortunately I don't have a 10.4 system anymore and cannot reproduce
this, so you'll probably have debug this yourself.
A brief look at the history doesn't reveal anything obviously
suspicious between 8.5.5 and 8.5.6 that would account for this.
You may be able to use 'git bisect' and my tcltk github mirror to more
quickly track down which commit introduces this problem:
    http://github.com/das/tcltk/tree/core-8-5

Cheers,

Daniel

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevan Hashemi-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Daniel,

I'm delighted to have been introduced to "git". I never learned "cvs",
and after reading about "git", I'm glad I waited. I have git installed
(not trivial on a Tiger PPC machine) and I can do this:

git clone git://git.kernel.org/pub/scm/git/git.git

So I think it's working.

> You may be able to use 'git bisect' and my tcltk github mirror to more
> quickly track down which commit introduces this problem:
>     http://github.com/das/tcltk/tree/core-8-5

When I try the following

git clone http://github.com/das/tcltk/tree/core-8-5

I get errors, the most meaningful of which is:

error: File 0000000000000000000000000000000000000000
(http://github.com/das/tcltk/tree/core-8-5/objects/00/00000000000000000000000000000000000000)
corrupt

Does the above command work for you? Am I on the right track?

Yours, Kevan

--
Kevan Hashemi, President
Open Source Instruments Inc.
www.opensourceinstruments.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Daniel A. Steffen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Kevan,

On Wed, Sep 16, 2009 at 03:26, Kevan Hashemi
<hashemi@...> wrote:
> I'm delighted to have been introduced to "git". I never learned "cvs", and
> after reading about "git", I'm glad I waited.

always glad to win more git converts ;-)

>> You may be able to use 'git bisect' and my tcltk github mirror to more
>> quickly track down which commit introduces this problem:
>>    http://github.com/das/tcltk/tree/core-8-5
>
> When I try the following
>
> git clone http://github.com/das/tcltk/tree/core-8-5

sorry, that probably wasn't very clear, that url is the webpage of the
8.5 branch, the git url to use is mentioned on that page (public clone
url):
    $ git clone git://github.com/das/tcltk.git

because it's git, cloning this actually gets you the whole Tcl/Tk SCM
history locally, i.e. all the branches, including core-8-5
To checkout that branch instead of master (aka HEAD) and start
bisecting, you'd then do
    $ cd tcltk
    $ git --version
    git version 1.6.4.7
    $ git checkout origin/core-8-5
    $ git bisect start core-8-5-6 core-8-5-5 -- tk
    Bisecting: 9 revisions left to test after this (roughly 3 steps)
and start checking for the problem, saying 'git bisect good' resp 'git
bisect bad' depending on results, c.f. 'git help bisect' for more
details

HTH

Cheers,

Daniel

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Daniel,

> always glad to win more git converts ;-)

Understanding of SHA-1 IDs for object names descended upon my like a
divine revelation. I was moved. I am more than a convert. I am a zealot.

>     $ git bisect start core-8-5-6 core-8-5-5 -- tk

After good, bad, good, the fourth step is:

kevan$ git bisect good
f2379c51daae9633ff691b3e6b307f6ad41be111 is the first bad commit
commit f2379c51daae9633ff691b3e6b307f6ad41be111
Author: das <das>
Date:   Sun Dec 7 16:40:30 2008 +0000

     SeparatorElementSize: fix state lookup

:040000 040000 1ebb47243849ed7b185c0464621f2988603f65bb
11c5eff183583db1b028c6145ad6492b0f849f8e M      tk

I confirm that this is, indeed, a commit that produces wish.app
with no console on 10.4.11 PPC. Then I reset git and start again, to
repeat then entire process. I arrive at the same answer. Now I look at
the changes that may have given rise to my problem.

kevan$ git checkout f2379c51daae9633ff691b3e6b307f6ad41be111
kevan$ git show
commit f2379c51daae9633ff691b3e6b307f6ad41be111
Author: das <das>
Date:   Sun Dec 7 16:40:30 2008 +0000

     SeparatorElementSize: fix state lookup

diff --git a/tk/macosx/ttkMacOSXTheme.c b/tk/macosx/ttkMacOSXTheme.c
index 6b8b59a..00501db 100644
--- a/tk/macosx/ttkMacOSXTheme.c
+++ b/tk/macosx/ttkMacOSXTheme.c
@@ -700,12 +700,13 @@ static void SeparatorElementDraw(
      Drawable d, Ttk_Box b, unsigned int state)
  {
      Rect bounds = BoxToRect(d, b);
-    ThemeDrawState drawState = Ttk_StateTableLookup(ThemeStateTable,
state);
+    ThemeDrawState drawState;

      /*
       * DrawThemeSeparator only supports kThemeStateActive /
kThemeStateInactive
      */
      state &= TTK_STATE_BACKGROUND;
+    drawState = Ttk_StateTableLookup(ThemeStateTable, state);
      BEGIN_DRAWING(d)
      ChkErr(DrawThemeSeparator, &bounds, drawState);
      END_DRAWING

I replace the 8.5.6 ttkMacOSXTheme.c with the 8.5.5 file of the same
name, and compile the modified 8.5.6. The wish.app still opens without a
console. I reverting the 8.5.6 SeparatorElementDraw to its 8.5.5 state.
No good. I went to the first bad commit and did the same reversal. No good.

Perhaps the "git show" is not giving me all the changes that were made
just before the first bad commit.


Yours, Kevan

--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/










------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Daniel A. Steffen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Kevan,

On Wed, Sep 16, 2009 at 23:47, Kevan Hashemi <hashemi@...> wrote:
> After good, bad, good, the fourth step is:
>
> kevan$ git bisect good
> f2379c51daae9633ff691b3e6b307f6ad41be111 is the first bad commit

hmm, that commit definitely looks unlikely to produce the problem in question.

you could try
    git bisect start core-8-5-6 core-8-5-5
i.e. use not only the changes to tk but all the changes in the
repository, including those to tcl

Cheers,

Daniel

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Daniel,

The problem is in tclMacOSXBundle.c.

>     git bisect start core-8-5-6 core-8-5-5

b12ae0121fcd80b017920e2565dcc6b62efc443d is the first bad commit

And "git show" indicates substantial changes to tclMacOSXBundle.c.

Reminder: I'm working on a PPC with OS 10.4.11 and my problem is 8.5.6
and 8.5.7 wish.app opening without a console window.

I replace MacOSXBundle.c in 8.5.6 with the one from 8.5.5 and re-compile
the modified 8.5.6. My wish.app opens up with a console. I perform the
same replacement in 8.5.7 and re-compiled the modified 8.5.7. The
wish.app opens with a console. I note, however, that the resulting
wish.app does not have the wish icon on display, which may be related to
the changes in tcl MacOSXBundle.c.

All changes are in Tcl_MacOSXOpenVersionedBundleResources. I can't see
how I can divide the changes into parts without breaking the code. For
your part, since you don't have any PPC 10.4.11 machines, I'm not sure
how you can test any modifications you might perform. If you have a
spare five minutes, please look at the changes associated with the first
bad commit and see if you can give me a hint about where the problem
might be. If you can't give me a hint, I'll study the code more
carefully and see what I can do.

Yours, Kevan


--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/






------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Daniel A. Steffen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Kevan,

On Thu, Sep 17, 2009 at 20:22, Kevan Hashemi <hashemi@...> wrote:
> The problem is in tclMacOSXBundle.c.
>
>>    git bisect start core-8-5-6 core-8-5-5
>
> b12ae0121fcd80b017920e2565dcc6b62efc443d is the first bad commit
>
> And "git show" indicates substantial changes to tclMacOSXBundle.c.

ah! that  sounds familiar, I think this is bug 2569449
    https://sourceforge.net/tracker/index.php?func=detail&aid=2569449&group_id=10894&atid=110894

> Reminder: I'm working on a PPC with OS 10.4.11

yes, this appears to be due to a bug in 10.4 CoreFoundation that got
fixed in later OS releases...

I have just attached a patch to the report above that works around
this CF issue, please test that this fixes the problem for you.

Cheers,

Daniel

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Daniel,

> I have just attached a patch to the report above that works around
> this CF issue, please test that this fixes the problem for you.

I downloaded a file called 2569449.diff. I applied it with "patch" to my
8.5.6 source code's tclMacOSXBundle.c. I compiled embedded wish.app. But
still no console.

I entered the git repository and checked out the first broken commit,
which is b12ae0121fcd80b017920e2565dcc6b62efc443d. I created a new
branch and applied the patch to the tclMacOSXBundle.c in the new branch.
I compiled embedded wish.app. No console.

Did I download the correct diff file?

Yours, Kevan

--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/




------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Daniel A. Steffen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Sep 18, 2009 at 00:42, Kevan Hashemi <hashemi@...> wrote:
> I downloaded a file called 2569449.diff. I applied it with "patch" to my
> 8.5.6 source code's tclMacOSXBundle.c. I compiled embedded wish.app. But
> still no console.

hmm, what a pain.
Can you verify that the problem goes away if you comment out the line
            CFRelease(versionedBundleRef);
in the patched tclMacOSXBundle.c ? (if not, this issue is not be the
same as 2569449)

Thanks!

Cheers,

Daniel

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: make embedded -- no console?

by Kevan Hashemi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Daniel,

> Can you verify that the problem goes away if you comment out the line
>    CFRelease(versionedBundleRef);

The problem does not go away.

Please note that this problem is NOT urgent. I am using 8.5.5, which
works great. I have not found any problems with it so far, and I have
been using it for a couple of weeks.

Shall I submit a bug report of some sort?

Yours, Kevan

--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac
< Prev | 1 - 2 | Next >