File: perlhpux.html

package info (click to toggle)
perl-doc-html 5.10.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 33,152 kB
  • ctags: 24,035
  • sloc: makefile: 10
file content (807 lines) | stat: -rw-r--r-- 61,832 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>perlhpux - perldoc.perl.org</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta http-equiv="Content-Language" content="en-gb">
  <link href="static/css-20090810.css" rel="stylesheet" rev="stylesheet" type="text/css" media="screen">
</head>

<body onLoad="perldoc.startup();" onPageShow="if (event.persisted) perldoc.startup();">
    <div id="page">
      
      <div id="header">
	<div id="homepage_link">
	  <a href="index.html"></a>
	</div>
        <div id="search_form">
          <form action="search.html" method="GET" id="search">
            <input type="text" name="q" id="search_box" alt="Search">
          </form>
        </div>
      </div>
      
      <div id="body">
        <div id="left_column">
          <div class="side_group">
            <div class="side_panel doc_panel">
              <p>Manual</p>
              <ul>
                <li><a href="index-overview.html">Overview</a>
                <li><a href="index-tutorials.html">Tutorials</a>
                <li><a href="index-faq.html">FAQs</a>
                <li><a href="index-history.html">History / Changes</a>
                <li><a href="index-licence.html">License</a>
              </ul>
            </div>
            <div class="side_panel doc_panel">
              <p>Reference</p>
              <ul>
                <li><a href="index-language.html">Language</a>
                <li><a href="index-functions.html">Functions</a>
                <li><a href="perlop.html">Operators</a>
                <li><a href="perlvar.html">Special Variables</a>
                <li><a href="index-pragmas.html">Pragmas</a>
                <li><a href="index-utilities.html">Utilities</a>
                <li><a href="index-internals.html">Internals</a></li>
                <li><a href="index-platforms.html">Platform Specific</a>
              </ul>
            </div>
            <div class="side_panel doc_panel">
              <p>Modules</p>
              <ul>
		<li>
		
                
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		
                  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		
                  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		
                  
		
                  
		    
		  
		
                  
		
                  
		
		
                    <a href="index-modules-A.html">A</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-B.html">B</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-C.html">C</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-D.html">D</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-E.html">E</a>
                    
                      
                        <li>
                      
                    
                
                    <a href="index-modules-F.html">F</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-G.html">G</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-H.html">H</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-I.html">I</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-L.html">L</a>
                    
                      
                        <li>
                      
                    
                
                    <a href="index-modules-M.html">M</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-N.html">N</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-O.html">O</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-P.html">P</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-S.html">S</a>
                    
                      
                        <li>
                      
                    
                
                    <a href="index-modules-T.html">T</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-U.html">U</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-X.html">X</a>
                    
                
              </ul>
            </div>
          </div>
          <div class="side_group">
            <div class="side_panel links_panel">
              <p>News / Blogs</p>
              <ul>
        <li><a href="http://perlbuzz.com">Perl Buzz</a></li>
        <li><a href="http://ironman.enlightenedperl.org">Perl Iron Man</a></li>
        <li><a href="http://perlsphere.net">Perlsphere</a></li>
        <li><a href="http://planet.perl.org">Planet Perl</a></li>
	<li><a href="http://news.perlfoundation.org/">TPF news</a></li>
        <li><a href="http://use.perl.org">Use Perl</a></li>
              </ul>
            </div>            
            <div class="side_panel links_panel">
              <p>See also</p>
              <ul>
        <li><a href="http://search.cpan.org">CPAN</a></li>
        <li><a href="http://www.perl.org">Perl.org</a></li>
        <li><a href="http://www.perl.com">Perl.com</a></li>
        <li><a href="http://www.perlfoundation.org/perl5/index.cgi">Perl 5 Wiki</a></li>
        <li><a href="http://jobs.perl.org">Perl Jobs</a></li>
        <li><a href="http://www.pm.org">Perl Mongers</a></li>
        <li><a href="http://www.perlmonks.org">Perl Monks</a></li>
              </ul>
            </div>
            <div class="side_panel links_panel">
              <p>Contact</p>
              <ul>
                <li><a href="http://perl.jonallen.info">Site designed and maintained by Jon&nbsp;Allen&nbsp;(JJ)</a>
                <li><a href="http://perl.jonallen.info">http://perl.jonallen.info</a>
              </ul>
              <ul>
                <li><a href="http://perl.jonallen.info/projects/perldoc">View the project page and FAQs</a>
              </ul>
            </div>
          </div>
        </div>
        <div id="centre_column">
          <div id="content_header">
            <div id="title_bar">
              <div id="page_name">
                <h1>perlhpux</h1>
              </div>
              <div id="perl_version">
                Perl 5 version 10.1 documentation
              </div>
              <div id="page_links">
                <a href="#" onClick="toolbar.goToTop();return false;">Go to top</a>
		
                  &bull; <a href="#" id="page_index_toggle">Show page index</a>
		
		
              </div>
            </div>
            <div id="breadcrumbs">
                
    <a href="index.html">Home</a> &gt;
    
      
        <a href="index-platforms.html">Platform specific</a> &gt;
      
    
    perlhpux
  

            </div>
          </div>
          <div id="content_body">
	    <!--[if lt IE 7]>
 <div class="noscript">
   <p>
     <strong>It looks like you're using Internet Explorer 6. This is a very old
     browser which does not offer full support for modern websites.</strong>
   </p>
   <p>
     Unfortunately this means that this website will not work on
     your computer.
   </p>
   <p>
     Don't miss out though! To view the site (and get a better experience from
     many other websites), simply upgrade to
     <a href="http://www.microsoft.com/windows/Internet-explorer/default.aspx">Internet
Explorer 8</a>
     or download an alternative browser such as
     <a href="http://www.mozilla.com/en-US/firefox/firefox.html">Firefox</a>,
     <a href="http://www.apple.com/safari/download/">Safari</a>, or
     <a href="http://www.google.co.uk/chrome">Google Chrome</a>.
   </p>
   <p>
     All of these browsers are free. If you're using a PC at work, you may
     need to contact your IT administrator.
   </p>
 </div>
<![endif]-->
	    <noscript>
	      <div class="noscript">
	      <p>
                <strong>Please note: Many features of this site require JavaScript. You appear to have JavaScript disabled,
	        or are running a non-JavaScript capable web browser.</strong>
	      </p>
	      <p>
		To get the best experience, please enable JavaScript or download a modern web browser such as <a href="http://www.microsoft.com/windows/Internet-explorer/default.aspx">Internet Explorer 8</a>, <a href="http://www.mozilla.com/en-US/firefox/firefox.html">Firefox</a>, <a href="http://www.apple.com/safari/download/">Safari</a>, or <a href="http://www.google.co.uk/chrome">Google Chrome</a>.
              </p>
	      </div>
	    </noscript>
	    <div id="from_search"></div>
            <h1>perlhpux</h1>


  <!--    -->
<ul><li><a href="#NAME">NAME</a><li><a href="#DESCRIPTION">DESCRIPTION</a><ul><li><a href="#Using-perl-as-shipped-with-HP-UX">Using perl as shipped with HP-UX</a><li><a href="#Using-perl-from-HP's-porting-centre">Using perl from HP's porting centre</a><li><a href="#Compiling-Perl-5-on-HP-UX">Compiling Perl 5 on HP-UX</a><li><a href="#PA-RISC">PA-RISC</a><li><a href="#Portability-Between-PA-RISC-Versions">Portability Between PA-RISC Versions</a><li><a href="#PA-RISC-1.0">PA-RISC 1.0</a><li><a href="#PA-RISC-1.1">PA-RISC 1.1</a><li><a href="#PA-RISC-2.0">PA-RISC 2.0</a><li><a href="#Itanium-Processor-Family-(IPF)-and-HP-UX">Itanium Processor Family (IPF) and HP-UX</a><li><a href="#Itanium%2c-Itanium-2-%26-Madison-6">Itanium, Itanium 2 & Madison 6</a><li><a href="#HP-UX-versions">HP-UX versions</a><li><a href="#Building-Dynamic-Extensions-on-HP-UX">Building Dynamic Extensions on HP-UX</a><li><a href="#The-HP-ANSI-C-Compiler">The HP ANSI C Compiler</a><li><a href="#The-GNU-C-Compiler">The GNU C Compiler</a><li><a href="#Using-Large-Files-with-Perl-on-HP-UX">Using Large Files with Perl on HP-UX</a><li><a href="#Threaded-Perl-on-HP-UX">Threaded Perl on HP-UX</a><li><a href="#64-bit-Perl-on-HP-UX">64-bit Perl on HP-UX</a><li><a href="#Oracle-on-HP-UX">Oracle on HP-UX</a><li><a href="#GDBM-and-Threads-on-HP-UX">GDBM and Threads on HP-UX</a><li><a href="#NFS-filesystems-and-utime(2)-on-HP-UX">NFS filesystems and utime(2) on HP-UX</a><li><a href="#perl--P-and-%2f%2f-and-HP-UX">perl -P and // and HP-UX</a><li><a href="#HP-UX-Kernel-Parameters-(maxdsiz)-for-Compiling-Perl">HP-UX Kernel Parameters (maxdsiz) for Compiling Perl</a></ul><li><a href="#nss_delete-core-dump-from-op%2fpwent-or-op%2fgrent">nss_delete core dump from op/pwent or op/grent</a><li><a href="#Miscellaneous">Miscellaneous</a><li><a href="#AUTHOR">AUTHOR</a><li><a href="#DATE">DATE</a></ul><a name="NAME"></a><h1>NAME</h1>
<p>README.hpux - Perl version 5 on Hewlett-Packard Unix (HP-UX) systems</p>
<a name="DESCRIPTION"></a><h1>DESCRIPTION</h1>
<p>This document describes various features of HP&#39;s Unix operating system
(HP-UX) that will affect how Perl version 5 (hereafter just Perl) is
compiled and/or runs.</p>
<a name="Using-perl-as-shipped-with-HP-UX"></a><h2>Using perl as shipped with HP-UX</h2>
<p>Application release September 2001, HP-UX 11.00 is the first to ship
with Perl. By the time it was perl-5.6.1 in /opt/perl. The first
occurrence is on CD 5012-7954 and can be installed using</p>
<pre class="verbatim"><ol><li>  swinstall -s /cdrom perl</li></ol></pre><p>assuming you have mounted that CD on /cdrom. In this version the
following modules were installed:</p>
<pre class="verbatim"><ol><li>  ActivePerl::DocTools-0.04   HTML::Parser-3.19   XML::DOM-1.25</li><li>  Archive::Tar-0.072          HTML::Tagset-3.03   XML::Parser-2.27</li><li>  Compress::Zlib-1.08         MIME::Base64-2.11   XML::Simple-1.05</li><li>  Convert::ASN1-0.10          Net-1.07            XML::XPath-1.09</li><li>  Digest::MD5-2.11            PPM-2.1.5           XML::XSLT-0.32</li><li>  File::CounterFile-0.12      SOAP::Lite-0.46     libwww-perl-5.51</li><li>  Font::AFM-1.18              Storable-1.011      libxml-perl-0.07</li><li>  HTML-Tree-3.11              URI-1.11            perl-ldap-0.23</li></ol></pre><p>That build was a portable hppa-1.1 multithread build that supports large
files compiled with gcc-2.9-hppa-991112.</p>
<p>If you perform a new installation, then (a newer) Perl will be installed
automatically.  Preinstalled HP-UX systems now slao have more recent versions
of Perl and the updated modules.</p>
<p>The official (threaded) builds from HP, as they are shipped on the
Application DVD/CD&#39;s are available on
<a href="http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL">http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL</a>
for both PA-RISC and IPF (Itanium Processor Family). They are built
with the HP ANSI-C compiler by ActiveState.</p>
<p>To see what version is included on the DVD (assumed here to be mounted
on /cdrom), issue this command:</p>
<pre class="verbatim"><ol><li>  # swlist -s /cdrom perl</li><li>  # perl           D.5.8.8.B  5.8.8 Perl Programming Language</li><li>    perl.Perl5-32  D.5.8.8.B  32-bit 5.8.8 Perl Programming Language with Extensions</li><li>    perl.Perl5-64  D.5.8.8.B  64-bit 5.8.8 Perl Programming Language with Extensions</li></ol></pre><a name="Using-perl-from-HP's-porting-centre"></a><h2>Using perl from HP&#39;s porting centre</h2>
<p>HP porting centre tries very hard to keep up with customer demand and
release updates from the Open Source community. Having precompiled
Perl binaries available is obvious.</p>
<p>The HP porting centres are limited in what systems they are allowed
to port to and they usually choose the two most recent OS versions
available. This means that at the moment of writing, there are only
HP-UX 11.11 (pa-risc 2.0) and HP-UX 11.23 (Itanium 2) ports available
on the porting centres.</p>
<p>HP has asked the porting centre to move Open Source binaries
from /opt to /usr/local, so binaries produced since the start
of July 2002 are located in /usr/local.</p>
<p>One of HP porting centres URL&#39;s is <a href="http://hpux.connect.org.uk/">http://hpux.connect.org.uk/</a>
The port currently available is built with GNU gcc.</p>
<a name="Compiling-Perl-5-on-HP-UX"></a><h2>Compiling Perl 5 on HP-UX</h2>
<p>When compiling Perl, you must use an ANSI C compiler.  The C compiler
that ships with all HP-UX systems is a K&amp;R compiler that should only be
used to build new kernels.</p>
<p>Perl can be compiled with either HP&#39;s ANSI C compiler or with gcc.  The
former is recommended, as not only can it compile Perl with no
difficulty, but also can take advantage of features listed later that
require the use of HP compiler-specific command-line flags.</p>
<p>If you decide to use gcc, make sure your installation is recent and
complete, and be sure to read the Perl INSTALL file for more gcc-specific
details.</p>
<a name="PA-RISC"></a><h2>PA-RISC</h2>
<p>HP&#39;s HP9000 Unix systems run on HP&#39;s own Precision Architecture
(PA-RISC) chip.  HP-UX used to run on the Motorola MC68000 family of
chips, but any machine with this chip in it is quite obsolete and this
document will not attempt to address issues for compiling Perl on the
Motorola chipset.</p>
<p>The version of PA-RISC at the time of this document&#39;s last update is 2.0,
which is also the last there will be. HP PA-RISC systems are usually
refered to with model description &quot;HP 9000&quot;. The last CPU in this series
is the PA-8900.  Support for PA-RISC architectured machines officially
ends as shown in the following table:</p>
<pre class="verbatim"><ol><li>   PA-RISC End-of-Life Roadmap</li><li> +--------+----------------+----------------+-----------------+</li><li> | HP9000 | Superdome      | PA-8700        | Spring 2011     |</li><li> | 4-128  |                | PA-8800/sx1000 | Summer 2012     |</li><li> | cores  |                | PA-8900/sx1000 | 2014            |</li><li> |        |                | PA-8900/sx2000 | 2015            |</li><li> +--------+----------------+----------------+-----------------+</li><li> | HP9000 | rp7410, rp8400 | PA-8700        | Spring 2011     |</li><li> | 2-32   | rp7420, rp8420 | PA-8800/sx1000 | 2012            |</li><li> | cores  | rp7440, rp8440 | PA-8900/sx1000 | Autumn 2013     |</li><li> |        |                | PA-8900/sx2000 | 2015            |</li><li> +--------+----------------+----------------+-----------------+</li><li> | HP9000 | rp44x0         | PA-8700        | Spring 2011     |</li><li> | 1-8    |                | PA-8800/rp44x0 | 2012            |</li><li> | cores  |                | PA-8900/rp44x0 | 2014            |</li><li> +--------+----------------+----------------+-----------------+</li><li> | HP9000 | rp34x0         | PA-8700        | Spring 2011     |</li><li> | 1-4    |                | PA-8800/rp34x0 | 2012            |</li><li> | cores  |                | PA-8900/rp34x0 | 2014            |</li><li> +--------+----------------+----------------+-----------------+</li></ol></pre><p>From <a href="http://www.hp.com/products1/evolution/9000/eol_announcement.html">http://www.hp.com/products1/evolution/9000/eol_announcement.html</a>:</p>
<pre class="verbatim"><ol><li> The last order date for HP9000 PA-RISC systems is planned for</li><li> December 31, 2008 and ship date of April 1, 2009. Operating system</li><li> releases for HP-UX will continue shipping past the HP9000 systems</li><li> last order date.</li></ol></pre><p>A complete list of models at the time the OS was built is in the file
/usr/sam/lib/mo/sched.models. The first column corresponds to the last
part of the output of the &quot;model&quot; command.  The second column is the
PA-RISC version and the third column is the exact chip type used.
(Start browsing at the bottom to prevent confusion ;-)</p>
<pre class="verbatim"><ol><li>  # model</li><li>  9000/800/L1000-44</li><li>  # grep L1000-44 /usr/sam/lib/mo/sched.models</li><li>  L1000-44        2.0     PA8500</li></ol></pre><a name="Portability-Between-PA-RISC-Versions"></a><h2>Portability Between PA-RISC Versions</h2>
<p>An executable compiled on a PA-RISC 2.0 platform will not execute on a
PA-RISC 1.1 platform, even if they are running the same version of
HP-UX.  If you are building Perl on a PA-RISC 2.0 platform and want that
Perl to also run on a PA-RISC 1.1, the compiler flags +DAportable and
+DS32 should be used.</p>
<p>It is no longer possible to compile PA-RISC 1.0 executables on either
the PA-RISC 1.1 or 2.0 platforms.  The command-line flags are accepted,
but the resulting executable will not run when transferred to a PA-RISC
1.0 system.</p>
<a name="PA-RISC-1.0"></a><h2>PA-RISC 1.0</h2>
<p>The original version of PA-RISC, HP no longer sells any system with this chip.</p>
<p>The following systems contained PA-RISC 1.0 chips:</p>
<pre class="verbatim"><ol><li>  <span class="n">600</span><span class="cm">,</span> <span class="n">635</span><span class="cm">,</span> <span class="n">645</span><span class="cm">,</span> <span class="n">808</span><span class="cm">,</span> <span class="n">815</span><span class="cm">,</span> <span class="n">822</span><span class="cm">,</span> <span class="n">825</span><span class="cm">,</span> <span class="n">832</span><span class="cm">,</span> <span class="n">834</span><span class="cm">,</span> <span class="n">835</span><span class="cm">,</span> <span class="n">840</span><span class="cm">,</span> <span class="n">842</span><span class="cm">,</span> <span class="n">845</span><span class="cm">,</span> <span class="n">850</span><span class="cm">,</span></li><li>  <span class="n">852</span><span class="cm">,</span> <span class="n">855</span><span class="cm">,</span> <span class="n">860</span><span class="cm">,</span> <span class="n">865</span><span class="cm">,</span> <span class="n">870</span><span class="cm">,</span> <span class="n">890</span></li></ol></pre><a name="PA-RISC-1.1"></a><h2>PA-RISC 1.1</h2>
<p>An upgrade to the PA-RISC design, it shipped for many years in many different
system.</p>
<p>The following systems contain with PA-RISC 1.1 chips:</p>
<pre class="verbatim"><ol><li>  <span class="n">705</span><span class="cm">,</span> <span class="n">710</span><span class="cm">,</span> <span class="n">712</span><span class="cm">,</span> <span class="n">715</span><span class="cm">,</span> <span class="n">720</span><span class="cm">,</span> <span class="n">722</span><span class="cm">,</span> <span class="n">725</span><span class="cm">,</span> <span class="n">728</span><span class="cm">,</span> <span class="n">730</span><span class="cm">,</span> <span class="n">735</span><span class="cm">,</span> <span class="n">742</span><span class="cm">,</span> <span class="n">743</span><span class="cm">,</span> <span class="n">744</span><span class="cm">,</span> <span class="n">745</span><span class="cm">,</span></li><li>  <span class="n">747</span><span class="cm">,</span> <span class="n">750</span><span class="cm">,</span> <span class="n">755</span><span class="cm">,</span> <span class="n">770</span><span class="cm">,</span> <span class="n">777</span><span class="cm">,</span> <span class="n">778</span><span class="cm">,</span> <span class="n">779</span><span class="cm">,</span> <span class="n">800</span><span class="cm">,</span> <span class="n">801</span><span class="cm">,</span> <span class="n">803</span><span class="cm">,</span> <span class="n">806</span><span class="cm">,</span> <span class="n">807</span><span class="cm">,</span> <span class="n">809</span><span class="cm">,</span> <span class="n">811</span><span class="cm">,</span></li><li>  <span class="n">813</span><span class="cm">,</span> <span class="n">816</span><span class="cm">,</span> <span class="n">817</span><span class="cm">,</span> <span class="n">819</span><span class="cm">,</span> <span class="n">821</span><span class="cm">,</span> <span class="n">826</span><span class="cm">,</span> <span class="n">827</span><span class="cm">,</span> <span class="n">829</span><span class="cm">,</span> <span class="n">831</span><span class="cm">,</span> <span class="n">837</span><span class="cm">,</span> <span class="n">839</span><span class="cm">,</span> <span class="n">841</span><span class="cm">,</span> <span class="n">847</span><span class="cm">,</span> <span class="n">849</span><span class="cm">,</span></li><li>  <span class="n">851</span><span class="cm">,</span> <span class="n">856</span><span class="cm">,</span> <span class="n">857</span><span class="cm">,</span> <span class="n">859</span><span class="cm">,</span> <span class="n">867</span><span class="cm">,</span> <span class="n">869</span><span class="cm">,</span> <span class="n">877</span><span class="cm">,</span> <span class="n">887</span><span class="cm">,</span> <span class="n">891</span><span class="cm">,</span> <span class="n">892</span><span class="cm">,</span> <span class="n">897</span><span class="cm">,</span> <span class="w">A180</span><span class="cm">,</span> <span class="w">A180C</span><span class="cm">,</span></li><li>  <span class="w">B115</span><span class="cm">,</span> <span class="w">B120</span><span class="cm">,</span> <span class="w">B132L</span><span class="cm">,</span> <span class="w">B132L</span>+<span class="cm">,</span> <span class="w">B160L</span><span class="cm">,</span> <span class="w">B180L</span><span class="cm">,</span> <span class="w">C100</span><span class="cm">,</span> <span class="w">C110</span><span class="cm">,</span> <span class="w">C115</span><span class="cm">,</span> <span class="w">C120</span><span class="cm">,</span></li><li>  <span class="w">C160L</span><span class="cm">,</span> <span class="w">D200</span><span class="cm">,</span> <span class="w">D210</span><span class="cm">,</span> <span class="w">D220</span><span class="cm">,</span> <span class="w">D230</span><span class="cm">,</span> <span class="w">D250</span><span class="cm">,</span> <span class="w">D260</span><span class="cm">,</span> <span class="w">D310</span><span class="cm">,</span> <span class="w">D320</span><span class="cm">,</span> <span class="w">D330</span><span class="cm">,</span> <span class="w">D350</span><span class="cm">,</span></li><li>  <span class="w">D360</span><span class="cm">,</span> <span class="w">D410</span><span class="cm">,</span> <span class="w">DX0</span><span class="cm">,</span> <span class="w">DX5</span><span class="cm">,</span> <span class="w">DXO</span><span class="cm">,</span> <span class="w">E25</span><span class="cm">,</span> <span class="w">E35</span><span class="cm">,</span> <span class="w">E45</span><span class="cm">,</span> <span class="w">E55</span><span class="cm">,</span> <span class="w">F10</span><span class="cm">,</span> <span class="w">F20</span><span class="cm">,</span> <span class="w">F30</span><span class="cm">,</span> <span class="w">G30</span><span class="cm">,</span></li><li>  <span class="w">G40</span><span class="cm">,</span> <span class="w">G50</span><span class="cm">,</span> <span class="w">G60</span><span class="cm">,</span> <span class="w">G70</span><span class="cm">,</span> <span class="w">H20</span><span class="cm">,</span> <span class="w">H30</span><span class="cm">,</span> <span class="w">H40</span><span class="cm">,</span> <span class="w">H50</span><span class="cm">,</span> <span class="w">H60</span><span class="cm">,</span> <span class="w">H70</span><span class="cm">,</span> <span class="w">I30</span><span class="cm">,</span> <span class="w">I40</span><span class="cm">,</span> <span class="w">I50</span><span class="cm">,</span> <span class="w">I60</span><span class="cm">,</span></li><li>  <span class="w">I70</span><span class="cm">,</span> <span class="w">J200</span><span class="cm">,</span> <span class="w">J210</span><span class="cm">,</span> <span class="w">J210XC</span><span class="cm">,</span> <span class="w">K100</span><span class="cm">,</span> <span class="w">K200</span><span class="cm">,</span> <span class="w">K210</span><span class="cm">,</span> <span class="w">K220</span><span class="cm">,</span> <span class="w">K230</span><span class="cm">,</span> <span class="w">K400</span><span class="cm">,</span> <span class="w">K410</span><span class="cm">,</span></li><li>  <span class="w">K420</span><span class="cm">,</span> <span class="w">S700i</span><span class="cm">,</span> <span class="w">S715</span><span class="cm">,</span> <span class="w">S744</span><span class="cm">,</span> <span class="w">S760</span><span class="cm">,</span> <span class="w">T500</span><span class="cm">,</span> <span class="w">T520</span></li></ol></pre><a name="PA-RISC-2.0"></a><h2>PA-RISC 2.0</h2>
<p>The most recent upgrade to the PA-RISC design, it added support for
64-bit integer data.</p>
<p>As of the date of this document&#39;s last update, the following systems
contain PA-RISC 2.0 chips:</p>
<pre class="verbatim"><ol><li>  <span class="n">700</span><span class="cm">,</span> <span class="n">780</span><span class="cm">,</span> <span class="n">781</span><span class="cm">,</span> <span class="n">782</span><span class="cm">,</span> <span class="n">783</span><span class="cm">,</span> <span class="n">785</span><span class="cm">,</span> <span class="n">802</span><span class="cm">,</span> <span class="n">804</span><span class="cm">,</span> <span class="n">810</span><span class="cm">,</span> <span class="n">820</span><span class="cm">,</span> <span class="n">861</span><span class="cm">,</span> <span class="n">871</span><span class="cm">,</span> <span class="n">879</span><span class="cm">,</span> <span class="n">889</span><span class="cm">,</span></li><li>  <span class="n">893</span><span class="cm">,</span> <span class="n">895</span><span class="cm">,</span> <span class="n">896</span><span class="cm">,</span> <span class="n">898</span><span class="cm">,</span> <span class="n">899</span><span class="cm">,</span> <span class="w">A400</span><span class="cm">,</span> <span class="w">A500</span><span class="cm">,</span> <span class="w">B1000</span><span class="cm">,</span> <span class="w">B2000</span><span class="cm">,</span> <span class="w">C130</span><span class="cm">,</span> <span class="w">C140</span><span class="cm">,</span> <span class="w">C160</span><span class="cm">,</span></li><li>  <span class="w">C180</span><span class="cm">,</span> <span class="w">C180</span>+<span class="cm">,</span> <span class="w">C180</span>-<span class="w">XP</span><span class="cm">,</span> <span class="w">C200</span>+<span class="cm">,</span> <span class="w">C400</span>+<span class="cm">,</span> <span class="w">C3000</span><span class="cm">,</span> <span class="w">C360</span><span class="cm">,</span> <span class="w">C3600</span><span class="cm">,</span> <span class="w">CB260</span><span class="cm">,</span> <span class="w">D270</span><span class="cm">,</span></li><li>  <span class="w">D280</span><span class="cm">,</span> <span class="w">D370</span><span class="cm">,</span> <span class="w">D380</span><span class="cm">,</span> <span class="w">D390</span><span class="cm">,</span> <span class="w">D650</span><span class="cm">,</span> <span class="w">J220</span><span class="cm">,</span> <span class="w">J2240</span><span class="cm">,</span> <span class="w">J280</span><span class="cm">,</span> <span class="w">J282</span><span class="cm">,</span> <span class="w">J400</span><span class="cm">,</span> <span class="w">J410</span><span class="cm">,</span></li><li>  <span class="w">J5000</span><span class="cm">,</span> <span class="w">J5500XM</span><span class="cm">,</span> <span class="w">J5600</span><span class="cm">,</span> <span class="w">J7000</span><span class="cm">,</span> <span class="w">J7600</span><span class="cm">,</span> <span class="w">K250</span><span class="cm">,</span> <span class="w">K260</span><span class="cm">,</span> <span class="w">K260</span>-<span class="w">EG</span><span class="cm">,</span> <span class="w">K270</span><span class="cm">,</span> <span class="w">K360</span><span class="cm">,</span></li><li>  <span class="w">K370</span><span class="cm">,</span> <span class="w">K380</span><span class="cm">,</span> <span class="w">K450</span><span class="cm">,</span> <span class="w">K460</span><span class="cm">,</span> <span class="w">K460</span>-<span class="w">EG</span><span class="cm">,</span> <span class="w">K460</span>-<span class="w">XP</span><span class="cm">,</span> <span class="w">K470</span><span class="cm">,</span> <span class="w">K570</span><span class="cm">,</span> <span class="w">K580</span><span class="cm">,</span> <span class="w">L1000</span><span class="cm">,</span></li><li>  <span class="w">L2000</span><span class="cm">,</span> <span class="w">L3000</span><span class="cm">,</span> <span class="w">N4000</span><span class="cm">,</span> <span class="w">R380</span><span class="cm">,</span> <span class="w">R390</span><span class="cm">,</span> <span class="w">SD16000</span><span class="cm">,</span> <span class="w">SD32000</span><span class="cm">,</span> <span class="w">SD64000</span><span class="cm">,</span> <span class="w">T540</span><span class="cm">,</span></li><li>  <span class="w">T600</span><span class="cm">,</span> <span class="w">V2000</span><span class="cm">,</span> <span class="w">V2200</span><span class="cm">,</span> <span class="w">V2250</span><span class="cm">,</span> <span class="w">V2500</span><span class="cm">,</span> <span class="w">V2600</span></li></ol></pre><p>Just before HP took over Compaq, some systems were renamed. the link
that contained the explanation is dead, so here&#39;s a short summary:</p>
<pre class="verbatim"><ol><li>  HP 9000 A-Class servers, now renamed HP Server rp2400 series.</li><li>  HP 9000 L-Class servers, now renamed HP Server rp5400 series.</li><li>  HP 9000 N-Class servers, now renamed HP Server rp7400.</li><li></li><li>  rp2400, rp2405, rp2430, rp2450, rp2470, rp3410, rp3440, rp4410,</li><li>  rp4440, rp5400, rp5405, rp5430, rp5450, rp5470, rp7400, rp7405,</li><li>  rp7410, rp7420, rp7440, rp8400, rp8420, rp8440, Superdome</li></ol></pre><p>The current naming convention is:</p>
<pre class="verbatim"><ol><li>  aadddd</li><li>  ||||`+- 00 - 99 relative capacity &amp; newness (upgrades, etc.)</li><li>  |||`--- unique number for each architecture to ensure different</li><li>  |||     systems do not have the same numbering across</li><li>  |||     architectures</li><li>  ||`---- 1 - 9 identifies family and/or relative positioning</li><li>  ||</li><li>  |`----- c = ia32 (cisc)</li><li>  |       p = pa-risc</li><li>  |       x = ia-64 (Itanium &amp; Itanium 2)</li><li>  |       h = housing</li><li>  `------ t = tower</li><li>          r = rack optimized</li><li>          s = super scalable</li><li>          b = blade</li><li>          sa = appliance</li></ol></pre><a name="Itanium-Processor-Family-(IPF)-and-HP-UX"></a><h2>Itanium Processor Family (IPF) and HP-UX</h2>
<p>HP-UX also runs on the new Itanium processor.  This requires the use
of a different version of HP-UX (currently 11.23 or 11i v2), and with
the exception of a few differences detailed below and in later sections,
Perl should compile with no problems.</p>
<p>Although PA-RISC binaries can run on Itanium systems, you should not
attempt to use a PA-RISC version of Perl on an Itanium system.  This is
because shared libraries created on an Itanium system cannot be loaded
while running a PA-RISC executable.</p>
<p>HP Itanium 2 systems are usually refered to with model description
&quot;HP Integrity&quot;.</p>
<a name="Itanium%2c-Itanium-2-%26-Madison-6"></a><h2>Itanium, Itanium 2 &amp; Madison 6</h2>
<p>HP also ships servers with the 128-bit Itanium processor(s). The cx26x0
is told to have Madison 6. As of the date of this document&#39;s last update,
the following systems contain Itanium or Itanium 2 chips (this is likely
to be out of date):</p>
<pre class="verbatim"><ol><li>  <span class="w">BL60p</span><span class="cm">,</span> <span class="w">BL860c</span><span class="cm">,</span> <span class="w">BL870c</span><span class="cm">,</span> <span class="w">cx2600</span><span class="cm">,</span> <span class="w">cx2620</span><span class="cm">,</span> <span class="w">rx1600</span><span class="cm">,</span> <span class="w">rx1620</span><span class="cm">,</span> <span class="w">rx2600</span><span class="cm">,</span></li><li>  <span class="w">rx2600hptc</span><span class="cm">,</span> <span class="w">rx2620</span><span class="cm">,</span> <span class="w">rx2660</span><span class="cm">,</span> <span class="w">rx3600</span><span class="cm">,</span> <span class="w">rx4610</span><span class="cm">,</span> <span class="w">rx4640</span><span class="cm">,</span> <span class="w">rx5670</span><span class="cm">,</span></li><li>  <span class="w">rx6600</span><span class="cm">,</span> <span class="w">rx7420</span><span class="cm">,</span> <span class="w">rx7620</span><span class="cm">,</span> <span class="w">rx7640</span><span class="cm">,</span> <span class="w">rx8420</span><span class="cm">,</span> <span class="w">rx8620</span><span class="cm">,</span> <span class="w">rx8640</span><span class="cm">,</span> <span class="w">rx9610</span><span class="cm">,</span></li><li>  <span class="w">sx1000</span><span class="cm">,</span> <span class="w">sx2000</span></li></ol></pre><p>To see all about your machine, type</p>
<pre class="verbatim"><ol><li>  <span class="c"># model</span></li><li>  <span class="w">ia64</span> <span class="w">hp</span> <span class="w">server</span> <span class="w">rx2600</span></li><li>  <span class="c"># /usr/contrib/bin/machinfo</span></li></ol></pre><a name="HP-UX-versions"></a><h2>HP-UX versions</h2>
<p>Not all architectures (PA = PA-RISC, IPF = Itanium Processor Family)
support all versions of HP-UX, here is a short list</p>
<pre class="verbatim"><ol><li>  HP-UX version  Kernel  Architecture</li><li>  -------------  ------  ------------</li><li>  10.20          32 bit  PA</li><li>  11.00          32/64   PA</li><li>  11.11  11i v1  32/64   PA</li><li>  11.22  11i v2     64        IPF</li><li>  11.23  11i v2     64   PA &amp; IPF</li><li>  11.31  11i v3     64   PA &amp; IPF</li></ol></pre><p>See for the full list of hardware/OS support and expected end-of-life
<a href="http://www.hp.com/go/hpuxservermatrix">http://www.hp.com/go/hpuxservermatrix</a></p>
<a name="Building-Dynamic-Extensions-on-HP-UX"></a><h2>Building Dynamic Extensions on HP-UX</h2>
<p>HP-UX supports dynamically loadable libraries (shared libraries).
Shared libraries end with the suffix .sl.  On Itanium systems,
they end with the suffix .so.</p>
<p>Shared libraries created on a platform using a particular PA-RISC
version are not usable on platforms using an earlier PA-RISC version by
default.  However, this backwards compatibility may be enabled using the
same +DAportable compiler flag (with the same PA-RISC 1.0 caveat
mentioned above).</p>
<p>Shared libraries created on an Itanium platform cannot be loaded on
a PA-RISC platform.  Shared libraries created on a PA-RISC platform
can only be loaded on an Itanium platform if it is a PA-RISC executable
that is attempting to load the PA-RISC library.  A PA-RISC shared
library cannot be loaded into an Itanium executable nor vice-versa.</p>
<p>To create a shared library, the following steps must be performed:</p>
<pre class="verbatim"><ol><li>  1. Compile source modules with +z or +Z flag to create a .o module</li><li>     which contains Position-Independent Code (PIC).  The linker will</li><li>     tell you in the next step if +Z was needed.</li><li>     (For gcc, the appropriate flag is -fpic or -fPIC.)</li><li></li><li>  2. Link the shared library using the -b flag.  If the code calls</li><li>     any functions in other system libraries (e.g., libm), it must</li><li>     be included on this line.</li></ol></pre><p>(Note that these steps are usually handled automatically by the extension&#39;s
Makefile).</p>
<p>If these dependent libraries are not listed at shared library creation
time, you will get fatal &quot;Unresolved symbol&quot; errors at run time when the
library is loaded.</p>
<p>You may create a shared library that refers to another library, which
may be either an archive library or a shared library.  If this second
library is a shared library, this is called a &quot;dependent library&quot;.  The
dependent library&#39;s name is recorded in the main shared library, but it
is not linked into the shared library.  Instead, it is loaded when the
main shared library is loaded.  This can cause problems if you build an
extension on one system and move it to another system where the
libraries may not be located in the same place as on the first system.</p>
<p>If the referred library is an archive library, then it is treated as a
simple collection of .o modules (all of which must contain PIC).  These
modules are then linked into the shared library.</p>
<p>Note that it is okay to create a library which contains a dependent
library that is already linked into perl.</p>
<p>Some extensions, like DB_File and Compress::Zlib use/require prebuilt
libraries for the perl extensions/modules to work. If these libraries
are built using the default configuration, it might happen that you
run into an error like &quot;invalid loader fixup&quot; during load phase.
HP is aware of this problem.  Search the HP-UX cxx-dev forums for
discussions about the subject.  The short answer is that <b>everything</b>
(all libraries, everything) must be compiled with <code class="inline">+<span class="w">z</span></code>
 or <code class="inline">+<span class="w">Z</span></code>
 to be
PIC (position independent code).  (For gcc, that would be
<code class="inline">-<span class="w">fpic</span></code>
 or <code class="inline">-<span class="w">fPIC</span></code>
).  In HP-UX 11.00 or newer the linker
error message should tell the name of the offending object file.</p>
<p>A more general approach is to intervene manually, as with an example for
the DB_File module, which requires SleepyCat&#39;s libdb.sl:</p>
<pre class="verbatim"><ol><li>  # cd .../db-3.2.9/build_unix</li><li>  # vi Makefile</li><li>  ... add +Z to all cflags to create shared objects</li><li>  CFLAGS=         -c $(CPPFLAGS) +Z -Ae +O2 +Onolimit \</li><li>                  -I/usr/local/include -I/usr/include/X11R6</li><li>  CXXFLAGS=       -c $(CPPFLAGS) +Z -Ae +O2 +Onolimit \</li><li>                  -I/usr/local/include -I/usr/include/X11R6</li><li></li><li>  # make clean</li><li>  # make</li><li>  # mkdir tmp</li><li>  # cd tmp</li><li>  # ar x ../libdb.a</li><li>  # ld -b -o libdb-3.2.sl *.o</li><li>  # mv libdb-3.2.sl /usr/local/lib</li><li>  # rm *.o</li><li>  # cd /usr/local/lib</li><li>  # rm -f libdb.sl</li><li>  # ln -s libdb-3.2.sl libdb.sl</li><li></li><li>  # cd .../DB_File-1.76</li><li>  # make distclean</li><li>  # perl Makefile.PL</li><li>  # make</li><li>  # make test</li><li>  # make install</li></ol></pre><p>As of db-4.2.x it is no longer needed to do this by hand. Sleepycat
has changed the configuration process to add +z on HP-UX automatically.</p>
<pre class="verbatim"><ol><li>  <span class="c"># cd .../db-4.2.25/build_unix</span></li><li>  <span class="c"># env CFLAGS=+DD64 LDFLAGS=+DD64 ../dist/configure</span></li></ol></pre><p>should work to generate 64bit shared libraries for HP-UX 11.00 and 11i.</p>
<p>It is no longer possible to link PA-RISC 1.0 shared libraries (even
though the command-line flags are still present).</p>
<p>PA-RISC and Itanium object files are not interchangeable.  Although
you may be able to use ar to create an archive library of PA-RISC
object files on an Itanium system, you cannot link against it using
an Itanium link editor.</p>
<a name="The-HP-ANSI-C-Compiler"></a><h2>The HP ANSI C Compiler</h2>
<p>When using this compiler to build Perl, you should make sure that the
flag -Aa is added to the cpprun and cppstdin variables in the config.sh
file (though see the section on 64-bit perl below). If you are using a
recent version of the Perl distribution, these flags are set automatically.</p>
<p>Even though HP-UX 10.20 and 11.00 are not actively maintained by HP
anymore, updates for the HP ANSI C compiler are still available from
time to time, and it might be advisable to see if updates are applicable.
At the moment of writing, the latests available patches for 11.00 that
should be applied are PHSS_35098, PHSS_35175, PHSS_35100, PHSS_33036,
and PHSS_33902). If you have a SUM account, you can use it to search
for updates/patches. Enter &quot;ANSI&quot; as keyword.</p>
<a name="The-GNU-C-Compiler"></a><h2>The GNU C Compiler</h2>
<p>When you are going to use the GNU C compiler (gcc), and you don&#39;t have
gcc yet, you can either build it yourself from the sources (available
from e.g. <a href="http://www.gnu.ai.mit.edu/software/gcc/releases.html">http://www.gnu.ai.mit.edu/software/gcc/releases.html</a>) or fetch
a prebuilt binary from the HP porting center. There are two places where
gcc prebuilds can be fetched; the first and best (for HP-UX 11 only) is
<a href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1">http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1</a>,1703,547,00.html
the second is <a href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/">http://hpux.cs.utah.edu/hppd/hpux/Gnu/</a> where you can also
find the GNU binutils package. (Browse through the list, because there
are often multiple versions of the same package available).</p>
<p>Above mentioned distributions are depots. H.Merijn Brand has made prebuilt
gcc binaries available on <a href="http://mirrors.develooper.com/hpux/">http://mirrors.develooper.com/hpux/</a> and/or
<a href="http://www.cmve.net/~merijn/">http://www.cmve.net/~merijn/</a> for HP-UX 10.20, HP-UX 11.00, HP-UX 11.11
(HP-UX 11i v1), and HP-UX 11.23 (HP-UX 11i v2) in both 32- and 64-bit
versions. These are bzipped tar archives that also include recent GNU
binutils and GNU gdb.  Read the instructions on that page to rebuild gcc
using itself.</p>
<p>On PA-RISC you need a different compiler for 32-bit applications and for
64-bit applications. On PA-RISC, 32-bit objects and 64-bit objects do
not mix. Period. There is no different behaviour for HP C-ANSI-C or GNU
gcc. So if you require your perl binary to use 64-bit libraries, like
Oracle-64bit, you MUST build a 64-bit perl.</p>
<p>Building a 64-bit capable gcc on PA-RISC from source is possible only when
you have the HP C-ANSI C compiler or an already working 64-bit binary of
gcc available. Best performance for perl is achieved with HP&#39;s native
compiler.</p>
<a name="Using-Large-Files-with-Perl-on-HP-UX"></a><h2>Using Large Files with Perl on HP-UX</h2>
<p>Beginning with HP-UX version 10.20, files larger than 2GB (2^31 bytes)
may be created and manipulated.  Three separate methods of doing this
are available.  Of these methods, the best method for Perl is to compile
using the -Duselargefiles flag to Configure.  This causes Perl to be
compiled using structures and functions in which these are 64 bits wide,
rather than 32 bits wide.  (Note that this will only work with HP&#39;s ANSI
C compiler.  If you want to compile Perl using gcc, you will have to get
a version of the compiler that supports 64-bit operations. See above for
where to find it.)</p>
<p>There are some drawbacks to this approach.  One is that any extension
which calls any file-manipulating C function will need to be recompiled
(just follow the usual &quot;perl Makefile.PL; make; make test; make install&quot;
procedure).</p>
<p>The list of functions that will need to recompiled is:
  creat,          fgetpos,        fopen,
  freopen,        fsetpos,        fstat,
  fstatvfs,       fstatvfsdev,    ftruncate,
  ftw,            lockf,          lseek,
  lstat,          mmap,           nftw,
  open,           prealloc,       stat,
  statvfs,        statvfsdev,     tmpfile,
  truncate,       getrlimit,      setrlimit</p>
<p>Another drawback is only valid for Perl versions before 5.6.0.  This
drawback is that the seek and tell functions (both the builtin version
and POSIX module version) will not perform correctly.</p>
<p>It is strongly recommended that you use this flag when you run
Configure.  If you do not do this, but later answer the question about
large files when Configure asks you, you may get a configuration that
cannot be compiled, or that does not function as expected.</p>
<a name="Threaded-Perl-on-HP-UX"></a><h2>Threaded Perl on HP-UX</h2>
<p>It is possible to compile a version of threaded Perl on any version of
HP-UX before 10.30, but it is strongly suggested that you be running on
HP-UX 11.00 at least.</p>
<p>To compile Perl with threads, add -Dusethreads to the arguments of
Configure.  Verify that the -D_POSIX_C_SOURCE=199506L compiler flag is
automatically added to the list of flags.  Also make sure that -lpthread
is listed before -lc in the list of libraries to link Perl with. The
hints provided for HP-UX during Configure will try very hard to get
this right for you.</p>
<p>HP-UX versions before 10.30 require a separate installation of a POSIX
threads library package. Two examples are the HP DCE package, available
on &quot;HP-UX Hardware Extensions 3.0, Install and Core OS, Release 10.20,
April 1999 (B3920-13941)&quot; or the Freely available PTH package, available
on H.Merijn&#39;s site (<a href="http://mirrors.develooper.com/hpux/">http://mirrors.develooper.com/hpux/</a>).</p>
<p>If you are going to use the HP DCE package, the library used for threading
is /usr/lib/libcma.sl, but there have been multiple updates of that
library over time. Perl will build with the first version, but it
will not pass the test suite. Older Oracle versions might be a compelling
reason not to update that library, otherwise please find a newer version
in one of the following patches: PHSS_19739, PHSS_20608, or PHSS_23672</p>
<p>reformatted output:</p>
<pre class="verbatim"><ol><li>  d3:/usr/lib 106 &gt; what libcma-*.1</li><li>  libcma-00000.1:</li><li>     HP DCE/9000 1.5               Module: libcma.sl (Export)</li><li>                                   Date: Apr 29 1996 22:11:24</li><li>  libcma-19739.1:</li><li>     HP DCE/9000 1.5 PHSS_19739-40 Module: libcma.sl (Export)</li><li>                                   Date: Sep  4 1999 01:59:07</li><li>  libcma-20608.1:</li><li>     HP DCE/9000 1.5 PHSS_20608    Module: libcma.1 (Export)</li><li>                                   Date: Dec  8 1999 18:41:23</li><li>  libcma-23672.1:</li><li>     HP DCE/9000 1.5 PHSS_23672    Module: libcma.1 (Export)</li><li>                                   Date: Apr  9 2001 10:01:06</li><li>  d3:/usr/lib 107 &gt;</li></ol></pre><p>If you choose for the PTH package, use swinstall to install pth in
the default location (/opt/pth), and then make symbolic links to the
libraries from /usr/lib</p>
<pre class="verbatim"><ol><li>  <span class="c"># cd /usr/lib</span></li><li>  <span class="c"># ln -s /opt/pth/lib/libpth* .</span></li></ol></pre><p>For building perl to support Oracle, it needs to be linked with libcl
and libpthread. So even if your perl is an unthreaded build, these
libraries might be required. See &quot;Oracle on HP-UX&quot; below.</p>
<a name="64-bit-Perl-on-HP-UX"></a><h2>64-bit Perl on HP-UX</h2>
<p>Beginning with HP-UX 11.00, programs compiled under HP-UX can take
advantage of the LP64 programming environment (LP64 means Longs and
Pointers are 64 bits wide), in which scalar variables will be able
to hold numbers larger than 2^32 with complete precision.  Perl has
proven to be consistent and reliable in 64bit mode since 5.8.1 on
all HP-UX 11.xx.</p>
<p>As of the date of this document, Perl is fully 64-bit compliant on
HP-UX 11.00 and up for both cc- and gcc builds. If you are about to
build a 64-bit perl with GNU gcc, please read the gcc section carefully.</p>
<p>Should a user have the need for compiling Perl in the LP64 environment,
use the -Duse64bitall flag to Configure.  This will force Perl to be
compiled in a pure LP64 environment (with the +DD64 flag for HP C-ANSI-C,
with no additional options for GNU gcc 64-bit on PA-RISC, and with
-mlp64 for GNU gcc on Itanium).
If you want to compile Perl using gcc, you will have to get a version of
the compiler that supports 64-bit operations.)</p>
<p>You can also use the -Duse64bitint flag to Configure.  Although there
are some minor differences between compiling Perl with this flag versus
the -Duse64bitall flag, they should not be noticeable from a Perl user&#39;s
perspective. When configuring -Duse64bitint using a 64bit gcc on a
pa-risc architecture, -Duse64bitint is silently promoted to -Duse64bitall.</p>
<p>In both cases, it is strongly recommended that you use these flags when
you run Configure.  If you do not use do this, but later answer the
questions about 64-bit numbers when Configure asks you, you may get a
configuration that cannot be compiled, or that does not function as
expected.</p>
<a name="Oracle-on-HP-UX"></a><h2>Oracle on HP-UX</h2>
<p>Using perl to connect to Oracle databases through DBI and DBD::Oracle
has caused a lot of people many headaches. Read README.hpux in the
DBD::Oracle for much more information. The reason to mention it here
is that Oracle requires a perl built with libcl and libpthread, the
latter even when perl is build without threads. Building perl using
all defaults, but still enabling to build DBD::Oracle later on can be
achieved using</p>
<pre class="verbatim"><ol><li>  Configure -A prepend:libswanted='cl pthread ' ...</li></ol></pre><p>Do not forget the space before the trailing quote.</p>
<p>Also note that this does not (yet) work with all configurations,
it is known to fail with 64-bit versions of GCC.</p>
<a name="GDBM-and-Threads-on-HP-UX"></a><h2>GDBM and Threads on HP-UX</h2>
<p>If you attempt to compile Perl with (POSIX) threads on an 11.X system
and also link in the GDBM library, then Perl will immediately core dump
when it starts up.  The only workaround at this point is to relink the
GDBM library under 11.X, then relink it into Perl.</p>
<p>the error might show something like:</p>
<p>Pthread internal error: message: __libc_reinit() failed, file: ../pthreads/pthread.c, line: 1096
Return Pointer is 0xc082bf33
sh: 5345 Quit(coredump)</p>
<p>and Configure will give up.</p>
<a name="NFS-filesystems-and-utime(2)-on-HP-UX"></a><h2>NFS filesystems and utime(2) on HP-UX</h2>
<p>If you are compiling Perl on a remotely-mounted NFS filesystem, the test
io/fs.t may fail on test #18.  This appears to be a bug in HP-UX and no
fix is currently available.</p>
<a name="perl--P-and-%2f%2f-and-HP-UX"></a><h2>perl -P and // and HP-UX</h2>
<p>If HP-UX Perl is compiled with flags that will cause problems if the
-P flag of Perl (preprocess Perl code with the C preprocessor before
perl sees it) is used.  The problem is that <code class="inline"><span class="q">//</span></code>
, being a C++-style
until-end-of-line comment, will disappear along with the remainder
of the line.  This means that common Perl constructs like</p>
<pre class="verbatim"><ol><li>  <span class="q">s/foo//</span><span class="sc">;</span></li></ol></pre><p>will turn into illegal code</p>
<pre class="verbatim"><ol><li>  s/foo</li></ol></pre><p>The workaround is to use some other quoting separator than <code class="inline"><span class="q">&quot;/&quot;</span></code>
,
like for example <code class="inline"><span class="q">&quot;!&quot;</span></code>
:</p>
<pre class="verbatim"><ol><li>  <span class="q">s!foo!!</span><span class="sc">;</span></li></ol></pre><a name="HP-UX-Kernel-Parameters-(maxdsiz)-for-Compiling-Perl"></a><h2>HP-UX Kernel Parameters (maxdsiz) for Compiling Perl</h2>
<p>By default, HP-UX comes configured with a maximum data segment size of
64MB.  This is too small to correctly compile Perl with the maximum
optimization levels.  You can increase the size of the maxdsiz kernel
parameter through the use of SAM.</p>
<p>When using the GUI version of SAM, click on the Kernel Configuration
icon, then the Configurable Parameters icon.  Scroll down and select
the maxdsiz line.  From the Actions menu, select the Modify Configurable
Parameter item.  Insert the new formula into the Formula/Value box.
Then follow the instructions to rebuild your kernel and reboot your
system.</p>
<p>In general, a value of 256MB (or &quot;256*1024*1024&quot;) is sufficient for
Perl to compile at maximum optimization.</p>
<a name="nss_delete-core-dump-from-op%2fpwent-or-op%2fgrent"></a><h1>nss_delete core dump from op/pwent or op/grent</h1>
<p>You may get a bus error core dump from the op/pwent or op/grent
tests. If compiled with -g you will see a stack trace much like
the following:</p>
<pre class="verbatim"><ol><li>  <span class="c">#0  0xc004216c in  () from /usr/lib/libc.2</span></li><li>  <span class="c">#1  0xc00d7550 in __nss_src_state_destr () from /usr/lib/libc.2</span></li><li>  <span class="c">#2  0xc00d7768 in __nss_src_state_destr () from /usr/lib/libc.2</span></li><li>  <span class="c">#3  0xc00d78a8 in nss_delete () from /usr/lib/libc.2</span></li><li>  <span class="c">#4  0xc01126d8 in endpwent () from /usr/lib/libc.2</span></li><li>  <span class="c">#5  0xd1950 in Perl_pp_epwent () from ./perl</span></li><li>  <span class="c">#6  0x94d3c in Perl_runops_standard () from ./perl</span></li><li>  <span class="c">#7  0x23728 in S_run_body () from ./perl</span></li><li>  <span class="c">#8  0x23428 in perl_run () from ./perl</span></li><li>  <span class="c">#9  0x2005c in main () from ./perl</span></li></ol></pre><p>The key here is the <code class="inline"><span class="w">nss_delete</span></code>
 call.  One workaround for this
bug seems to be to create add to the file <i>/etc/nsswitch.conf</i>
(at least) the following lines</p>
<pre class="verbatim"><ol><li>  group: files</li><li>  passwd: files</li></ol></pre><p>Whether you are using NIS does not matter.  Amazingly enough,
the same bug also affects Solaris.</p>
<a name="Miscellaneous"></a><h1>Miscellaneous</h1>
<p>HP-UX 11 Y2K patch &quot;Y2K-1100 B.11.00.B0125 HP-UX Core OS Year 2000
Patch Bundle&quot; has been reported to break the io/fs test #18 which
tests whether utime() can change timestamps.  The Y2K patch seems to
break utime() so that over NFS the timestamps do not get changed
(on local filesystems utime() still works). This has probably been
fixed on your system by now.</p>
<a name="AUTHOR"></a><h1>AUTHOR</h1>
<p>H.Merijn Brand &lt;h.m.brand@xs4all.nl&gt;
Jeff Okamoto &lt;okamoto@corp.hp.com&gt;</p>
<p>With much assistance regarding shared libraries from Marc Sabatella.</p>
<a name="DATE"></a><h1>DATE</h1>
<p>Version 0.8.3: 2008-06-24</p>




  <div id="page_index">
    <div id="page_index_header">
      <div id="page_index_close"><a href="#" onClick="pageIndex.hide();return false;"></a></div>
      <div id="page_index_title"><span class="page_index_top">Page index</span></div>
      <div id="page_index_topright"></div>
    </div>
    <div id="page_index_content">
      <ul><li><a href="#NAME">NAME</a><li><a href="#DESCRIPTION">DESCRIPTION</a><ul><li><a href="#Using-perl-as-shipped-with-HP-UX">Using perl as shipped with HP-UX</a><li><a href="#Using-perl-from-HP's-porting-centre">Using perl from HP's porting centre</a><li><a href="#Compiling-Perl-5-on-HP-UX">Compiling Perl 5 on HP-UX</a><li><a href="#PA-RISC">PA-RISC</a><li><a href="#Portability-Between-PA-RISC-Versions">Portability Between PA-RISC Versions</a><li><a href="#PA-RISC-1.0">PA-RISC 1.0</a><li><a href="#PA-RISC-1.1">PA-RISC 1.1</a><li><a href="#PA-RISC-2.0">PA-RISC 2.0</a><li><a href="#Itanium-Processor-Family-(IPF)-and-HP-UX">Itanium Processor Family (IPF) and HP-UX</a><li><a href="#Itanium%2c-Itanium-2-%26-Madison-6">Itanium, Itanium 2 & Madison 6</a><li><a href="#HP-UX-versions">HP-UX versions</a><li><a href="#Building-Dynamic-Extensions-on-HP-UX">Building Dynamic Extensions on HP-UX</a><li><a href="#The-HP-ANSI-C-Compiler">The HP ANSI C Compiler</a><li><a href="#The-GNU-C-Compiler">The GNU C Compiler</a><li><a href="#Using-Large-Files-with-Perl-on-HP-UX">Using Large Files with Perl on HP-UX</a><li><a href="#Threaded-Perl-on-HP-UX">Threaded Perl on HP-UX</a><li><a href="#64-bit-Perl-on-HP-UX">64-bit Perl on HP-UX</a><li><a href="#Oracle-on-HP-UX">Oracle on HP-UX</a><li><a href="#GDBM-and-Threads-on-HP-UX">GDBM and Threads on HP-UX</a><li><a href="#NFS-filesystems-and-utime(2)-on-HP-UX">NFS filesystems and utime(2) on HP-UX</a><li><a href="#perl--P-and-%2f%2f-and-HP-UX">perl -P and // and HP-UX</a><li><a href="#HP-UX-Kernel-Parameters-(maxdsiz)-for-Compiling-Perl">HP-UX Kernel Parameters (maxdsiz) for Compiling Perl</a></ul><li><a href="#nss_delete-core-dump-from-op%2fpwent-or-op%2fgrent">nss_delete core dump from op/pwent or op/grent</a><li><a href="#Miscellaneous">Miscellaneous</a><li><a href="#AUTHOR">AUTHOR</a><li><a href="#DATE">DATE</a></ul>
    </div>
    <div id="page_index_footer">
      <div id="page_index_bottomleft"></div>
      <div id="page_index_bottom"><span class="page_index_bottom"></span></div>
      <div id="page_index_resize"></div>
    </div>
  </div>


	    &nbsp;
          </div>
          <div id="content_footer">
          </div>
        </div>
        <div id="right_column">
          <div class="side_group">
	    
            <div class="side_panel tools_panel">
              <p>Recently read</p>
              <div id="recent_pages"></div>
            </div>
            <div class="side_panel tools_panel">
              <p>Tools</p>
              <ul>
		<li><a href="preferences.html">Preferences</a>
              </ul>
            </div>
          </div>
        </div>
        <div class="clear"></div>
      </div>
      
      <div id="footer">
	<div id="footer_content">
	  
	</div>
      </div>
      
    </div>
      <script language="JavaScript" src="static/combined-20090809.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
  perldoc.setPath(0);
  perldoc.pageName    = 'perlhpux';
  perldoc.pageAddress = 'perlhpux.html';
  perldoc.contentPage = 1;
</script>
    
  </body>
</html>