From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020205 Description of problem: make test fails with reason "ELF file's phentsize not the expected" Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Download latest stable version of perl from http://www.cpan.org/src/stable.tar.gz 2. tar xzf stable.tar.gz 3. cd perl-5.6.1/ 4. rm -f config.sh Policy.sh 5. sh Configure -de 6. make 7. make test Actual Results: A small subset of the error messages is as follows. Basically it fails 52 of the 205 tests. -------------------- lib/syslfs...........Can't load '../lib/auto/Fcntl/Fcntl.o' for module Fcntl: ../lib/auto/Fcntl/Fcntl.o: ELF file's phentsize not the expected size at ../lib/XSLoader.pm line 75. at ../lib/Fcntl.pm line 220 Compilation failed in require at lib/syslfs.t line 14. BEGIN failed--compilation aborted at lib/syslfs.t line 15. FAILED at test 0 lib/syslog...........Can't load '../lib/auto/Socket/Socket.o' for module Socket: ../lib/auto/Socket/Socket.o: ELF file's phentsize not the expected size at ../lib/XSLoader.pm line 75. Expected Results: It should say all tests successful. Additional info: This server was a very toned down server. I had opted for a custom installation and had deselected Developement packages and Utilites and after that selected gcc3 which in turn had pulled in a couple more packages including glibc-devel. I do know that these were the packages which definitely were installed. gcc3-3.0.1-3 gcc3-c++-3.0.1-3 libstdc++3-3.0.1-3 libstdc++3-devel-3.0.1-3 I believe libstdc++-2.96 was also installed. I removed gcc3, gcc3-c++, libstdc++3 and libstdc++3-devel and ran up2date gcc gcc-c++ and re ran the compillation procedure for perl and it worked perfectly.
Unless you tweaked perl manually, it wouldn't use gcc3 because it is available only as gcc3 (resp. g++3 etc.) commands.
All perl needs is something which can compile C code preferably with the "cc" command so I made a symlink from /usr/bin/gcc3 to /usr/bin/cc . Please note compilation went through completely without aborting at any stage.