Operating System - HP-UX
1753416 Members
7574 Online
108793 Solutions
New Discussion юеВ

Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

 
SOLVED
Go to solution
Vinnie Lima
Advisor

Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

Hi,

"make" fails during compilation of perl 5.8.2 on hpux 11i (11.11) using:

nmcmadam:/opt/patches/perl-5.8.2> gcc -v
Reading specs from /opt/gcc/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/specs
Configured with: ./configure --enable-languages=c,c++ --enable-threads=posix --disable-nls --with-gnu-as --with-gnu-ld --with-as=/usr/local/pa64/hppa64-hp-hpux11.11/bin/as --with-ld=/usr/local/pa64/hppa64-hp-hpux11.11/bin/ld --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --prefix=/opt/gcc
Thread model: posix
gcc version 3.3.2


and

nmcmadam:/opt/patches/perl-5.8.2> make -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.


Configure options:

sh ./Configure -Dprefix=/opt/perl -Dcc=gcc

Make fails at:

CCCMD = gcc -DPERL_CORE -c -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -Wall
In file included from pp_sys.c:36:
/usr/include/shadow.h:42: error: conflicting types for `getspnam'
/usr/include/prot.h:650: error: previous declaration of `getspnam'
make: *** [pp_sys.o] Error 1


Any suggestions?

Thanks,
vlima@csc.com
17 REPLIES 17
H.Merijn Brand (procura
Honored Contributor

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

Any reason you want to build perl yourself? You can fetch 5.8.1 for 11i prebuilt with gcc-3.3.2 from my site[1] right now, and once I have Tk804.025 up and running, and DBI-1.39, I am about to upload prebuilt 5.8.2 also for 11i (FWIW the 11.00 ports are already available)

[1] See attach

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Vinnie Lima
Advisor

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

Yes, using pre-built perl has always been a bad idea in my previous experiences. Causes problems when installing some modules (some modules will error out for the minute things). Specially in hpux.

Additionally, I like my perl installed under /opt versus scattered accross /usr/nowhere locations =)

Thanks though.

H.Merijn Brand (procura
Honored Contributor
Solution

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

My perl install under /opt/perl (32bit) or /opt/perl64 (64bit) :)

The gcc I built it with is also available on that site, so what can go wrong?

FWIW, I've never seen you error before, but I guess a library is missing

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Vinnie Lima
Advisor

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

Hi,

Sorry, I thought your perl builds were like your gcc 3.3.2 builds under /usr/local/...

I couldnt find the perl 5.8.2 hpux 11.11/64 build on your site? I could only find:

-perl 5.8.1 + defined-or prepared for Oracle + DBI 1.38 + Tk 800.024 built with gcc-3.3.1

├в perl 5.8.1 prepared for Oracle + DBI 1.38 + Tk 800.024 built with gcc-3.3.1

Am I looking at the right place? I went to http://www.cmve.net/~merijn/

H.Merijn Brand (procura
Honored Contributor

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

Yes, you are. I've looked more closely at your error, and I'm under the assumption that this is a 64bit gcc. Right?

Did you add -Duse64bitall to Configure? You cannot build a 32bit perl wit a 64bit gcc.

And my 11i is so slow that I decided to wait for DBI-1.39 and Tk804.025 before I ported 5.8.2 to 11i. Do you mind the defined-or patch?

I might speed up the port now that someone is actually asking for 5.8.2 for 11i. Please do read my comments in the Perl section of my site, since most of what I answered here is written there.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Vinnie Lima
Advisor

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

Hi,

I didnt try it before, so i went ahead and tried that option and still no luck - same error.

Actually, even if you dont specify that option, it will still build it as 64-bit:

*** This version of gcc uses 64 bit longs. -Duse64bitall is
*** implicitly set to enable continuation

I dont mind what fixes you have to put to it...i just need perl built! =) Also, could you have a prebuilt binary of 5.8.2 without any Oracle DBI modules pre-installed? I dont mind for it much, but understand that most perl users on your site need it.

If you need me to run any additional commands, let me know. I have access to more hpux machines than i care for =)

Thanks again,
v.
H.Merijn Brand (procura
Honored Contributor

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

64bit perl-5.8.2 is building :)

probably this week, but I've got more to do.

I can't include a DBD::Oracle, because of way to many reasons: different versions, different install path's and above all, I don't have Oracle64 on any of my machines and only Oracle-8.1.7.4/32 on 11.00

FWIW DBD::Oracle-1.15 is to be released *very* soon now, and if you can find Ralph Grohe's posts, you can see that it builds out of the box if you just read README.hpux very carefully

I'll include DBI-1.39, but I will leave out Tk for now

Enjoy, Have FUN! H.Merijn [ Don't forget the points ]
Enjoy, Have FUN! H.Merijn
Vinnie Lima
Advisor

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

Sounds great!

Now you wouldnt mind sharing your compile option secrets, would you? ;)

Are you using the hp ansi c compiler or gcc?

Thanks again.

v.
H.Merijn Brand (procura
Honored Contributor

Re: Build perl 5.8.2 on HPUX 11.11 make fails - getspnam

uploading. please wait an hour or so before fetching

perl-5.8.2/64 for 11i + defined or + DBI-1.39
built with gcc-3.3.2/64

No Tk (yet)

13.4 Mb compressed

Enjoy, Have FUN! H.Merijn [ now going to bed ]
Enjoy, Have FUN! H.Merijn