Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

build on NeXTStep (PR#240)

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


kragen at pobox

Mar 17, 2000, 2:06 PM

Post #1 of 5 (94 views)
Permalink
build on NeXTStep (PR#240)

I'm building Python on NeXTStep; I've encountered three minor problems.

- importdl.c by default on NeXTStep allows linking with Objective-C
modules, which is cool. Unfortunately, properly supporting this
requires adding -ObjC to the cc command line in the Makefile.
- posixmodule.c doesn't #include anything that declares fsync() and
doesn't declare it itself, but tries to reference it. Adding a
declaration of fsync() fixes the problem.
- test_strftime and test_time fail.
test test_strftime failed -- Writing: 'Conflict for %j (julian day (001-366)):', expected: ''
I suspect this may be a platform bug. Here's some of the output,
which is 696 lines in full:
strftime test for Fri Mar 17 12:53:20 2000
Strftime test, platform: next3_3, Python version: 1.5.2
Conflict for %j (julian day (001-366)):
Expected 077, but got 076
Conflict for nonstandard '%c' format (near-asctime() format):
Expected Fri Mar 17 12:53:20 2000, but got Fri Mar 17 12:53:20 2000
Conflict for nonstandard '%x' format (%m/%d/%y %H:%M:%S):
Expected 03/17/00, but got Fri Mar 17 2000
Does not appear to support '%Z' format (time zone name)
Conflict for nonstandard '%D' format (mm/dd/yy):
Expected 03/17/00, but got ?
Conflict for nonstandard '%e' format (day of month as number, blank padded ( 0-31)):
Expected 17, but got ?
Conflict for nonstandard '%h' format (abbreviated month name):
Expected Mar, but got ?
Conflict for nonstandard '%k' format (hour, blank padded ( 0-23)):
Expected 12, but got ?
Conflict for nonstandard '%n' format (newline character):
Expected
, but got ?
Conflict for nonstandard '%r' format (%I:%M:%S %p):
Expected 12:53:20 PM, but got ?
Conflict for nonstandard '%R' format (%H:%M):
Expected 12:53, but got ?
Conflict for nonstandard '%s' format (seconds since the Epoch in UCT):
Expected 953326400, but got ?
Conflict for nonstandard '%t' format (tab character):
Expected , but got ?
Conflict for nonstandard '%T' format (%H:%M:%S):
Expected 12:53:20, but got ?
Conflict for nonstandard '%3y' format (year without century rendered using fieldwidth):
Expected 000, but got ?y
Conflict for %j (julian day (001-366)):
Expected 327, but got 326
Conflict for %W (week number of the year (Mon 1st)):
Expected 46, but got 47
Conflict for %j (julian day (001-366)):
Expected 328, but got 327
Conflict for %j (julian day (001-366)):
Expected 329, but got 328
Conflict for %j (julian day (001-366)):
Expected 330, but got 329

test test_time failed -- Writing: 'time.mktime(time.localtime(t)) <> t', expected: ''
(and that was all of the output from test_time. Presumably this is
related to the strftime bugs --- perhaps the mythical Y2K leap-year bug?)

I'm afraid I'm not sure what version of NeXTStep I'm on. 'arch'
reports 'hppa'; 'cc --version' reports '2.5.8'; 'uname -a' reports
'Command not found'.

I'm not trying to build a very sophisticated environment --- just the
defaults.

--
<kragen [at] pobox> Kragen Sitaker <http://www.pobox.com/~kragen/>
The Internet stock bubble didn't burst on 1999-11-08. Hurrah!
<URL:http://www.pobox.com/~kragen/bubble.html>
The power didn't go out on 2000-01-01 either. :)


guido at python

Mar 24, 2000, 8:03 AM

Post #2 of 5 (93 views)
Permalink
Re: build on NeXTStep (PR#240) [In reply to]

> I'm building Python on NeXTStep; I've encountered three minor problems.
>
> - importdl.c by default on NeXTStep allows linking with Objective-C
> modules, which is cool. Unfortunately, properly supporting this
> requires adding -ObjC to the cc command line in the Makefile.
> - posixmodule.c doesn't #include anything that declares fsync() and
> doesn't declare it itself, but tries to reference it. Adding a
> declaration of fsync() fixes the problem.
> - test_strftime and test_time fail.
> test test_strftime failed -- Writing: 'Conflict for %j (julian day (001-366)):', expected: ''
> I suspect this may be a platform bug. Here's some of the output,
> which is 696 lines in full:
[...]
> (and that was all of the output from test_time. Presumably this is
> related to the strftime bugs --- perhaps the mythical Y2K leap-year bug?)
>
> I'm afraid I'm not sure what version of NeXTStep I'm on. 'arch'
> reports 'hppa'; 'cc --version' reports '2.5.8'; 'uname -a' reports
> 'Command not found'.
>
> I'm not trying to build a very sophisticated environment --- just the
> defaults.

Kragen,

Can you send us some patches? We don't have a NextStep system around
to test any of this, and your description of the problem doesn't help
me to create fixes that will certainly work for you.

There's probably not much you can do about the strftime problem --
just don't use time.strftime()! :-)

Please read python.org/patches for info on how to submit patches.
Thanks for contributing!

--Guido van Rossum (home page: http://www.python.org/~guido/)


kragen at pobox

Mar 28, 2000, 10:43 AM

Post #3 of 5 (93 views)
Permalink
Re: build on NeXTStep (PR#240) [In reply to]

Guido writes:
> [Kragen wrote:]
> > I'm afraid I'm not sure what version of NeXTStep I'm on. 'arch'
> > reports 'hppa'; 'cc --version' reports '2.5.8'; 'uname -a' reports
> > 'Command not found'.

It's NeXTStep 3.3.

> Can you send us some patches? We don't have a NextStep system around
> to test any of this, and your description of the problem doesn't help
> me to create fixes that will certainly work for you.

I can send a patch for importdl.c; the right thing to do for this would
be to modify the Makefile to change the flags passed to the compiler to
include -ObjC, but I don't know how to do that. My solution was to
change a #define in the source to turn off the ability to import
Objective-C modules, which is obviously far from optimal --- thus my
failure to include a patch for this in the first email.

In posixmodule.c, which needs fsync() declared, I'm not sure where to
declare it. I can certainly supply a patch that works for NeXTStep
3.3, but I don't understand the rat's-nest of #ifdefs there well enough
to be sure it won't break compilation on some other platform, or even
another version of NeXTStep --- thus my failure to include a patch for
this in the first email.

So I can send patches for both of these, but I am not sure if I should.

> Please read python.org/patches for info on how to submit patches.

Thanks.

--
<kragen [at] pobox> Kragen Sitaker <http://www.pobox.com/~kragen/>
The Internet stock bubble didn't burst on 1999-11-08. Hurrah!
<URL:http://www.pobox.com/~kragen/bubble.html>
The power didn't go out on 2000-01-01 either. :)


guido at python

Mar 28, 2000, 12:39 PM

Post #4 of 5 (94 views)
Permalink
Re: build on NeXTStep (PR#240) [In reply to]

> It's NeXTStep 3.3.
>
> > Can you send us some patches? We don't have a NextStep system around
> > to test any of this, and your description of the problem doesn't help
> > me to create fixes that will certainly work for you.
>
> I can send a patch for importdl.c; the right thing to do for this would
> be to modify the Makefile to change the flags passed to the compiler to
> include -ObjC, but I don't know how to do that. My solution was to
> change a #define in the source to turn off the ability to import
> Objective-C modules, which is obviously far from optimal --- thus my
> failure to include a patch for this in the first email.
>
> In posixmodule.c, which needs fsync() declared, I'm not sure where to
> declare it. I can certainly supply a patch that works for NeXTStep
> 3.3, but I don't understand the rat's-nest of #ifdefs there well enough
> to be sure it won't break compilation on some other platform, or even
> another version of NeXTStep --- thus my failure to include a patch for
> this in the first email.
>
> So I can send patches for both of these, but I am not sure if I should.

Maybe we should just drop it? I don't think NextStep 3.3 has much
future or even much current use, does it? it's only supported for
historic reasons. If you get it to work, fine -- but I don't think
the general public would benefit much from adding NS 3.3 support...

Or am I wrong?

--Guido van Rossum (home page: http://www.python.org/~guido/)


guido at python

Mar 28, 2000, 12:41 PM

Post #5 of 5 (94 views)
Permalink
Re: build on NeXTStep (PR#240) [In reply to]

> It's NeXTStep 3.3.
>
> > Can you send us some patches? We don't have a NextStep system around
> > to test any of this, and your description of the problem doesn't help
> > me to create fixes that will certainly work for you.
>
> I can send a patch for importdl.c; the right thing to do for this would
> be to modify the Makefile to change the flags passed to the compiler to
> include -ObjC, but I don't know how to do that. My solution was to
> change a #define in the source to turn off the ability to import
> Objective-C modules, which is obviously far from optimal --- thus my
> failure to include a patch for this in the first email.
>
> In posixmodule.c, which needs fsync() declared, I'm not sure where to
> declare it. I can certainly supply a patch that works for NeXTStep
> 3.3, but I don't understand the rat's-nest of #ifdefs there well enough
> to be sure it won't break compilation on some other platform, or even
> another version of NeXTStep --- thus my failure to include a patch for
> this in the first email.
>
> So I can send patches for both of these, but I am not sure if I should.

Maybe we should just drop it? I don't think NextStep 3.3 has much
future or even much current use, does it? it's only supported for
historic reasons. If you get it to work, fine -- but I don't think
the general public would benefit much from adding NS 3.3 support...

Or am I wrong?

--Guido van Rossum (home page: http://www.python.org/~guido/)

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.