"SRV4? What's that?" You'll probably asking. I'll tell you: "It's an old Unix for old hardware."
So, my adventures in compiling Perl on this old peice of kit start with Perl 5.8.8:
`sh cflags "optimize='-O'" sv.o` -KPIC sv.c
CCCMD = /bin/cc -DPERL_CORE -c -I/usr/include -I/usr/ucbinc
+lude -O
"./pad.h", line 144: warning: no macro replacement within a string lit
+eral
"sv.c", line 2141: undefined symbol: undef
"sv.c", line 2182: undefined symbol: undef
"sv.c", line 2321: undefined symbol: undef
"sv.c", line 2435: undefined symbol: undef
"sv.c", line 2476: undefined symbol: undef
"sv.c", line 2608: undefined symbol: undef
"sv.c", line 2762: undefined symbol: undef
This is running as root, and pushing the built-in per-process memory ulimit to 32 megs of RAM. You have to do that just to get toke.c compiled.
Since it's old hardware, I pondered aloud in MonkChat about using older versions (since I was compiling this so I could compile OpenSSL and thus OpenSSH for $DAYJOB). I chose Perl 5.0005_04. It compiled as a user all the way through, but testing...
op/regexp...........FAILED tests 1, 5-10, 13-14, 18-21, 23-25, 27-28,
+33, 37-39,
42, 44-47, 51-53, 55, 58-61, 68-70, 75, 78, 87, 90, 97, 102-105, 108-
+111, 113,
124-125, 127-132, 134-141, 143-144, 152-153, 155-156, 158-160, 162-165
+, 175-176,
309-319, 322-329, 338-340, 342, 345, 347-348, 350-351, 354-362, 365-3
+68, 371-37
4, 377-378, 381-384, 387-388, 392, 398-399, 404, 406-407, 417-425, 428
+, 436-437,
440-441, 454, 456, 458, 463-464, 468-470, 472, 479-480, 485, 487-489,
+ 491
Failed 172/491 tests, 64.97% okay
op/regexp_noamp.....FAILED tests 1, 5-10, 13-14, 18-21, 23-25, 27-28,
+33, 37-39,
42, 44-47, 51-53, 55, 58-61, 68-70, 75, 78, 87, 90, 97, 102-105, 108-
+111, 113,
124-125, 127-132, 134-141, 143-144, 152-153, 155-156, 158-160, 162-165
+, 175-176,
309-319, 322-329, 338-340, 342, 345, 347-348, 350-351, 354-362, 365-3
+68, 371-37
4, 377-378, 381-384, 387-388, 392, 398-399, 404, 406-407, 417-425, 428
+, 436-437,
440-441, 454, 456, 458, 463-464, 468-470, 472, 479-480, 485, 487-489,
+ 491
Failed 172/491 tests, 64.97% okay
op/study............FAILED tests 3, 11-12, 14, 16-17, 22
Failed 7/24 tests, 70.83% okay
lib/db-btree.t 2 512 ?? ?? % ??
op/regexp.t 491 172 35.03% 1, 5-10, 13-14, 18-21, 2
+3-25, 27-
28, 33, 37-39, 42, 44-47
+, 51-53,
55, 58-61, 68-70, 75, 78
+, 87, 90,
97, 102-105, 108-111, 11
+3, 124-
125, 127-132, 134-141, 1
+43-144,
152-153, 155-156, 158-16
+0, 162-
165, 175-176, 309-319, 3
+22-329,
338-340, 342, 345, 347-3
+48, 350-
351, 354-362, 365-368, 3
+71-374,
377-378, 381-384, 387-38
+8, 392,
398-399, 404, 406-407, 4
+17-425,
428, 436-437, 440-441, 4
+54, 456,
458, 463-464, 468-470, 4
+72, 479-
480, 485, 487-489, 491
op/regexp_noamp 491 172 35.03% 1, 5-10, 13-14, 18-21, 2
+3-25, 27-
28, 33, 37-39, 42, 44-47
+, 51-53,
55, 58-61, 68-70, 75, 78
+, 87, 90,
97, 102-105, 108-111, 11
+3, 124-
125, 127-132, 134-141, 1
+43-144,
152-153, 155-156, 158-16
+0, 162-
165, 175-176, 309-319, 3
+22-329,
338-340, 342, 345, 347-3
+48, 350-
351, 354-362, 365-368, 3
+71-374,
377-378, 381-384, 387-38
+8, 392,
398-399, 404, 406-407, 4
+17-425,
428, 436-437, 440-441, 4
+54, 456,
458, 463-464, 468-470, 4
+72, 479-
480, 485, 487-489, 491
op/study.t 24 7 29.17% 3, 11-12, 14, 16-17, 22
Nope, that's not working.
After some mediation, I tried again, this time with Perl 5.004_05. It configured cleanly, compiled without problems, and tested 100% OK.
Insert "Whoa" here.
So, where do I go to send feedback?
--
$Stalag99{"URL"}="http://stalag99.net";
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.