Date: Tue, 13 Jul 1999 17:40:08 +0900 From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> To: pe@student.lssu.edu Cc: freebsd-questions@FreeBSD.ORG, freebsd-alpha@FreeBSD.ORG Subject: Re: problem compiling Python Message-ID: <14218.64360.61857.88037Z@ett.sat.t.u-tokyo.ac.jp> In-Reply-To: In your message of "Mon, 12 Jul 1999 09:12:17 -0400 (EDT)" <Pine.GSO.4.05.9907120907310.20661-100000@student.lssu.edu> References: <Pine.GSO.4.05.9907120907310.20661-100000@student.lssu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
At Mon, 12 Jul 1999 09:12:17 -0400 (EDT),
System Admin. <pe@student.lssu.edu> wrote:
>
> Hi all,
> Is there anybody successfully compiled and installed Python-1.5.2
> on FreeBSD-3.2/Alpha? When I compiled and run make test everything pass
> except test_fcntl function. It seem to be the really important one that I
> need too. This is the output of the test:
>
> host# python test_fcntl.py
> Status from fnctl with O_NONBLOCK: 0
> struct.pack:
> '\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
> 000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
> 000\000\000\000\003\000\000\000'
> Traceback (innermost last):
> File "test_fcntl.py", line 30, in ?
> rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETLKW, lockdata)
> IOError: [Errno 22] Invalid argument
>
> Any trick to make this thing work? Please help!
>
> TIA
>
> pe'
>
>
> ------------------------------
> UNIX System Admin.
> Distributed Computing Services
> Lake Superior State University
> 650 W. Easterday Ave.
> Sault Ste. Marie. MI
> 49783 USA.
> ------------------------------
Try attached patch.
You may want to fix posixfile.py too.
--- test_fcntl.py.orig Tue Feb 23 13:13:37 1999
+++ test_fcntl.py Tue Jul 13 17:36:34 1999
@@ -17,9 +17,9 @@
print 'Status from fnctl with O_NONBLOCK: ', rv
if sys.platform in ('netbsd1',
- 'freebsd2', 'freebsd3',
+ 'freebsd2', 'freebsd3', 'freebsd4',
'bsdos2', 'bsdos3', 'bsdos4'):
- lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
+ lockdata = struct.pack('ixxxxixxxxihh', 0, 0, 0, FCNTL.F_WRLCK, 0)
elif sys.platform in ['aix3', 'aix4']:
lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
else:
/\ Hidetoshi Shimokawa
\/ simokawa@sat.t.u-tokyo.ac.jp
PGP public key: finger -l simokawa@sat.t.u-tokyo.ac.jp
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14218.64360.61857.88037Z>
