From owner-freebsd-questions Tue Jul 13 1:41:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gate.keisu.t.u-tokyo.ac.jp (ns06.t.u-tokyo.ac.jp [133.11.68.1]) by hub.freebsd.org (Postfix) with SMTP id DC24C1530C for ; Tue, 13 Jul 1999 01:41:11 -0700 (PDT) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: (qmail 53236 invoked from network); 13 Jul 1999 08:40:09 -0000 Received: from sylph.sat.t.u-tokyo.ac.jp (10.6.1.20) by ns06.t.u-tokyo.ac.jp with SMTP; 13 Jul 1999 08:40:09 -0000 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [10.6.1.30]) by sylph.sat.t.u-tokyo.ac.jp (Postfix) with ESMTP id 59EAE2DAA9; Tue, 13 Jul 1999 17:40:08 +0900 (JST) Received: from ett.sat.t.u-tokyo.ac.jp by ett.sat.t.u-tokyo.ac.jp (8.9.3/sat-V0.6) id RAA28668; Tue, 13 Jul 1999 17:40:08 +0900 (JST) Date: Tue, 13 Jul 1999 17:40:08 +0900 Message-ID: <14218.64360.61857.88037Z@ett.sat.t.u-tokyo.ac.jp> From: Hidetoshi Shimokawa To: pe@student.lssu.edu Cc: freebsd-questions@FreeBSD.ORG, freebsd-alpha@FreeBSD.ORG Subject: Re: problem compiling Python In-Reply-To: In your message of "Mon, 12 Jul 1999 09:12:17 -0400 (EDT)" References: User-Agent: Wanderlust/1.0.0 (Kokomo) SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) MULE XEmacs/21.2 (beta13) (Demeter) (i386-unknown-freebsd3.1) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX 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