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


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-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-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-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-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
[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 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 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-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 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-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-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-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


unrecognized command line option "-Wno-long-double"

2006-04-19 Thread Dean N. Williams
Dear Python and Mac Community,

I have just successfully built gcc version 4.1.0 for my Mac OS X 10.4.6.

gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8.6.0
Configured with: /usr/local/src/gcc-4.1.0/configure
Thread model: posix
gcc version 4.1.0

When I try to build Python 2.4.3, I get the following error below:

gcc -c -fno-strict-aliasing -no-cpp-precomp -mno-fused-madd 
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include  
-DPy_BUILD_CORE -o Modules/python.o Modules/python.c
gcc: unrecognized option '-no-cpp-precomp'
gcc: unrecognized option '-no-cpp-precomp'
cc1: error: unrecognized command line option "-Wno-long-double"
make: *** [Modules/python.o] Error 1
Python make failed.


   What is the best solution for this unrecognized command line option?

Thanks for your help in advance,
Dean
-- 
http://mail.python.org/mailman/listinfo/python-list