- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compile perl 5.6.1 on hpux 11.0 - make test fails
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2001 12:07 PM
08-18-2001 12:07 PM
I also did a google group seach and found more information about this problem, but again no solution. Thanks to Jim Garner for the following:
If you succeed in compiling on HP-UX 11.0, let me know your experience with the
following: I've had a problem with the perl-5.6.1 getpwent() function when
compiled under HP-UX 11.0 -- it dumps core if I call it at eof. The pwent()
test that comes with perl calls the function a fixed number of times (25), so
if your /etc/passwd is 25 or more entries, the test appears to pass. I can
write a C program to call getpwent() past eof and it returns properly, so the
problem is not with the HP library call. I'd like confirmation of this problem
before reporting it as a bug.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 06:32 AM
08-20-2001 06:32 AM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
Have you tried to load a precompiled version? Try this:
http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.6.1/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 07:13 AM
08-20-2001 07:13 AM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 07:41 AM
08-20-2001 07:41 AM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
You might try using 'gcc' to compile perl 5.6.1 on your 11.0 machine. I've had success in compiling perl from the source using gcc instead of the default HP C compiler. You can find a binary distribution here:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-2.95.3/
Be sure to download binutils as well and have both of these in your PATH when compiling perl 5.6.1. Hope that helps.
- Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 08:17 AM
08-20-2001 08:17 AM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 04:47 PM
08-20-2001 04:47 PM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
the default C compiler is only for the kernel. It shouldn't be used for programming (or building anything).
I've used gcc and gmake with 5.6.0 it works fine.
I have an Admin here who built 5.6.0 on 11.0 with HP C/ANSIC. He had to tweak something in the ./Configure script to make it work. I'm sure that 5.6.1 isn't much different from that perspective. I'll ask him in the morning (9am PST). Email me if I haven't posted anything shortly thereafter.
David Lieberman
david.lieberman@i21.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 04:55 PM
08-20-2001 04:55 PM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
I meant to say that if HP C/ANSIC isn't available, something else like gcc must be used since the default compiler is for the kernel.
After reading my earlier response, it kinda came out pretty sukky. Sorry 'bout that.
David Lieberman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 04:14 PM
08-21-2001 04:14 PM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2001 10:17 AM
09-04-2001 10:17 AM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2001 01:08 PM
09-04-2001 01:08 PM
Re: Compile perl 5.6.1 on hpux 11.0 - make test fails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 07:28 AM
09-06-2001 07:28 AM
SolutionWhat I've found is that the pwent.t and grent.t tests read $max entries from the /etc/passwd and /etc/group files. If there are less than $max enties that test fails. To get it to pass count the number of entries in both files:
cat /etc/passwd | wc -l
cat /etc/group | wc -l
Next edit pwent.t and modify $max to equal the number of entries in the passwd file. The $max variable is around line 64.
Do the same with grent.t using the number of lines in the group file.
Good Luck,
Steve