Closed p5pRT closed 16 years ago
I'm trying to install perl 5.8.8 on HP-UX 11.11 with PA-Risc 2.0 processors. I successfully ran Configure using "sh Configure -Dcc=gcc -de" and then it told me to run make. While running make\, after only a couple of warnings in the first several components\, I get the following:
`sh cflags "optimize='-g -O'" pp_sys.o` pp_sys.c CCCMD = gcc -DPERL_CORE -c -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -Wall In file included from pp_sys.c:45: /usr/include/shadow.h:42: error: conflicting types for 'getspnam' /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here *** Error exit code 1
Relevant lines in shadow.h and prot.h:
/usr/include/prot.h:650:extern struct spwd *getspnam __((char *)); /usr/include/shadow.h:42: extern struct spwd * getspnam(const char *); /usr/include/shadow.h:49: struct spwd * getspnam();
Both files have the same date/time.
I'm unable to run make minitest\, or make nok\, due to the same error. Here's ./myconfig:
root@tmsovo1:/tmp/perl-5.8.8 \mailto​:root@​tmsovo1​:/tmp/perl\-5\.8\.8 #./myconfig Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=hpux\, osvers=11.11\, archname=PA-RISC2.0 uname='hp-ux tmsovo1 b.11.11 u 9000800 2006062138 unlimited-user license ' config_args='-Dcc=gcc -de' hint=recommended\, useposix=true\, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n\, bincompat5005=undef Compiler: cc='gcc'\, ccflags ='-D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'\, optimize='-g -O'\, cppflags='-D_HPUX_SOURCE -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion=''\, gccversion='4.0.2'\, gccosandvers='' intsize=4\, longsize=4\, ptrsize=4\, doublesize=8\, byteorder=4321 d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=16 ivtype='long'\, ivsize=4\, nvtype='double'\, nvsize=8\, Off_t='off_t'\, lseeksize=8 alignbytes=8\, prototype=define Linker and Libraries: ld='/usr/bin/ld'\, ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lnsl -lnm -lndbm -lmalloc -ldld -lm -lcrypt -lsec -lc perllibs=-lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec -lc libc=/lib/libc.sl\, so=sl\, useshrplib=false\, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_hpux.xs\, dlext=sl\, d_dlsymun=undef\, ccdlflags='-Wl\,-E -Wl\,-B\,deferred ' cccdlflags='-fPIC'\, lddlflags='-b -L/usr/local/lib'
Any help would be very much appreciated.
\<http://www.hydroonetelecom.com/> Cost-effective\, reliable\, and
physically \<http://www.hydroonetelecom.com/> diverse solutions!
Jim Duffield OSS Architect
office:
mobile:
905-840-0585 x377
416-451-6071
On Mon\, 15 May 2006 13:56:37 -0700\, "Jim.Duffield@HydroOne.com (via RT)" \perlbug\-followup@​perl\.org wrote:
I'm trying to install perl 5.8.8 on HP-UX 11.11 with PA-Risc 2.0 processors. I successfully ran Configure using "sh Configure -Dcc=gcc -de" and then it told me to run make. While running make\, after only a couple of warnings in the first several components\, I get the following:
Apart from the errors you get\, is there any specific reason for not using a prebuilt binary?
I suspect the version of the gcc you installed. If it was not explicitely built for 11.11-pa-risc-2.0\, you are bound to hit errors
# /usr/local/pa20_32/bin/gcc -v /dev/null Using built-in specs. Target: hppa2.0w-hp-hpux11.11 Configured with: ../src/configure --enable-languages=c\,c++ --prefix=/usr/local/pa20_32 --with-local-prefix=/usr/local/pa20_32 --with-gnu-as --with-as=/usr/local/pa20_32/bin/as --with-ld=/usr/ccs/bin/ld --disable-shared --disable-nls Thread model: single gcc version 4.1.1 20060428 (prerelease) /wrk/pa20_32/libexec/gcc/hppa2.0w-hp-hpux11.11/4.1.1/collect2 -L/lib/pa1.1 -L/usr/lib/pa1.1 -z -u main -u __gcc_plt_call /usr/ccs/lib/crt0.o /lib/unix98.o -L/wrk/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.1 -L/wrk/pa20_32/lib/gcc -L/usr/local/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.1 -L/usr/ccs/lib -L/opt/langtools/lib -L/wrk/pa20_32/lib -L/usr/local/pa20_32/lib /dev/null -lgcc -lc -lgcc /usr/ccs/bin/ld: Unexpected end of file in /dev/null collect2: ld returned 1 exit status
Prebuilt perl-5.8.8 depot from my site: http://mirrors.develooper.com/hpux/perl-5.8.8-dor-11.11.sd.bz
Binary GNU gcc that compiled that build: http://mirrors.develooper.com/hpux/gcc-3.4.5-11.11.sd.bz
If you insist on GNU gcc-4.0.3: http://mirrors.develooper.com/hpux/gcc-4.0.3-11.11.sd.bz
but perl build with 4.0.3 in 64bit mode is unreliable.
\`sh cflags "optimize='\-g \-O'" pp\_sys\.o\` pp\_sys\.c CCCMD = gcc \-DPERL\_CORE \-c \-D\_HPUX\_SOURCE \-mpa\-risc\-2\-0
-DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -Wall In file included from pp_sys.c:45: /usr/include/shadow.h:42: error: conflicting types for 'getspnam' /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here *** Error exit code 1
Relevant lines in shadow.h and prot.h:
/usr/include/prot.h:650:extern struct spwd *getspnam __((char *)); /usr/include/shadow.h:42: extern struct spwd * getspnam(const char *); /usr/include/shadow.h:49: struct spwd * getspnam();
Both files have the same date/time.
-- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2\, 5.8.x\, 5.9.x on HP-UX 10.20\, 11.00\, 11.11\, & 11.23\, SuSE 10.0\, AIX 4.3 & 5.2\, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/
The RT System itself - Status changed from 'new' to 'open'
Thanks for your assistance. I needed to upgrade my Perl 5.8.7 because I'm trying to perlcc a script\, and 5.8.7 wasn't working very well.
I downloaded and installed the updated binary (thanks VERY much...) and installed it without trouble. Now I'm getting a compile error when running "perlcc -O sd_event.pl -o sdEvent": Can't locate object method "_save_common_middle" via package "B::FAKEOP" at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 389.
I tried also just creating a .c using "perlcc sd_event.pl" and got: sh: 5544 Memory fault(coredump) /opt/perl/bin/perlcc: sd_event.pl did not compile\, which can't happen: Starting compile Walking tree
All that was left was a 0-byte sd_event.c file and a 5M core file.
Should I submit a new request for this\, or can we work it through #39143?
Regards...
Hydro One Telecom Jim Duffield OSS Architect jim.duffield@hydroone.com office: 905-840-0585 x377 mobile: 416-451-6071 http://www.hydroonetelecom.com/
-----Original Message----- From: H. Merijn Brand via RT [mailto:perlbug-followup@perl.org] Sent: May 16\, 2006 10:40 To: DUFFIELD Jim Subject: Re: [perl #39143] Unable to make Perl 5.8.8 on HP-UX 11.11
On Mon\, 15 May 2006 13:56:37 -0700\, "Jim.Duffield@HydroOne.com (via RT)" \perlbug\-followup@​perl\.org wrote:
I'm trying to install perl 5.8.8 on HP-UX 11.11 with PA-Risc 2.0 processors. I successfully ran Configure using "sh Configure -Dcc=gcc -de" and then it told me to run make. While running make\, after only a couple of warnings in the first several components\, I get the following:
Apart from the errors you get\, is there any specific reason for not using a prebuilt binary?
I suspect the version of the gcc you installed. If it was not explicitely built for 11.11-pa-risc-2.0\, you are bound to hit errors
# /usr/local/pa20_32/bin/gcc -v /dev/null Using built-in specs. Target: hppa2.0w-hp-hpux11.11 Configured with: ../src/configure --enable-languages=c\,c++ --prefix=/usr/local/pa20_32 --with-local-prefix=/usr/local/pa20_32 --with-gnu-as --with-as=/usr/local/pa20_32/bin/as --with-ld=/usr/ccs/bin/ld --disable-shared --disable-nls Thread model: single gcc version 4.1.1 20060428 (prerelease) /wrk/pa20_32/libexec/gcc/hppa2.0w-hp-hpux11.11/4.1.1/collect2 -L/lib/pa1.1 -L/usr/lib/pa1.1 -z -u main -u __gcc_plt_call /usr/ccs/lib/crt0.o /lib/unix98.o -L/wrk/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.1 -L/wrk/pa20_32/lib/gcc -L/usr/local/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.1 -L/usr/ccs/lib -L/opt/langtools/lib -L/wrk/pa20_32/lib -L/usr/local/pa20_32/lib /dev/null -lgcc -lc -lgcc /usr/ccs/bin/ld: Unexpected end of file in /dev/null collect2: ld returned 1 exit status
Prebuilt perl-5.8.8 depot from my site: http://mirrors.develooper.com/hpux/perl-5.8.8-dor-11.11.sd.bz
Binary GNU gcc that compiled that build: http://mirrors.develooper.com/hpux/gcc-3.4.5-11.11.sd.bz
If you insist on GNU gcc-4.0.3: http://mirrors.develooper.com/hpux/gcc-4.0.3-11.11.sd.bz
but perl build with 4.0.3 in 64bit mode is unreliable.
\`sh cflags "optimize='\-g \-O'" pp\_sys\.o\` pp\_sys\.c CCCMD = gcc \-DPERL\_CORE \-c \-D\_HPUX\_SOURCE \-mpa\-risc\-2\-0
-DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O
-Wall In file included from pp_sys.c:45: /usr/include/shadow.h:42: error: conflicting types for 'getspnam' /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here *** Error exit code 1Relevant lines in shadow.h and prot.h:
/usr/include/prot.h:650:extern struct spwd *getspnam __((char *)); /usr/include/shadow.h:42: extern struct spwd * getspnam(const char *); /usr/include/shadow.h:49: struct spwd * getspnam();
Both files have the same date/time.
-- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2\, 5.8.x\, 5.9.x on HP-UX 10.20\, 11.00\, 11.11\, & 11.23\, SuSE 10.0\, AIX 4.3 & 5.2\, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/
On 5/16/06\, Jim.Duffield@hydroone.com \Jim\.Duffield@​hydroone\.com wrote:
Thanks for your assistance. I needed to upgrade my Perl 5.8.7 because I'm trying to perlcc a script\, and 5.8.7 wasn't working very well.
perlcc doesn't work well in any version. You probably want to consider PAR instead. http://par.wikia.com/wiki/Main_Page
Josh
Actually\, I discovered I had to recompile a few libraries (Params::Validate\, Log::Dispatch and Log:Log4perl). Now I'm getting different errors\, the same as another report (ports/93033):
root@tmsovo1:/extern_intf #perlcc sd_event.pl /opt/perl/bin/perlcc: sd_event.pl did not compile\, which can't happen: Starting compile Walking tree Log::Log4perl::Layout saved (it is in Log::Log4perl::Layout::PatternLayout's @ISA) Exporter saved (it is in Symbol's @ISA) IO::Handle saved (it is in IO::File's @ISA) IO::Seekable saved (it is in IO::File's @ISA) Log::Log4perl::Config::BaseConfigurator saved (it is in Log::Log4perl::Config::PropertyConfigurator's @ISA) DynaLoader saved (it is in Time::HiRes's @ISA) Prescan Saving methods No definition for sub Config::config_vars No definition for sub Config::config_vars (unable to autoload) No definition for sub Config::myconfig No definition for sub Config::myconfig (unable to autoload) Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. No definition for sub Config::config_sh No definition for sub Config::config_sh (unable to autoload) No definition for sub Config::config_re No definition for sub Config::config_re (unable to autoload) Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in length at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 684. Use of uninitialized value in pack at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 270. Use of uninitialized value in pack at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 660. Use of uninitialized value in length at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 684. Use of uninitialized value in pack at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 270. Use of uninitialized value in pack at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 660. Use of uninitialized value in length at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 684. Use of uninitialized value in pack at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 270. Use of uninitialized value in pack at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 660. Use of uninitialized value in length at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 684. Use of uninitialized value in pack at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 270. Use of uninitialized value in pack at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 660. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Bootstrap Time::HiRes /opt/perl/lib/5.8.8/PA-RISC2.0/Time/HiRes.pm Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. No definition for sub POSIX::WIFEXITED No definition for sub POSIX::WIFEXITED (unable to autoload) Use of uninitialized value in concatenation (.) or string at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 1063. Can't locate object method "IVX" via package "B::NV" at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 650. CHECK failed--call queue aborted.
I tried to find a module for Config on CPAN\, but nothing seemed to apply. Any suggestions?
Hydro One Telecom Jim Duffield OSS Architect jim.duffield@hydroone.com office: 905-840-0585 x377 mobile: 416-451-6071 http://www.hydroonetelecom.com/
-----Original Message----- From: DUFFIELD Jim Sent: May 16\, 2006 15:08 To: 'perlbug-followup@perl.org' Subject: RE: [perl #39143] Unable to make Perl 5.8.8 on HP-UX 11.11
Thanks for your assistance. I needed to upgrade my Perl 5.8.7 because I'm trying to perlcc a script\, and 5.8.7 wasn't working very well.
I downloaded and installed the updated binary (thanks VERY much...) and installed it without trouble. Now I'm getting a compile error when running "perlcc -O sd_event.pl -o sdEvent": Can't locate object method "_save_common_middle" via package "B::FAKEOP" at /opt/perl/lib/5.8.8/PA-RISC2.0/B/C.pm line 389.
I tried also just creating a .c using "perlcc sd_event.pl" and got: sh: 5544 Memory fault(coredump) /opt/perl/bin/perlcc: sd_event.pl did not compile\, which can't happen: Starting compile Walking tree
All that was left was a 0-byte sd_event.c file and a 5M core file.
Should I submit a new request for this\, or can we work it through #39143?
Regards...
Hydro One Telecom Jim Duffield OSS Architect jim.duffield@hydroone.com office: 905-840-0585 x377 mobile: 416-451-6071 http://www.hydroonetelecom.com/
-----Original Message----- From: H. Merijn Brand via RT [mailto:perlbug-followup@perl.org] Sent: May 16\, 2006 10:40 To: DUFFIELD Jim Subject: Re: [perl #39143] Unable to make Perl 5.8.8 on HP-UX 11.11
On Mon\, 15 May 2006 13:56:37 -0700\, "Jim.Duffield@HydroOne.com (via RT)" \perlbug\-followup@​perl\.org wrote:
I'm trying to install perl 5.8.8 on HP-UX 11.11 with PA-Risc 2.0 processors. I successfully ran Configure using "sh Configure -Dcc=gcc -de" and then it told me to run make. While running make\, after only a couple of warnings in the first several components\, I get the following:
Apart from the errors you get\, is there any specific reason for not using a prebuilt binary?
I suspect the version of the gcc you installed. If it was not explicitely built for 11.11-pa-risc-2.0\, you are bound to hit errors
# /usr/local/pa20_32/bin/gcc -v /dev/null Using built-in specs. Target: hppa2.0w-hp-hpux11.11 Configured with: ../src/configure --enable-languages=c\,c++ --prefix=/usr/local/pa20_32 --with-local-prefix=/usr/local/pa20_32 --with-gnu-as --with-as=/usr/local/pa20_32/bin/as --with-ld=/usr/ccs/bin/ld --disable-shared --disable-nls Thread model: single gcc version 4.1.1 20060428 (prerelease) /wrk/pa20_32/libexec/gcc/hppa2.0w-hp-hpux11.11/4.1.1/collect2 -L/lib/pa1.1 -L/usr/lib/pa1.1 -z -u main -u __gcc_plt_call /usr/ccs/lib/crt0.o /lib/unix98.o -L/wrk/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.1 -L/wrk/pa20_32/lib/gcc -L/usr/local/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.1 -L/usr/ccs/lib -L/opt/langtools/lib -L/wrk/pa20_32/lib -L/usr/local/pa20_32/lib /dev/null -lgcc -lc -lgcc /usr/ccs/bin/ld: Unexpected end of file in /dev/null collect2: ld returned 1 exit status
Prebuilt perl-5.8.8 depot from my site: http://mirrors.develooper.com/hpux/perl-5.8.8-dor-11.11.sd.bz
Binary GNU gcc that compiled that build: http://mirrors.develooper.com/hpux/gcc-3.4.5-11.11.sd.bz
If you insist on GNU gcc-4.0.3: http://mirrors.develooper.com/hpux/gcc-4.0.3-11.11.sd.bz
but perl build with 4.0.3 in 64bit mode is unreliable.
\`sh cflags "optimize='\-g \-O'" pp\_sys\.o\` pp\_sys\.c CCCMD = gcc \-DPERL\_CORE \-c \-D\_HPUX\_SOURCE \-mpa\-risc\-2\-0
-DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -Wall In file included from pp_sys.c:45: /usr/include/shadow.h:42: error: conflicting types for 'getspnam' /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here *** Error exit code 1
Relevant lines in shadow.h and prot.h:
/usr/include/prot.h:650:extern struct spwd *getspnam __((char *)); /usr/include/shadow.h:42: extern struct spwd * getspnam(const char *); /usr/include/shadow.h:49: struct spwd * getspnam();
Both files have the same date/time.
-- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2\, 5.8.x\, 5.9.x on HP-UX 10.20\, 11.00\, 11.11\, & 11.23\, SuSE 10.0\, AIX 4.3 & 5.2\, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/
p5p@spam.wizbit.be - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#39143 (status was 'resolved')
Searchable as RT39143$