Operating System - HP-UX
1832594 Members
2797 Online
110043 Solutions
New Discussion

Re: Compile Perl 5.8.0 fails at Making Digest::MD5 (dynamic)

 
Peter Kain
Advisor

Compile Perl 5.8.0 fails at Making Digest::MD5 (dynamic)

I'm trying to compile Perl 5.8.0 on a N-Class (11i) using HP's C compiler

B.11.11.04 HP C/ANSI C Developer's Bundle for HP-UX 11.i (S800)

make fails

Making Digest::MD5 (dynamic)
Writing Makefile for Digest::MD5
cp MD5.pm ../../../lib/Digest/MD5.pm
../../../miniperl "-I../../../lib" "-I../../../lib" ../../../lib/ExtUtils/xsubpp -typemap ../../../lib/ExtUtils/typemap -typemap typemap MD5.xs > MD5.xsc && mv MD5.xsc MD5.c
cc -c -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +O2 +Onolimit -DVERSION=\"2.20\" -DXS_VERSION=\"2.20\" +Z "-I../../.." MD5.c
cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of "sendfile" with a different storage class specifier: "sendfile" will have internal linkage.
cc: "/usr/include/sys/socket.h", line 505: warning 562: Redeclaration of "sendpath" with a different storage class specifier: "sendpath" will have internal linkage.
cc: "MD5.xs", line 645: error 1588: "dowarn" undefined.
cc: "MD5.xs", line 645: error 1563: Expression in if must be scalar.
*** Error exit code 1

I've checked out Procura's web site but he used GCC for his Perl 5.8.0.

I really don't want to use GCC since I have HP's C compiler.

Has anyone compiled Perl 5.8.0 on an 11i system with HP's C compiler with the default modules.

I removed all references to
Digest/MD5 from the config.sh
file and it compiled.

Thanks in advance for any help you can provide.




2 REPLIES 2
Christopher LaPlante_1
Frequent Advisor

Re: Compile Perl 5.8.0 fails at Making Digest::MD5 (dynamic)

I am getting the same type of errors "cc: "/usr/include/sys/socket.h", line 504: warning 562: Redeclaration of "sendfile" with a different storage class specifier: "sendfile" will have internal linkage" Have you found a fix to this error?
H.Merijn Brand (procura
Honored Contributor

Re: Compile Perl 5.8.0 fails at Making Digest::MD5 (dynamic)

A good choice to use HP C-ANSI-C.

I don't have 11i, so I cannot help you there. I know however that there have been some recent updates to MD5, so what you can /try/ is to disable MD5 from the core, and add it later.

I do not know the Configure option by head, but what you can try is

# chmod 000 ext/Digest

or change config.sh after Configure and remove MD5 from the list of configured modules, and than add the CPAN version later. AT least it is easier to debug and solve for one modules, than it is to do it in the CORE distribution.

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn