Operating System - HP-UX
1832997 Members
2224 Online
110048 Solutions
New Discussion

Problems building Perl 4 in HPUX11

 
Federico Ramirez
Occasional Contributor

Problems building Perl 4 in HPUX11

Im having problems when building Perl 4 in HPUX 11 on a L2000 machine. It seems that there are some declarations in stab.h, hash.h and perl.h that are causing and "Unexpected symbol" error in the c89 compiler. Has anyone else experienced this kind of problems?
Perl! C++! Unix!
5 REPLIES 5
Rodney Hills
Honored Contributor

Re: Problems building Perl 4 in HPUX11

Why would you compile perl 4, when perl 5 is compiled and ready to install from the HP port and archive center?

http://hpux.cs.utah.edu/
There be dragons...
Shannon Petry
Honored Contributor

Re: Problems building Perl 4 in HPUX11

I dont know that perl 4 will compile in HP-UX11. Lots of includes have changed since 10.20!

As recommended by someone else, download and swinstall perl5.6 from the porting center. Perl5 can understand all of the perl4 comands/constructs/etc.... so there is no reason I can see to put an old version anywhere!

Regards,
Shannon
Microsoft. When do you want a virus today?
Federico Ramirez
Occasional Contributor

Re: Problems building Perl 4 in HPUX11

Thank you for your answers.

I need to have Perl 4 because of some modules that use it instead of Perl 5.

I want to avoid changing those to Perl 5 since that would involve a rather significant amount of work and (I anticipate) a lot of headaches.
Perl! C++! Unix!
Patrick Wallek
Honored Contributor

Re: Problems building Perl 4 in HPUX11

Perl 4 should already be on your system. Look in /usr/contrib/bin for a perl binary. That should be perl4.
Federico Ramirez
Occasional Contributor

Re: Problems building Perl 4 in HPUX11

Perl 4 is already installed and working in the L2000 machine. However, I need to rebuild it in order to be able to recompile some modules that were written for Perl 4.
I'm getting the following output when rebuilding the source code for those libraries:

_____BEGIN SCREEN DUMP________


6 /ata/mate/qinperl_src/Qinperl-1.1/src>make
c89 -D_HPUX_SOURCE -DDBUG_OFF -I/ata/6.2.2/include -I/ata/6.2.2/qts/include -I/ata/mate/qinperl_src/perl-4.036 -O +e -Idbugc
cpp: "/ata/6.2.2/qts/include/qtsflr.h", line 171: warning 2001: Redefinition of macro OK.
/ata/mate/qinperl_src/perl-4.036/usub/mus qin.mus > qin.c
c89 -D_HPUX_SOURCE -DDBUG_OFF -I/ata/6.2.2/include -I/ata/6.2.2/qts/include -I/ata/mate/qinperl_src/perl-4.036 -O +e -Idbugc
cpp: "/usr/include/sys/param.h", line 420: warning 2001: Redefinition of macro MIN.
cpp: "/usr/include/sys/param.h", line 421: warning 2001: Redefinition of macro MAX.
(cd dbug ; make dbug.o)
cc -O -c dbug.c
cc: "dbug.c", line 174: warning 562: Redeclaration of "perror" with a different storage class specifier: "perror" will have interna.
cc: "dbug.c", line 988: warning 562: Redeclaration of "DoProfile" with a different storage class specifier: "DoProfile" will have i.
cc: "dbug.c", line 1671: warning 562: Redeclaration of "DelayArg" with a different storage class specifier: "DelayArg" will have in.
(back to main directory)
c89 -D_HPUX_SOURCE -DDBUG_OFF -I/ata/6.2.2/include -I/ata/6.2.2/qts/include -I/ata/mate/qinperl_src/perl-4.036 -O +e -Idbugc
c89 -D_HPUX_SOURCE -DDBUG_OFF -I/ata/6.2.2/include -I/ata/6.2.2/qts/include -I/ata/mate/qinperl_src/perl-4.036 -O +e -Idbugm
/usr/ccs/bin/ld: Unsatisfied symbols:
_filbuf (first referenced in /ata/mate/qinperl_src/perl-4.036/uperl.o) (code)
*** Error exit code 1

Stop.

_______END SCREEN DUMP________

As you can see, the build crashes when trying to find _filbuf in uperl.o

Are there any workarounds for this?

TIA

Federico

P.S: Something weird happens when I try to qualify the answers, the site gives me an "Object not found" message.
Perl! C++! Unix!