Perl |
NetBSD-sun3x
Building Perl5.005_01 for NetBSD
119 22:45 tar zxf /pub/gnu/perl5.005_01.tar.gz
120 22:53 cd perl5.005_01
123 22:57 ./Configure -des -U d_setlocale
124 0:07 time make
127 5:34 cp -p malloc.c malloc.c-ooo
128 5:34 chmod +w malloc.c
126 5:32 vi malloc.c
132 5:34 time make
135 7:35 cp -p ext/POSIX/POSIX.xs ext/POSIX/POSIX.xs-ooo
137 7:36 chmod +w ext/POSIX/POSIX.xs
136 7:35 vi ext/POSIX/POSIX.xs
141 7:37 time make
142 8:30 make test
○ LONG_MAX が未定義なので、
`sh cflags libperl.a malloc.o` malloc.c
CCCMD = cc -DPERL_CORE -c -I/usr/local/include -O
malloc.c: In function `get_from_chain':
malloc.c:798: `LONG_MAX' undeclared (first use this function)
malloc.c:798: (Each undeclared identifier is reported only once
malloc.c:798: for each function it appears in.)
*** Error code 1
Stop.
180.985u 18.954s 3:41.44 90.2% 0+0k 533+143io 285pf+0w
○ malloc.c の一行目に書いてしまう。
malloc.c
1 # define LONG_MAX 0x7FFFFFFF
○次の何行かが少し気になる。
Making DB_File (dynamic)
Note (probably harmless): No library found for -ldb
Making NDBM_File (dynamic)
Note (probably harmless): No library found for -lndbm
Note (probably harmless): No library found for -ldbm
Note (probably harmless): No library found for -lucb
○ CHAR_MAX が未定義
POSIX.xs:2997: `CHAR_MAX' undeclared (first use this function)
POSIX.xs:2997: (Each undeclared identifier is reported only once
POSIX.xs:2997: for each function it appears in.)
*** Error code 1
Stop.
*** Error code 1
Stop.
5330.992u 603.628s 1:57:38.13 84.0% 0+0k 6798+3615io 4583pf+0w
○ 一行加えてしまう。
7:36:49/980801(...ml-making/perl5.005_01)> diff ext/POSIX/POSIX.xs-ooo ext/POSIX/POSIX.xs
0a1
> #define CHAR_MAX 0x7F
makoto@tateyama 7:37:04/980801(...ml-making/perl5.005_01)>
....
Everything is up to date. 'make test' to run test suite.
1451.486u 213.853s 29:52.69 92.8% 0+0k 1808+771io 2077pf+0w
○ make test だけで一時間くらいかかるが、一応大丈夫
makoto@tateyama 8:07:14/980801(...ml-making/perl5.005_01)>
lib/gdbm..........skipping test on this platform
lib/odbm..........skipping test on this platform
lib/thread........skipping test on this platform
All tests successful.
u=19.27 s=20.2 cu=1185.11 cs=326.49 scripts=182 tests=6340
makoto@tateyama 9:04:15/980801(...ml-making/perl5.005_01)>
○ make install に 1:21 もかかる。
そう言えば、次のようなところで一回 y を押す必要がある。
(ので本当の時間は少しだけ短かかったかも知れない)
ln /usr/local/bin/perl5.00501 /usr/local/bin/perl
Many scripts expect perl to be installed as /usr/bin/perl.
Do you wish to have /usr/bin/perl be the same as
/usr/local/bin/perl? [y] y
unlink /usr/bin/perl
unlink /usr/local/bin/a2p