develooper Front page | perl.perl5.porters | Postings from March 2000

[ID 20000317.013] [PATCH perl-5.6.0-RC2 HINTS] The realConcurrent PowerMAX patch

Thread Previous
From:
Tom Horsley
Date:
March 17, 2000 09:00
Subject:
[ID 20000317.013] [PATCH perl-5.6.0-RC2 HINTS] The realConcurrent PowerMAX patch
Message ID:
200003171659.QAA21619@amber2.ccur.com
This patch is required to build on Concurrent PowerMAX OS 4.3.  This is
(I hope) the final patch for PowerMAX and supplants the previous one which
was [ID 20000317.004]. I no longer need to patch pp_sys.c.

The patch to the hints file gets rid of <sys/mode.h> which is apparently
something totally different than perl thinks it might be on PowerMAX. It
also defines the real values for netdb_host_type, netdb_name_type, and
netdb_hlen_type that match what the <netdb.h> file actually says on
PowerMAX. (I'm not sure I want to try and figure out why Configure gets the
wrong answer, but it comes up with a const type, then the compiler refuses
to accept a const type as the first arg to gethostbyaddr).

It is also unfortunate, but true, that this only builds using the new
compiler which hasn't yet been released. Something in the sv.c file inside
the "(void)SvIOK_only(sv);" macro is apparently so complicated that the old
compiler can't deal with it (although it doesn't look that compilcated when
I look at it :-). I've also submitted a bug report on the compiler.

*** hints/powerux.sh.orig	Tue Jul 20 13:17:58 1999
--- hints/powerux.sh	Fri Mar 17 10:39:05 2000
***************
*** 63,68 ****
--- 63,74 ----
  #
  i_ndbm='undef'
  
+ # I have no clude what perl thinks it wants <sys/mode.h> for, but if
+ # you include it in a program in PowerMAX without first including
+ # <sys/vnode.h> the code don't compile...
+ #
+ i_sysmode='undef'
+ 
  # There is a bug in memcmp (which I hope will be fixed soon) which sometimes
  # fails to provide the correct compare status (it is data dependant), so just
  # pretend there is no memcmp...
***************
*** 84,89 ****
--- 90,104 ----
  # abandon all hope that number of links will mean anything.
  #
  dont_use_nlink=define
+ 
+ # Configure comes up with the wrong type for these for some reason.  The
+ # pointers shouldn't have const in them. (And it looks like I have to
+ # provide netdb_hlen_type as well becuase when I predefine the others it
+ # comes up empty :-).
+ #
+ netdb_host_type='char *'
+ netdb_name_type='char *'
+ netdb_hlen_type='int'
  
  # Misc other flags that might be able to change, but I know these work right.
  #

--
Tom.Horsley@mail.ccur.com                \\\\      Will no one rid me of
Concurrent Computers, Ft. Lauderdale, FL    \\\\     this troublesome
Me: http://home.att.net/~Tom.Horsley/          \\\\     autoconf?
Project Vote Smart: http://www.vote-smart.org     \\\\    !!!!!

Thread Previous


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