Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-28 Thread Jason Tishler
Dean,

On Wed, Jul 27, 2005 at 02:56:16PM -0700, Dean N. Williams wrote:
> >I didn't get this error.  Did you forgot to install one of the
> >libdb${version}-devel packages:
> >
> >   $ cygcheck -cd | grep 'libdb.*-devel'
> >   libdb2-devel2.7.7-4
> >   libdb3.1-devel  3.1.17-2
> >   libdb4.1-devel  4.1.25-1
> >   libdb4.2-devel  4.2.52-1
> >
> No, I did an install all at the top of the installation. Didn't know I
> needed to specify libraries. If I select "install" for everything
> (that is, all packages show "install") shouldn't this include the
> above?

It should, but I wasn't looking over your shoulder when you ran Cygwin's
setup.exe. :,)  Anyway, please run the following and post the results to
the list:

$ cygcheck -cd | grep 'libdb.*-devel'

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-27 Thread Dean N. Williams

[snip]

>I didn't get this error.  Did you forgot to install one of the
>libdb${version}-devel packages:
>
>$ cygcheck -cd | grep 'libdb.*-devel'
>libdb2-devel2.7.7-4
>libdb3.1-devel  3.1.17-2
>libdb4.1-devel  4.1.25-1
>libdb4.2-devel  4.2.52-1
>
No, I did an install all at the top of the installation. Didn't know I 
needed to specify libraries. If I select "install" for everything (that 
is, all packages show "install") shouldn't this include the above?

-Dean

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-27 Thread Jason Tishler
Dean,

On Wed, Jul 27, 2005 at 12:41:05PM -0700, Dean N. Williams wrote:
> Thanks for fixing this bug in Cygwin.

You are welcome.  However, I didn't fix it -- I just got it fixed. :,)

> Remember there was another undefined variable for the Python build
> _bsd...

I didn't get this error.  Did you forgot to install one of the
libdb${version}-devel packages:

$ cygcheck -cd | grep 'libdb.*-devel'
libdb2-devel2.7.7-4
libdb3.1-devel  3.1.17-2
libdb4.1-devel  4.1.25-1
libdb4.2-devel  4.2.52-1

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-27 Thread Dean N. Williams


Jason,

Thanks for fixing this bug in Cygwin. Remember there was another 
undefined variable for the Python build _bsd...

Best regards,  
Dean

>On Mon, Jul 25, 2005 at 03:02:45PM -0700, [EMAIL PROTECTED] wrote:
>  
>
>>Let me know when you have it solved.
>>
>>
>
>The problem has been fixed in Cygwin CVS:
>
>http://cygwin.com/ml/cygwin/2005-07/msg01257.html
>http://cygwin.com/ml/cygwin-cvs/2005-q3/msg00046.html
>
>  
>
>>In the meantime, I have a workaround.
>>
>>
>
>Unfortunately, you will have to live with your workaround until Cygwin
>1.5.19 is released. :,(
>
>Jason
>
>  
>

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-27 Thread Jason Tishler
On Mon, Jul 25, 2005 at 03:02:45PM -0700, [EMAIL PROTECTED] wrote:
> Let me know when you have it solved.

The problem has been fixed in Cygwin CVS:

http://cygwin.com/ml/cygwin/2005-07/msg01257.html
http://cygwin.com/ml/cygwin-cvs/2005-q3/msg00046.html

> In the meantime, I have a workaround.

Unfortunately, you will have to live with your workaround until Cygwin
1.5.19 is released. :,(

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread williams13
Anytime Jason...  Thanks for fixing this problem. Let me 
know when you have it solved.  In the meantime, I have a 
workaround.

Best regards,
Dean

On Mon, 25 Jul 2005 16:11:32 -0400
  Jason Tishler <[EMAIL PROTECTED]> wrote:
>Dean,
>
>On Mon, Jul 25, 2005 at 10:49:58AM -0700, Dean N. 
>Williams wrote:
>> For version control and other reasons, it would be nice 
>>to be able to
>> build Python from source and it should build from 
>>source. How did the
>> Cygwin version build?
>
>I built using an older version of Cygwin (i.e, 1.5.12-1).
>
>> I've attached the Python log file with the specific 
>>error. What file
>> is missing?
>
>None.  See below...
>
>The "root cause" is the following:
>
>under Cygwin 1.5.12-1:
>
>$ configure
>[snip]
>checking for inet_pton... no
>[snip]
>
>under Cygwin 1.5.18-1:
>
>$ configure
>[snip]
>checking for inet_pton... yes
>[snip]
>
>So, when you build under 1.5.18-1, pyconfig.h has the 
>following:
>
>#define HAVE_INET_PTON 1
>
>This causes a chunk of code in socketmodule.c to be 
>compiled under
>1.5.18-1 that wasn't compiled before.
>
>I will have to research why INET_ADDRSTRLEN is not 
>defined under Cygwin
>and submit a patch to Cygwin or Python as appropriate.
>
>Thanks for bringing this problem to my attention.
>
>Jason
>
>-- 
>PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or 
>key servers
>Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC 
>ECF4 8EF6

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Jason Tishler
Dean,

On Mon, Jul 25, 2005 at 10:49:58AM -0700, Dean N. Williams wrote:
> For version control and other reasons, it would be nice to be able to
> build Python from source and it should build from source. How did the
> Cygwin version build?

I built using an older version of Cygwin (i.e, 1.5.12-1).

> I've attached the Python log file with the specific error. What file
> is missing?

None.  See below...

The "root cause" is the following:

under Cygwin 1.5.12-1:

$ configure
[snip]
checking for inet_pton... no
[snip]

under Cygwin 1.5.18-1:

$ configure
[snip]
checking for inet_pton... yes
[snip]

So, when you build under 1.5.18-1, pyconfig.h has the following:

#define HAVE_INET_PTON 1

This causes a chunk of code in socketmodule.c to be compiled under
1.5.18-1 that wasn't compiled before.

I will have to research why INET_ADDRSTRLEN is not defined under Cygwin
and submit a patch to Cygwin or Python as appropriate.

Thanks for bringing this problem to my attention.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Dean N. Williams
Hi Jason,

To get "import socket" to work in Python2.4, I had to do something 
that I never recomend and that is hack the Python code. Since I need 
this to work for someone that is going on travel, I just modified the 
socketmodule.c file.

REPLACE:

/* Irix 6.5 fails to define this variable at all. This is needed
   for both GCC and SGI's compiler. I'd say that the SGI headers
   are just busted. */
#if defined(__sgi) && !defined(INET_ADDRSTRLEN)
#define INET_ADDRSTRLEN 16
#endif

WITH:
#define INET_ADDRSTRLEN 16

This is a temporary fix until the Cygwin build works.

Best regards,
Dean

>Dean,
>
>On Fri, Jul 22, 2005 at 05:11:45AM -0700, Dean N. Williams wrote:
>  
>
>>I downloaded your new Cygwin from http://cygwin.com and tried to build
>>install Python/CDAT again. It appears to have built properly, but when
>>I try to execute, it receive a sock error. How do I get around this
>>problem?
>>
>>
>
>I don't know -- it is not clear what you are trying to do.  Are you
>trying to build Cygwin Python or just CDAT?
>
>On Fri, Jul 22, 2005 at 07:09:08AM -0700, Dean N. Williams wrote:
>  
>
>>To be more specific. If I try to import socket I get the "ImportError:
>>No module named _socket". What do I need to install from Cygwin in
>>order for this to work?
>>
>>
>
>AFAICT, nothing.  The above seems to indicate your Python installation
>is broken.
>
>Jason
>
>  
>

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Steve Holden
Jason Tishler wrote:
> Dean,
> 
> On Mon, Jul 25, 2005 at 11:27:16AM -0700, Dean N. Williams wrote:
> 
>>I was able to run C:/cygwin/bin/ash.exe. This is good. In the
>>"ash.exe" window, I ran PATH=/bin rebaseall and received the same
>>error: "rebaseall: only ash processes are allowed .. Execute
>>'/bin/rebaseall' from ash."
> 
> 
> Did you read the error message?  In particular, the following:
> 
> Exit all Cygwin processes and stop all Cygwin services.
> 
I did an write-up of rebasing, basically updating instructions you and 
others had been good enough provide in the past:

   http://www.holdenweb.com/review/rvw002.html

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Dean N. Williams
Right! Forgot to exit out of ALL Cygwin processes. This does work.

-Dean

Jason Tishler wrote:

>Dean,
>
>On Mon, Jul 25, 2005 at 11:27:16AM -0700, Dean N. Williams wrote:
>  
>
>>I was able to run C:/cygwin/bin/ash.exe. This is good. In the
>>"ash.exe" window, I ran PATH=/bin rebaseall and received the same
>>error: "rebaseall: only ash processes are allowed .. Execute
>>'/bin/rebaseall' from ash."
>>
>>
>
>Did you read the error message?  In particular, the following:
>
>Exit all Cygwin processes and stop all Cygwin services.
>
>Jason
>
>  
>

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Jason Tishler
Dean,

On Mon, Jul 25, 2005 at 11:27:16AM -0700, Dean N. Williams wrote:
> I was able to run C:/cygwin/bin/ash.exe. This is good. In the
> "ash.exe" window, I ran PATH=/bin rebaseall and received the same
> error: "rebaseall: only ash processes are allowed .. Execute
> '/bin/rebaseall' from ash."

Did you read the error message?  In particular, the following:

Exit all Cygwin processes and stop all Cygwin services.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Dean N. Williams
[snip]

I was able to run C:/cygwin/bin/ash.exe. This is good. In the "ash.exe" 
window, I ran PATH=/bin rebaseall and received the same error:
"rebaseall: only ash processes are allowed .. Execute 
'/bin/rebaseall' from ash."

-Dean

>If Cygwin's bin is not in your Windows PATH, then give the full path to
>ash.  For example:
>
>C:\Cygwin\bin\ash.exe
>
>Then start rebaseall is follows:
>
>$ PATH=/bin rebaseall
>
>Jason
>
>  
>

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Jason Tishler
Dean,

On Mon, Jul 25, 2005 at 05:55:39AM -0700, Dean N. Williams wrote:
> >>Is there anyway for me to get back to an older version of Cygwin?
> >
> >What do you mean by the above?  An older Cygwin?  An older Cygwin
> >Python?  An older rebase?

See below...

> [snip]
> 
> When installing from the internet, there is no way to specify which
> version (or date) of Cygwin to download. I was wondering if you kept
> version controls, so I could go back to the February version of Cygwin
> since I know the Python Socket Module works.

No, but see the Cygwin Time Machine:

ftp://www.fruitbat.org/pub/cygwin/circa/2005/02/

> >>In my Python2.4 log file, I tracked it down to the file
> >>Python2.4/Modules/socketmodule.c file: 3350  INET_ADDSTRLEN, which
> >>says "INET_ADDSTRLEN" is undeclared. I know this has something to do
> >>with the _ssl extension.
> >
> >Is the above from building Python or CDAT?
> >
> The above is building Python.

Why are you trying to build Cygwin Python?  Why can't you use the
pre-built version?

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Dean N. Williams


Jason,

>
>>Is there anyway for me to get back to an older version of Cygwin?
>>
>>
>
>What do you mean by the above?  An older Cygwin?  An older Cygwin
>Python?  An older rebase?
>
I  installed Cygwin back in February on my laptop. (Call this Cygwin A.) 
I have not updated it (i.e., Cygwin A) since getting Python to run. Last 
week, I obtained another laptop, which I installed Cygwin (from the 
Internet) on last Thursday. (Call this Cygwin B.)

Cygwin Versions:
Cygwin A = the February 2005,  version
Cygwin B  = Thursday's, July 21, 2005 version

Last Friday, I built Python2.4 on Cygwin A with no errors. (The 
socketmodule worked and I can import socket.) I also built Python2.4 on 
newer version of Cygwin (i.e., Cygwin B), but the socketmodule doesn't 
work. I get an error message when importing socket. The Python2.4 is the 
same for both. The only difference is in the Cygwin version. That is, 
the version I installed from the internet in February and the version I 
installed last Thursday.

When installing from the internet, there is no way to specify which 
version (or date) of Cygwin to download. I was wondering if you kept 
version controls, so I could go back to the February version of Cygwin 
since I know the Python Socket Module works.

>
>  
>
>>In my Python2.4 log file, I tracked it down to the file
>>Python2.4/Modules/socketmodule.c file: 3350  INET_ADDSTRLEN, which
>>says "INET_ADDSTRLEN" is undeclared. I know this has something to do
>>with the _ssl extension.
>>
>>
>
>Is the above from building Python or CDAT?
>
The above is building Python.

>
>  
>
>>Also in my Python2.4 log file, I see DB_LSTAT_ERR is undeclared. Has
>>something to do with the building of the gdbm extension.
>>
>>
>
>Ditto.
>
Yeap. The is from the Python build.

>
>  
>
>>Also when I tryed "rebaseall" it no longer worked. When I went to
>>"Start/run..." and tried to run "ash", I got the error stating it
>>didn't know what "ash" was. Any help on this is appreciated.
>>
>>
>
>If Cygwin's bin is not in your Windows PATH, then give the full path to
>ash.  For example:
>
>C:\Cygwin\bin\ash.exe
>
>Then start rebaseall is follows:
>
>$ PATH=/bin rebaseall
>

Thanks. I will try this and see if this gets around my problem.

Thanks again for any help on this

Best regards,
Dean

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-25 Thread Dean N. Williams


Jason,

>Dean,
>
>On Fri, Jul 22, 2005 at 05:11:45AM -0700, Dean N. Williams wrote:
>  
>
>>I downloaded your new Cygwin from http://cygwin.com and tried to build
>>install Python/CDAT again. It appears to have built properly, but when
>>I try to execute, it receive a sock error. How do I get around this
>>problem?
>>
>>
>
>I don't know -- it is not clear what you are trying to do.  Are you
>trying to build Cygwin Python or just CDAT?
>
I am trying to build Python first, then eventually I'll get to CDAT.

>
>On Fri, Jul 22, 2005 at 07:09:08AM -0700, Dean N. Williams wrote:
>  
>
>>To be more specific. If I try to import socket I get the "ImportError:
>>No module named _socket". What do I need to install from Cygwin in
>>order for this to work?
>>
>>
>
>AFAICT, nothing.  The above seems to indicate your Python installation
>is broken.
>
The Python builds with the exception of the socketmodule. There seems to 
be some problems here. I can import all needed modules except the socket 
module.

>
>Jason
>
>  
>

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-22 Thread Jason Tishler
Dean,

Please keep your replies on-list.

On Fri, Jul 22, 2005 at 08:14:03AM -0700, Dean N. Williams wrote:
> Is there anyway for me to get back to an older version of Cygwin?

What do you mean by the above?  An older Cygwin?  An older Cygwin
Python?  An older rebase?

> In my Python2.4 log file, I tracked it down to the file
> Python2.4/Modules/socketmodule.c file: 3350  INET_ADDSTRLEN, which
> says "INET_ADDSTRLEN" is undeclared. I know this has something to do
> with the _ssl extension.

Is the above from building Python or CDAT?

> Also in my Python2.4 log file, I see DB_LSTAT_ERR is undeclared. Has
> something to do with the building of the gdbm extension.

Ditto.

> Also when I tryed "rebaseall" it no longer worked. When I went to
> "Start/run..." and tried to run "ash", I got the error stating it
> didn't know what "ash" was. Any help on this is appreciated.

If Cygwin's bin is not in your Windows PATH, then give the full path to
ash.  For example:

C:\Cygwin\bin\ash.exe

Then start rebaseall is follows:

$ PATH=/bin rebaseall

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-22 Thread Jason Tishler
Dean,

On Fri, Jul 22, 2005 at 05:11:45AM -0700, Dean N. Williams wrote:
> I downloaded your new Cygwin from http://cygwin.com and tried to build
> install Python/CDAT again. It appears to have built properly, but when
> I try to execute, it receive a sock error. How do I get around this
> problem?

I don't know -- it is not clear what you are trying to do.  Are you
trying to build Cygwin Python or just CDAT?

On Fri, Jul 22, 2005 at 07:09:08AM -0700, Dean N. Williams wrote:
> To be more specific. If I try to import socket I get the "ImportError:
> No module named _socket". What do I need to install from Cygwin in
> order for this to work?

AFAICT, nothing.  The above seems to indicate your Python installation
is broken.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-22 Thread Dean N. Williams
Hi Jason,

To be more specific. If I try to import socket I get the 
"ImportError: No module named _socket". What do I need to install from 
Cygwin in order for this to work?

Thanks,
Dean

>
>
> Hi Jason,
>
>I downloaded your new Cygwin from http://cygwin.com and tried to 
> build install Python/CDAT again. It appears to have built properly, 
> but when I try to execute, it receive a sock error. How do I get 
> around this problem?
>
>When I built Cygwin, I instructed it to install everything.
>
> Thanks in advance for your help and best regards,
>Dean
>
>

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-22 Thread Dean N. Williams


Hi Jason,

I downloaded your new Cygwin from http://cygwin.com and tried to 
build install Python/CDAT again. It appears to have built properly, but 
when I try to execute, it receive a sock error. How do I get around this 
problem?

When I built Cygwin, I instructed it to install everything.

Thanks in advance for your help and best regards,
Dean


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-19 Thread Jason Tishler
Dean,

On Mon, Jul 18, 2005 at 05:59:20AM -0700, Dean N. Williams wrote:
> Thanks for fixing this problem.

You are quite welcome.  Thanks for your patience.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-18 Thread Dean N. Williams


Dear Jason,

Thanks for fixing this problem. I'm sure all the CDAT/Cygwin users 
really appreciate it. I'll put the update on the CDAT web portal.

Best regards,
Dean

>Dean,
>
>On Tue, Feb 08, 2005 at 12:55:15PM -0500, Jason Tishler wrote:
>  
>
>>On Tue, Feb 08, 2005 at 08:01:11AM -0800, Dean N. Williams wrote:
>>
>>
>>>$ rebaseall
>>>/usr/bin/rebaseall: line 70: [: too many arguments
>>>/usr/bin/rebaseall: line 75: [: too many arguments
>>>/usr/bin/rebaseall: line 94: $TmpFile: ambiguous redirect
>>>cannot read /cygdrive/c/Documents
>>>
>>>On my laptop installation everything works just fine. What is the
>>>difference?
>>>  
>>>
>>The TMP and/or TEMP environment variables have at least two spaces in
>>them.
>>
>>The easiest workaround is to execute rebaseall like the following:
>>
>>$ TMP=/tmp rebaseall
>>
>>Long term I will change rebaseall to deal better with spaces in shell
>>variables.
>>
>>
>
>The above rebaseall problem has been fixed:
>
>http://cygwin.com/ml/cygwin-announce/2005-07/msg00031.html
>
>Jason
>
>  
>

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-18 Thread Jason Tishler
Dean,

On Tue, Feb 08, 2005 at 12:55:15PM -0500, Jason Tishler wrote:
> On Tue, Feb 08, 2005 at 08:01:11AM -0800, Dean N. Williams wrote:
> > $ rebaseall
> > /usr/bin/rebaseall: line 70: [: too many arguments
> > /usr/bin/rebaseall: line 75: [: too many arguments
> > /usr/bin/rebaseall: line 94: $TmpFile: ambiguous redirect
> > cannot read /cygdrive/c/Documents
> > 
> > On my laptop installation everything works just fine. What is the
> > difference?
> 
> The TMP and/or TEMP environment variables have at least two spaces in
> them.
> 
> The easiest workaround is to execute rebaseall like the following:
> 
> $ TMP=/tmp rebaseall
> 
> Long term I will change rebaseall to deal better with spaces in shell
> variables.

The above rebaseall problem has been fixed:

http://cygwin.com/ml/cygwin-announce/2005-07/msg00031.html

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-28 Thread Jason Tishler
Dean,

On Mon, Feb 28, 2005 at 10:34:20AM -0800, Dean N. Williams wrote:
> I have a other Cygwin port question. It turns out that the auto-import
> for XtStrings an widgetClass didn't get resolved. This a similar
> auto-import resolving error that I got when trying to build Tcl/Tk. I
> ended up using the shared Tcl/Tk that came with Cygwin. But in this
> case I must be able to build my software. Can you tell me how to get
> around this problem? Or can you tell me which cygwin mail list to send
> my plea for help?

I recommend trying the main Cygwin list:

cygwin at cygwin dot com

> gcc -shared -Wl,--enable-auto-image-base  -o gplot gplot.o cgm.o ccgm.o 
> utils.o io.o carray.o devices.o hload.o emul.o tty.o ps.o cgmc.o 
> xws_cla.o xws_color.o xws_delim.o xws_marker.o xws_polygon.o 
> xws_polyline.o xws_setup.o xws_text.o drvcla.o-L/usr/X11R6/lib -lXp 
> -lXpm -lXaw -lXmu -lXext -lXt -lX11 /usr/lib/libm.a -lc
> Info: resolving _XtStrings by linking to __imp__XtStrings (auto-import)
> Info: resolving _widgetClass by linking to __imp__widgetClass (auto-import)

However, I also recommend providing more information than the above.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-28 Thread Dean N. Williams

Hi Jason,
   I have a other Cygwin port question. It turns out that the 
auto-import for XtStrings an widgetClass didn't get resolved. This a 
similar auto-import resolving error that I got when trying to build 
Tcl/Tk. I ended up using the shared Tcl/Tk that came with Cygwin. But in 
this case I must be able to build my software. Can you tell me how to 
get around this problem? Or can you tell me which cygwin mail list to 
send my plea for help?

Thanks and best regards,
   Dean
gcc -shared -Wl,--enable-auto-image-base  -o gplot gplot.o cgm.o ccgm.o 
utils.o io.o carray.o devices.o hload.o emul.o tty.o ps.o cgmc.o 
xws_cla.o xws_color.o xws_delim.o xws_marker.o xws_polygon.o 
xws_polyline.o xws_setup.o xws_text.o drvcla.o-L/usr/X11R6/lib -lXp 
-lXpm -lXaw -lXmu -lXext -lXt -lX11 /usr/lib/libm.a -lc
Info: resolving _XtStrings by linking to __imp__XtStrings (auto-import)
Info: resolving _widgetClass by linking to __imp__widgetClass (auto-import)
>

P.S. "Platform Windows XP/Cygwin 1.5.1."
--
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-10 Thread Jason Tishler
Dean,

On Wed, Feb 09, 2005 at 08:15:43AM -0800, Dean N. Williams wrote:
> The "$ TMP=/tmp rebaseall" command worked! Thank you.

You are quite welcome.

> When a new Cygwin is available w/ your changes please let me know...

Sorry, but the above does not scale.  If you subscribe to
cygwin-announce@, then you will be notified when rebase and other Cygwin
packages are released.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-09 Thread Dean N. Williams

Dear Jason,
   The "$ TMP=/tmp rebaseall" command worked! Thank you. When a new 
Cygwin is available w/ your changes please let me know...

Best regards,
   Dean
On Tue, Feb 08, 2005 at 08:01:11AM -0800, Dean N. Williams wrote:
 

$ rebaseall
/usr/bin/rebaseall: line 70: [: too many arguments
/usr/bin/rebaseall: line 75: [: too many arguments
/usr/bin/rebaseall: line 94: $TmpFile: ambiguous redirect
cannot read /cygdrive/c/Documents
On my laptop installation everything works just fine. What is the
difference?
   

The TMP and/or TEMP environment variables have at least two spaces in
them.
The easiest workaround is to execute rebaseall like the following:
   $ TMP=/tmp rebaseall
Long term I will change rebaseall to deal better with spaces in shell
variables.
Jason
 

--
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-08 Thread Jason Tishler
Dean,

On Tue, Feb 08, 2005 at 08:01:11AM -0800, Dean N. Williams wrote:
> $ rebaseall
> /usr/bin/rebaseall: line 70: [: too many arguments
> /usr/bin/rebaseall: line 75: [: too many arguments
> /usr/bin/rebaseall: line 94: $TmpFile: ambiguous redirect
> cannot read /cygdrive/c/Documents
> 
> On my laptop installation everything works just fine. What is the
> difference?

The TMP and/or TEMP environment variables have at least two spaces in
them.

The easiest workaround is to execute rebaseall like the following:

$ TMP=/tmp rebaseall

Long term I will change rebaseall to deal better with spaces in shell
variables.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-08 Thread Dean N. Williams

Dear Jason,
   I installed Cygwin on another Windows XP platform, this time I 
selected "ALL" for the setup installation. Everything appears to have 
been install just fine, except for when I do the "rebaseall" command. I 
am receiving the following error messages when I do the "rebaseall" 
command at the prompt:

$ rebaseall
/usr/bin/rebaseall: line 70: [: too many arguments
/usr/bin/rebaseall: line 75: [: too many arguments
/usr/bin/rebaseall: line 94: $TmpFile: ambiguous redirect
cannot read /cygdrive/c/Documents
   On my laptop installation everything works just fine. What is the 
difference?

   Thanks in advance and best regards,
   Dean
Dean,
Please keep your replies on-list.
On Wed, Feb 02, 2005 at 05:14:21AM -0800, Dean N. Williams wrote:
 

I am trying to do the following according to your notes:
3. Due to issues with Cygwin's fork() and DLL base address conflicts,
one should rebase their Cygwin system to prevent fork() failures.  Use
the following procedure to rebase your system:
  a. install the Cygwin rebase package (if necessary)
  b. shutdown all Cygwin processes
  c. start bash (do not use rxvt)
  d. execute rebaseall (in the bash window)
I think this is why idle fails. So I did the above:
[Dean [EMAIL PROTECTED] ...ASD_work/bin]$ rebaseall
ReBaseImage (/usr/bin/cygexpat-0.dll) failed with last error = 6
What am I doing wrong here?
   

It appears you did not follow step b above.  Did you shutdown *all*
Cygwin processes include services?
Jason
 

--
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-02 Thread Jason Tishler
Dean,

Please keep your replies on-list.

On Wed, Feb 02, 2005 at 05:14:21AM -0800, Dean N. Williams wrote:
> I am trying to do the following according to your notes:
> 
> 3. Due to issues with Cygwin's fork() and DLL base address conflicts,
> one should rebase their Cygwin system to prevent fork() failures.  Use
> the following procedure to rebase your system:
> 
>a. install the Cygwin rebase package (if necessary)
>b. shutdown all Cygwin processes
>c. start bash (do not use rxvt)
>d. execute rebaseall (in the bash window)
> 
> I think this is why idle fails. So I did the above:
> 
> [Dean [EMAIL PROTECTED] ...ASD_work/bin]$ rebaseall
> ReBaseImage (/usr/bin/cygexpat-0.dll) failed with last error = 6
> 
> What am I doing wrong here?

It appears you did not follow step b above.  Did you shutdown *all*
Cygwin processes include services?

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-02 Thread Jason Tishler
Dean,

Please keep your replies on-list.

On Wed, Feb 02, 2005 at 05:06:30AM -0800, Dean N. Williams wrote:
> It appears that I built the  Tcl/Tk libraries, but for some reasons
> they are not correct. So I am using the Tcl/Tk libraries that were
> distributed with Cygwin. This seemed to work... Now I set the
> TCL_LIBRARY and TK_LIBRARY environment, but I get the following error
> when trying to run idle.
>
> [Dean [EMAIL PROTECTED] ...ASD_work/bin]$ ./idle
> C:\cygwin\usr\local\ASD_work\bin\python2.4.exe (3164): *** unable to 
> remap C:\cygwin\bin\cygssl-0.9.7.dll to same address as parent(0x74) 
> != 0x75
>  5 [main] python2.4 2144 sync_with_child: child 3164(0x650) died 
> before initialization with status code 0x1
>   7241 [main] python2.4 2144 sync_with_child: *** child state child 
> loading dlls
> Traceback (most recent call last):
>  File "./idle", line 5, in ?
>main()
>  File "/usr/local/ASD_work/lib/python2.4/idlelib/PyShell.py", line 
> 1355, in main
> [snip]
>  File "/usr/local/ASD_work/lib/python2.4/os.py", line 488, in _spawnvef
>pid = fork()
> OSError: [Errno 11] Resource temporarily unavailable
>
> Does this have to do with rebaseall?

Yes.  Rebase your system (via rebaseall) following the instructions in
the Cygwin Python but remember to use the "-T" option to specify the
DLLs you built locally.  After rebasing you should be good to go.

> thanks again for all your help...

You are welcome.

Maybe three times is a charm? :,(  Why don't you use the pre-built
Python that is part of the standard Cygwin distribution?

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-02 Thread Jason Tishler
Dean,

On Tue, Feb 01, 2005 at 08:01:13AM -0800, Dean N. Williams wrote:
> I am getting the following error message from the Python build:
> 
> Traceback (most recent call last):
>  File "", line 1, in ?
>  File "/usr/local/ASD_work/cdat/lib/python2.4/lib-tk/Tkinter.py", line 
> 38, in ?
>import _tkinter # If this fails your Python may not be configured for Tk
> ImportError: No module named _tkinter
> Python Tkinter import failed.
> 
> 
> Have you seen this type of error message before?

No.

> I've attached the following log files for each build.

It appears you did not carefully read the build logs yourself:

building '_tkinter' extension
gcc -shared -Wl,--enable-auto-image-base 
build/temp.cygwin-1.5.12-i686-2.4/_tkinter.o 
build/temp.cygwin-1.5.12-i686-2.4/tkappinit.o -L/usr/X11R6/lib64 
-L/usr/X11R6/lib -L/usr/local/ASD_work/cdat/lib -L/usr/local/lib -L. -ltk8.4 
-ltcl8.4 -lpython2.4 -o build/lib.cygwin-1.5.12-i686-2.4/_tkinter.dll

/usr/local/ASD_work/cdat/lib/libtk8.4.a(tkWindow.o)(.text+0x1093):tkWindow.c: 
undefined reference to `_XDestroyWindow'
...
collect2: ld returned 1 exit status

Hence, you were unsuccessful building _tkinter.  This is why the import
above fails.

> [snip]
> 
> What else am I missing to do?

Using the pre-built Python and Tcl/Tk packages that are part of the
standard Cygwin distribution instead of attempting to build your own.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-01 Thread Kartic
Dean,

It has been quite sometime since I did that. I had installed Tcl/TK in
a non-standard location on my Freebsd box.

So, for Python to compile _tkinter,  in the configure script I passed
the location of the Tcl/Tk includes and libs. So, you will have to find
out where in the Cygwin tree the tcl includes and libraries are
installed.

On my Freebsd box, I did:
CFLAGS="-I/usr/local/tcl/include" \ # that is a - capital i
LDFLAGS="-L/usr/local/tcl/lib" \
./configure \
 rest of configure options.

(put this in something like do-conf) and at the prompt type sh do-conf.

OR

you can use the --with-libs='lib1 ...'  option for the configure
script. You will to give the path to your TCL libraries against this
option.

Do a configure --help to see the available configure options with some
help strings.

But like Jason mentioned, why don't you use the stock Python install
that comes with Cygwin; it is tkinter enabled and works just fine?
(unless you have a compelling reason to install from source)
Thanks,
--Kartic

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-01 Thread Jason Tishler
Dean,

On Tue, Feb 01, 2005 at 02:31:03AM -0800, Dean N. Williams wrote:
> I am trying to build Python with Tcl/Tk under the Cygwin_NT-5.1 OS. 
> Has anyone done this?

Yes, Cygwin Python with _tkinter has been part of the standard Cygwin
distribution for over three years:

http://www.cygwin.com/ml/cygwin-announce/2001/msg00118.html

> Do I need to build tcl8.4.9 and tk8.4.9 under the unix directory or
> the win directory.

No, Tcl/Tk is part of the standard Cygwin distribution too.

> I found that the Tcl/Tk unix directories compiled just fine and built
> the libtcl8.4.a and libtk8.4.a libraries for use. But I don't think
> that Python is looking for this. If you've built Python with Tcl/Tck,
> is it possible for you to send me instructions on how you did it?

See the Cygwin Python README:

http://www.tishler.net/jason/software/python/python-2.4.README

BTW, why don't you just use the pre-built Cygwin Python?

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
-- 
http://mail.python.org/mailman/listinfo/python-list


Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-01 Thread Dean N. Williams
Dear Python Community,
  I am trying to build Python with Tcl/Tk under the Cygwin_NT-5.1 OS. 
Has anyone done this? Do I need to build tcl8.4.9 and tk8.4.9 under the 
unix directory or the win directory. I found that the Tcl/Tk unix 
directories compiled just fine and built the libtcl8.4.a and libtk8.4.a 
libraries for use. But I don't think that Python is looking for this. If 
you've built Python with Tcl/Tck, is it possible for you to send me 
instructions on how you did it? Thanks in advance...

Best regards,
  Dean
--
http://mail.python.org/mailman/listinfo/python-list