Jun 8, 2007, 6:08 PM
Post #1 of 2
Strange runtime errors
We recently moved our perl codes and cgi to a new platform on a Solaris 10 X86 system. Installed perl 5.8.8 and all the perl modules necessary to make our application run. Used a gcc 3.4.6 compiler to create the binaries. We also needed syscalls so I got all the C header files *.h to *.ph using h2ph. Perfect? ...not so. When I run the web application at some point it calls a ccompile.ph and throws out the following error:
[Mon Jun 4 12:12:01 2007] nph-ExperimentEntry: [Mon Jun 4 12:12:01 2007] nph-ExperimentEntry: Undefined subroutine &main::__GNUC_PATCHLEVEL__ called at (eval 264) line 1.
[Mon Jun 4 12:12:01 2007] nph-ExperimentEntry: Compilation failed in require at /tools/perl/5.8.8_new/lib/site_perl/5.8.8/i86pc-solaris/sys/feature_tests.ph line 7.
Compilation failed in require at /tools/perl/5.8.8_new/lib/site_perl/5.8.8/i86pc-solaris/sys/resource.ph line 7.
For help, please send mail to the webmaster giving this error message and the time and date of the error.
nph-ExperimentEntry is the perl script that is doing the system call. On the old platform which is Solaris SPARC, it runs without any problems. Ofcourse there is no such thing as ccompile.h there. What can be wrong. Is there something that I would have missed while using the compiler. I had suspected my build of the gcc compiler 3.4.6 and so recompiled perl using the gcc compiler that came with solaris 10. There was no improvement either way.
I look forward to any reply/insight to this strange problem.