perl 4.036 vs. HP-UX 9.0 (help needed) 
Author Message
 perl 4.036 vs. HP-UX 9.0 (help needed)

     The Configure process went smoothly, though I was taking stabs in
the dark at responding to some of the questions, and everything appeared
to compile and link okay.  However, when I did "make test", I got an
immediate "sh: 23382 Memory fault - core dumped".
     If anyone has succeeded in getting perl 4.036 to work under HP-UX
9.0 on an HP9000/800-series system, please share the secret with me of
how to do it.  I don't follow this group, so please respond by email.

                                  Scott Bennett, Comm. ASMELG, CFIAG
                                  Systems Programming
                                  Computer Center
                                  Northern Illinois University
                                  DeKalb, Illinois 60115
**********************************************************************


*--------------------------------------------------------------------*
* It takes a clever politician to mask his envy while he accuses his *
* opponent of fooling the public.  --Anonymous                       *
**********************************************************************



Sun, 04 Aug 1996 07:06:26 GMT  
 perl 4.036 vs. HP-UX 9.0 (help needed)
|>      The Configure process went smoothly, though I was taking stabs in
|> the dark at responding to some of the questions, and everything appeared
|> to compile and link okay.  However, when I did "make test", I got an
|> immediate "sh: 23382 Memory fault - core dumped".
|>      If anyone has succeeded in getting perl 4.036 to work under HP-UX
|> 9.0 on an HP9000/800-series system, please share the secret with me of
|> how to do it.  I don't follow this group, so please respond by email.
|>
|>

I have a similar problem with Solaris 2.3 - what should I do to
fix this??

Bob Malay

--
**************************************************
*                                                *
*  Robert M. Malay    Unisys Corporation         *
*                     Government Systems Group   *
*                     12010 Sunrise Valley Drive *
*                     Reston, VA 22091           *
*                                                *

*  703.620.7750                                  *
*                                                *
**************************************************



Wed, 14 Aug 1996 04:35:11 GMT  
 perl 4.036 vs. HP-UX 9.0 (help needed)

Quote:


>|>      The Configure process went smoothly, though I was taking stabs in
>|> the dark at responding to some of the questions, and everything appeared
>|> to compile and link okay.  However, when I did "make test", I got an
>|> immediate "sh: 23382 Memory fault - core dumped".
>|>      If anyone has succeeded in getting perl 4.036 to work under HP-UX
>|> 9.0 on an HP9000/800-series system, please share the secret with me of
>|> how to do it.  I don't follow this group, so please respond by email.
>|>
>|>

>I have a similar problem with Solaris 2.3 - what should I do to
>fix this??

I saw this too.  I got things working on HP9000/7XX, by using the
'hpux' hints instead of the 'hp9000_700'.  I was unable to get
perl to pass the regressions when I used gcc, no matter which
hints I used.

rich mahn



Fri, 16 Aug 1996 08:52:45 GMT  
 perl 4.036 vs. HP-UX 9.0 (help needed)

Quote:


> >|> to compile and link okay.  However, when I did "make test", I got an
> >|> immediate "sh: 23382 Memory fault - core dumped".
> >I have a similar problem with Solaris 2.3 - what should I do to
> >fix this??

> I saw this too.  I got things working on HP9000/7XX, by using the
> 'hpux' hints instead of the 'hp9000_700'.  I was unable to get
> perl to pass the regressions when I used gcc, no matter which
> hints I used.

Try to add the following casts in doio.c (HP-UX);

             nfound = select(
                        maxlen * 8,
                        (int *)(fd_sets[1]),
                        (int *)(fd_sets[2]),
                        (int *)(fd_sets[3]),
                        tbuf);

For Solaris (2.2) use (fd_set *) instead of (int *).

Also, for HPUX and Solaris check the following lines in eval.c:

                        value = (double)setpwent();
                        value = (double)endpwent();

change them to:
                setpwent();             endpwent();
                value = 0;              value = 0;

For Solaris, check that you don't use wait4():

config.h:

        #undef  HAS_WAIT4
        #define HAS_WAITPID

Hope this helps.

--

Multihouse Automatisering BV, Doesburgweg 7, 2803 PL Gouda, The Netherlands  
        "Hmm, let's delete those dot-files:"  # rm -rf .*
------------------------------------------------------------------------------



Fri, 16 Aug 1996 18:43:26 GMT  
 perl 4.036 vs. HP-UX 9.0 (help needed)
|>


|> > >|> to compile and link okay.  However, when I did "make test", I got an
|> > >|> immediate "sh: 23382 Memory fault - core dumped".
|>
|> > >I have a similar problem with Solaris 2.3 - what should I do to
|> > >fix this??
|> >
|> > I saw this too.  I got things working on HP9000/7XX, by using the
|> > 'hpux' hints instead of the 'hp9000_700'.  I was unable to get
|> > perl to pass the regressions when I used gcc, no matter which
|> > hints I used.
|>
|> Try to add the following casts in doio.c (HP-UX);
|>
|>              nfound = select(
|>                         maxlen * 8,
|>                         (int *)(fd_sets[1]),
|>                         (int *)(fd_sets[2]),
|>                         (int *)(fd_sets[3]),
|>                         tbuf);
|>
|> For Solaris (2.2) use (fd_set *) instead of (int *).
|>
|> Also, for HPUX and Solaris check the following lines in eval.c:
|>
|>                         value = (double)setpwent();
|>                         value = (double)endpwent();
|>
|> change them to:
|>                 setpwent();             endpwent();
|>                 value = 0;              value = 0;
|>

I did not see the core dump, but I do have the dbm test fail.
I tried the above fix - no change in results.

I'm using HP-UX A.09.01, HP 9000/715, gcc 2.5.8, perl's malloc.

The failure in op/dbm.t is:
...........................................................
#!./perl

# $RCSfile: dbm.t,v $$Revision: 4.0.1.1 $$Date: 92/06/08 15:43:02 $

if (!-r '/usr/include/dbm.h' && !-r '/usr/include/ndbm.h'
    && !-r '/usr/include/rpcsvc/dbm.h') {
    print "1..0\n";
    exit;

Quote:
}

print "1..12\n";

unlink <Op.dbmx.*>;
umask(0);
print (dbmopen(h,'Op.dbmx',0640) ? "ok 1\n" : "not ok 1\n");
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
   $blksize,$blocks) = stat('Op.dbmx.pag');
print (($mode & 0777) == 0640 ? "ok 2\n" : "not ok 2\n");
while (($key,$value) = each(h)) {  

#### FAILS in here
#### first iteration finds null key and value
#### second iteration gives 'Out of memory!' msg

    $i++;

Quote:
}

print (!$i ? "ok 3\n" : "not ok 3\n");
.............................................................

Hope this helps to find the bug.  I'm way over my head here.

Jeff
--

Advanced Micro Devices, M/S 45  |---------------------------------------
PO Box 3453                     |  The above opionions are mine,
Sunnyvale, Ca 94088             |  not AMD's.



Mon, 19 Aug 1996 05:29:45 GMT  
 perl 4.036 vs. HP-UX 9.0 (help needed)

Quote:


> |>


> |> > >|> to compile and link okay.  However, when I did "make test", I got an
> |> > >|> immediate "sh: 23382 Memory fault - core dumped".
> |>
> |> > >I have a similar problem with Solaris 2.3 - what should I do to
> |> > >fix this??
> |> >
> |> > I saw this too.  I got things working on HP9000/7XX, by using the
> |> > 'hpux' hints instead of the 'hp9000_700'.  I was unable to get
> |> > perl to pass the regressions when I used gcc, no matter which
> |> > hints I used.
> |>
> |> Try to add the following casts in doio.c (HP-UX);
> |>
> |>              nfound = select(
> |>                         maxlen * 8,
> |>                         (int *)(fd_sets[1]),
> |>                         (int *)(fd_sets[2]),
> |>                         (int *)(fd_sets[3]),
> |>                         tbuf);
> |>
> |> For Solaris (2.2) use (fd_set *) instead of (int *).
> |>
> |> Also, for HPUX and Solaris check the following lines in eval.c:
> |>
> |>                         value = (double)setpwent();
> |>                         value = (double)endpwent();
> |>
> |> change them to:
> |>                 setpwent();             endpwent();
> |>                 value = 0;              value = 0;
> |>
> I did not see the core dump, but I do have the dbm test fail.
> I tried the above fix - no change in results.
> I'm using HP-UX A.09.01, HP 9000/715, gcc 2.5.8, perl's malloc.
> The failure in op/dbm.t is:
> ...........................................................
> #!./perl
> # $RCSfile: dbm.t,v $$Revision: 4.0.1.1 $$Date: 92/06/08 15:43:02 $
> if (!-r '/usr/include/dbm.h' && !-r '/usr/include/ndbm.h'
>     && !-r '/usr/include/rpcsvc/dbm.h') {
>     print "1..0\n";
>     exit;
> }
> print "1..12\n";
> unlink <Op.dbmx.*>;
> umask(0);
> print (dbmopen(h,'Op.dbmx',0640) ? "ok 1\n" : "not ok 1\n");
> ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
>    $blksize,$blocks) = stat('Op.dbmx.pag');
> print (($mode & 0777) == 0640 ? "ok 2\n" : "not ok 2\n");
> while (($key,$value) = each(h)) {  
> #### FAILS in here
> #### first iteration finds null key and value
> #### second iteration gives 'Out of memory!' msg
>     $i++;
> }
> print (!$i ? "ok 3\n" : "not ok 3\n");
> .............................................................
> Hope this helps to find the bug.  I'm way over my head here.
> Jeff
> --

> Advanced Micro Devices, M/S 45  |---------------------------------------
> PO Box 3453                     |  The above opionions are mine,
> Sunnyvale, Ca 94088             |  not AMD's.

I'm running a hp9k807, What woked the quickest for me was to lose the
HP dbm, ndm and use gdbm (1.7.1), absolutely no probs, just remeber
to include the gnu gdbm.h file in the include list.

hope this helps.....
--

When things can't get any worse, they simplify themselves by getting a
whole lot worse then complicated. A complete and utter disaster is the
simplest thing in the world; it's preventing one that's complex.(janet morris)



Tue, 27 Aug 1996 06:17:01 GMT  
 perl 4.036 vs. HP-UX 9.0 (help needed)

Quote:
>     If anyone has succeeded in getting perl 4.036 to work under HP-UX
> 9.0 on an HP9000/800-series system, please share the secret with me of
> how to do it.  I don't follow this group, so please respond by email.

This is unofficial:

Use +O1, not -O.
Use Perl's malloc, not HP's.
Alignbytes should be 8.
Turn on -DJMPCLOBBER.
Only use -lndbm and -lm.
Edit the config.sh file sho that d_setpgrp2 so that it is undefined.

That should work.
--
 \      oo      The New Number Who,
  \____|\mm     Jeff Okamoto
  //_//\ \_\    HP Corporate Computing & Services

/___/_____\    
-----------     (415) 857-6236



Sat, 31 Aug 1996 05:15:16 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Perl 4.036 & chat2.pl vs HP-UX

2. Help installing oraperl in HP-UX 9.0

3. Perl 4.036 and dbm on HP/UX

4. Trying to build Perl 4.036 on HP-UX 9.01

5. Perl 4.036 on HP-UX 9.0.1 ???

6. Q: Problem with Perl 4.036 running under HP-UX

7. Compiling perl 4.036 on HP-UX 9.05

8. perl on HP-UX 8.0 (9000/800) (help needed)

9. Need Help Compiling Perl 5.004_04 on HP-UX 9

10. curseperl, HP 9000/8xx, HPUX 9.0

11. Need help with IOCTL on HP-UX

12. Help needed compiling DB_File on HP-UX 11

 

 
Powered by phpBB® Forum Software