Operating System - Linux
1826234 Members
2361 Online
109692 Solutions
New Discussion

Perl - problem: Got error's when trying a 'make' of "Date-Calc-5.4"

 
Peter Mahler
New Member

Perl - problem: Got error's when trying a 'make' of "Date-Calc-5.4"

Hi,
I've problems to install the Perl-module
"Date-Calc-5.4" on a Itanium 2 -system.

HP-UX-Version: HP-UX B.11.23 U
Perl-Version: v5.8.5 built for IA64.ARCHREV_0
gcc-Version: 3.4.3

#perl Makefile.PL --> run w/o problems
#
#~/tmp/Date-Calc-5.4
# make
gcc -c -D_HPUX_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -O0 -DVERSION=\"5.4\" -DXS_VERSION=\"5.4\" -fPIC "-I/usr/local/lib/perl5/5.8.5/IA64.ARCHREV_0/CORE" Calc.c
In file included from /usr/local/lib/perl5/5.8.5/IA64.ARCHREV_0/CORE/perl.h:4112,
from Calc.xs:15:
/usr/include/sys/ipc.h:51: error: parse error before "cid_t"
/usr/include/sys/ipc.h:56: error: parse error before '}' token
In file included from /usr/local/lib/perl5/5.8.5/IA64.ARCHREV_0/CORE/perl.h:4113,
from Calc.xs:15:
/usr/include/sys/sem.h:91: error: field `sem_perm' has incomplete type
*** Error exit code 1

Stop.

Since I'm not very familiar with HP-UX and Perl ( I just use it ) I need some help / ideas how to solve the problem.

Thanks in advance!

Peter
1 REPLY 1
H.Merijn Brand (procura
Honored Contributor

Re: Perl - problem: Got error's when trying a 'make' of "Date-Calc-5.4"

I think your gcc does not exact match your OS release and/or your include files are not up to date.

This is not perl's or Date::Calc's fault.

The Perl-Version you state matches your OS, but you did not state the full version for gcc

x1:/u/usr/merijn 104 > gcc -c -v /dev/null
Using built-in specs.
Target: ia64-hp-hpux11.23
Configured with: ../src/configure --enable-languages=c,c++ --prefix=/usr/local/ia64 --with-local-prefix=/usr/local/ia64 --with-gnu-as --with-as=/usr/local/ia64/bin/as --disable-shared --disable-nls --host=ia64-hp-hpux11.23
Thread model: single
gcc version 4.1.1
gcc: /dev/null: linker input file unused because linking not done
x1:/u/usr/merijn 105 >

FWIW, a more recent version of perl is available from my site. It already includes Date::Calc

http://mirrors.develooper.com/hpux/downloads.html#hpux1123 : perl 5.8.8 + defined-or + DBI 1.50 + Tk 804.027 built with gcc-4.0.2 :
http://mirrors.develooper.com/hpux/perl-5.8.8-dor-11.23.sd.bz

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