develooper Front page | perl.perl5.porters | Postings from July 2001

[PATCH: perl@11238] dynixptx updates for osvers='4.5.2'

Thread Next
From:
Peter Prymmer
Date:
July 10, 2001 15:28
Subject:
[PATCH: perl@11238] dynixptx updates for osvers='4.5.2'
Message ID:
Pine.OSF.4.10.10107101519160.137455-100000@aspara.forte.com

Greetings,

I am not too sure about what has become of DYNIX/ptx since IBM bought
out Sequent, but I found the following patch necessary to get
perl@11238 to build on `uname -v`=V4.5.2 at least.

Files affected:

    MANIFEST                          # add new ext hint file
    ext/Time/HiRes/hints/dynixptx.pl  # hint similar to sco.pl
    hints/dynixptx.sh                 # expand osvers matching to 4.5.x

I note that this latter hints tweak does result in a "WHOA THERE!!!"
while running `sh Configure -des` like so:

 <sys/types.h> found.
 Hmm... You don't have Berkeley networking in libc.a...
 ...but you seem to believe that you have sockets.
 socketpair() NOT found.
 *** WHOA THERE!!! ***
     The recommended value for $d_sockpair on this machine was "define"!
     Keep the recommended value? [y]
 Checking the availability of certain socket constants...

But at least the compile can get through pp_sys.c now (indeed I found only
a single test "failure" in t/op/grent.t test #1 which I suppose is most
likely a problem with our local NIS/local group config peculiarities,
hence I do not propose to do anything about it in this patch).


diff -ruN perl_11238/MANIFEST perl/MANIFEST
--- perl_11238/MANIFEST	Mon Jul  9 07:09:38 2001
+++ perl/MANIFEST	Tue Jul 10 15:12:30 2001
@@ -542,6 +542,7 @@
 ext/Thread/unsync3.tx		Test thread implicit synchronisation
 ext/Thread/unsync4.tx		Test thread implicit synchronisation
 ext/Time/HiRes/Changes		Time::HiRes extension
+ext/Time/HiRes/hints/dynixptx.pl	Hint for Time::HiRes for named architecture
 ext/Time/HiRes/hints/sco.pl	Hints for Time::HiRes for named architecture
 ext/Time/HiRes/HiRes.pm		Time::HiRes extension
 ext/Time/HiRes/HiRes.t		Test for Time::HiRes
diff -ruN perl_11238/ext/Time/HiRes/hints/dynixptx.pl perl/ext/Time/HiRes/hints/dynixptx.pl
--- perl_11238/ext/Time/HiRes/hints/dynixptx.pl	Wed Dec 31 16:00:00 1969
+++ perl/ext/Time/HiRes/hints/dynixptx.pl	Tue Jul 10 15:09:24 2001
@@ -0,0 +1,5 @@
+# uname -v
+# V4.5.2
+# needs to explicitly link against libc to pull in usleep
+$self->{LIBS} = ['-lc'];
+
diff -ruN perl_11238/hints/dynixptx.sh perl/hints/dynixptx.sh
--- perl_11238/hints/dynixptx.sh	Mon Jul  9 07:10:19 2001
+++ perl/hints/dynixptx.sh	Tue Jul 10 15:15:31 2001
@@ -44,7 +44,7 @@
 # Jarkko Hietaniemi November 1998
 
 case "$osvers" in
-4.4*) # configure doesn't find sockets, as they're in libsocket, not libc
+4.[45]*) # configure doesn't find sockets, as they're in libsocket, not libc
         d_socket='define'
         d_oldsock='undef'
         d_sockpair='define'
End of Patch.

Peter Prymmer



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About