1827158 Members
2107 Online
109716 Solutions
New Discussion

Re: compiling Perl

 
Rich Hart_1
New Member

compiling Perl


Hi all,
I'm compiling perl, and I keep getting errors during make test on pwent, gwent and io_xs. I've patched the 11i system with the latest and greatest patches, etc, to no avail. Anyone got any hints as to where to look to fix this?
5 REPLIES 5
Shannon Petry
Honored Contributor

Re: compiling Perl

The problem is most definately NOT patches!

There are lots of problems if you are using the HP Supplied K&R compiler. Reading the perl docs will reveal that you either need gnuC or HP ANSI/C. I have compiled with both and have gotten no errors.

Remember that with GNU-C you must also install bin-utils!

Regards,
Shannon
Microsoft. When do you want a virus today?
Philip Chan_1
Respected Contributor

Re: compiling Perl

Yes, give gcc a try, it might saves you great deal of time and effort. Follow the links below for gcc and binutil software depots.

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-2.95.3/

http://hpux.cs.utah.edu/hppd/hpux/Gnu/binutils-2.11/

Good luck.

Philip
Rich Hart_1
New Member

Re: compiling Perl

I didn't think the patches were the problem.

I have the HP ansic compiler, not gcc. I prefer to build optimized applications, so on PA-Risc, I'll avoid gcc as much as possible. I guess it's time to start tracing the system calls.

Also as a side-note, io_xs fails when make runs the test, but passes when the test is run manually. I'll go ahead and let that one pass if I can figure out the passwd/group entity problem.
Randy Richardson
New Member

Re: compiling Perl

I have the same gwent failure. Is there a solution? If not, how do I bypass this test and complete my Perl compile? Don't waste time telling me about Gcc, I am using HP-AnsiC.
Willingness: A frame of mind that is open to every possible demand without reservation or refusal.
Steven Schladale
Occasional Advisor

Re: compiling Perl

I solved this problem by modifing the pwent.t and grent.t files so the only read to the max number of users (/etc/passwd) and groups (/etc/group). As it is both tests attempt to 25 entries from those files. If you don't have 25 entries the test fails. For grent.t go to line 63 and change the number "25" to the total number of groups on your system, e.g "cat /etc/group | wc -l".
Steve