sun-3x

Perl on NetBSD/PowerPC

perl5.005_03 だと簡単に入る。


pkgsrc/lang/perl5 を使ったら、簡単に入ってしまった。(perl5.004_04)
ただし setlocale がうるさいので、少し変更した。

--- lang/perl5/Makefile.orig	Fri Feb  5 21:31:34 1999
+++ lang/perl5/Makefile	Sat Feb 20 11:18:30 1999
@@ -14,7 +14,7 @@
 HAS_CONFIGURE=		yes
 CONFIGURE_ENV+=		PREFIX=${PREFIX}
 CONFIGURE_SCRIPT=	Configure
-CONFIGURE_ARGS+=	-sde -Dprefix=${PREFIX} \
+CONFIGURE_ARGS+=	-sde -U d_setlocale -Dprefix=${PREFIX}  -Dd_bincompat3=undef \
 			-Darchname=${MACHINE_ARCH}-netbsd -Dusemymalloc=false
 MAKE_ENV+=		LD_LIBRARY_PATH=${WRKSRC}
 

いままでは、それぞれ次の理由でうまく行っていなかった。
perl5.005_52  regcomp.c:876: `UINT16_MAX' undeclared (first use in this function)
perl5.005_01  /usr/lib/crt0.o(.text+0xd8): undefined reference to `main'

perl5.004_04 doio.c:1381: incompatible type for argument 4 of `semctl'
perl5.004_01 doio.c:1381: incompatible type for argument 4 of `semctl'

Perl5.005_01
cd Perl5.005_01
./Configure -des -U d_setlocale -D ccflags=O3
time make
.........
cc -c  -O3 -O     -DVERSION=\"a5\"  -DXS_VERSION=\"a5\" -DPIC -fPIC -I../..  B.c
Running Mkbootstrap for B ()
chmod 644 B.bs
LD_RUN_PATH="" cc -o ../../lib/auto/B/B.so  -Bforcearchive -Bshareable  -L/usr/local/lib B.o     
/usr/lib/crt0.o: In function `_start':
/usr/lib/crt0.o(.text+0xd8): undefined reference to `main'
collect2: ld returned 1 exit status
cc: file path prefix `shareable' never used
*** Error code 1

Stop.
*** Error code 1

Stop.
254.262u 58.735s 6:19.65 82.4%  0+0k 252+2875io 298pf+0w

perl5.005_52
`sh cflags libperl.a regcomp.o` regcomp.c CCCMD = cc -DPERL_CORE -c -O regcomp.c: In function `study_chunk': regcomp.c:275: `INT16_MAX' undeclared (first use in this function) regcomp.c:275: (Each undeclared identifier is reported only once regcomp.c:275: for each function it appears in.) regcomp.c:291: `UINT8_MAX' undeclared (first use in this function) regcomp.c:327: `INT32_MAX' undeclared (first use in this function) regcomp.c:327: `UINT16_MAX' undeclared (first use in this function) regcomp.c: In function `Perl_pregcomp': regcomp.c:876: `UINT16_MAX' undeclared (first use in this function) regcomp.c: In function `regpiece': regcomp.c:1475: `INT16_MAX' undeclared (first use in this function) *** Error code 1 Stop.
perl5.004_01
./Configure -des -U d_setlocale -D ccflags=-O3 time make .... `sh cflags libperl.a doio.o` doio.c CCCMD = cc -DPERL_CORE -c -O3 -O doio.c: In function `Perl_do_ipcctl': doio.c:1381: incompatible type for argument 4 of `semctl' doio.c:1436: incompatible type for argument 4 of `semctl' *** Error code 1 Stop. 159.634u 24.886s 3:19.88 92.3% 0+0k 22+1298io 10pf+0w