I can't install perl-5.26.0-RC1 in CentOS 5.11

I try new perl in Cent OS 5.

But I can't install perl-5.26.0-RC1 in CentOS 5.11.

sv.c:(.text+0xe11): undefined reference to `Perl_fp_class_denorm'

Maybe this is similar with the following ticket.

https://www.nntp.perl.org/group/perl.perl5.porters/2016/09/msg239982.html

More information

$ uname -a
Linux www7402u.sakura.ne.jp 2.6.18-404.el5 #1 SMP Tue Apr 7 12:42:54 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release
CentOS release 5.11 (Final)

$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)

Error

cc -fstack-protector -L/usr/local/lib -o miniperl \
   2424       opmini.o perlmini.o  gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o p        p.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o         pp_pack.o pp_sort.o caretx.o dquote.o time64.o  miniperlmain.o  -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
   2425 sv.o: In function `S_hextract':
   2426 sv.c:(.text+0xe11): undefined reference to `Perl_fp_class_denorm'
   2427 collect2: ld returned 1 exit status
   2428 make: *** [lib/buildcustomize.pl] Error 1


8 Comments

Hi!

Thanks for testing 5.26.0-RC1. :)

Which version of GCC do you have? Is the one matching the report?

Would you be able to either (a) sign up for the Perl 5 Porters mailing list send email to: perl5-porters-subscribe@perl.org) or (b), using a newsreader, subscribe to the perl.perl5.porters group at nntp.perl.org?

Members of the Perl 5 Porters are working on your problem, but they need to interact with you. That will be much easier on list than here?

Thank you very much.
Jim Keenan

Im on CentOS release 5.11 (Final)using gcc version 4.4.7 20120313 (Red Hat 4.4.7-1) (GCC) and have same error when trying to build perl 5.24.3


...
miniperlmain.o -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
sv.o: In function `S_hextract':
sv.c:(.text+0x9b5): undefined reference to `Perl_fp_class_denorm'
collect2: ld returned 1 exit status
make: *** [lib/buildcustomize.pl] Error 1

Any success or we need to give up on CentOS 5.x and move forward to 6.x ?

Any progress on this ? I have a similar issue ... CentOS 5.11 gcc 4.4

cc -fstack-protector -L/usr/local/lib -o miniperl \
opmini.o perlmini.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o miniperlmain.o -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
sv.o: In function `S_hextract':
sv.c:(.text+0xce5): undefined reference to `Perl_fp_class_denorm'
collect2: ld returned 1 exit status
make: *** [lib/buildcustomize.pl] Error 1


OS: CentOS release 5.11 (Final)

GCC: gcc version 4.4.7 20120313 (Red Hat 4.4.7-1) (GCC)

Modifying sv.c as follows gets "make" and "make install" to work. line 11172 redefines the macro to use the fpclassify function which I thinks is intended.


11169-#define HEXTRACT_BYTES_BE(a, b) \
11170- for (ix = a; ix 11171:#define HEXTRACT_GET_SUBNORMAL(nv) *subnormal = Perl_fp_class_denorm(nv)
11172-#define HEXTRACT_GET_SUBNORMAL(nv) *subnormal = fpclassify(nv)
11173-#define HEXTRACT_IMPLICIT_BIT(nv) \

"make test" fails one test "os/sprintf2.t"

lib/warnings ................................................... ok
Failed 1 test out of 2372, 99.96% okay.
op/sprintf2.t
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
### ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.


See:
fpclassify(3)
NAME
fpclassify, isfinite, isnormal, isnan - floating-point classification macros

DESCRIPTION
Floating point numbers can have special values, such as infinite or NaN. With the macro fpclassify(x) you can find out what type x is. The macro takes any floating-point expression as argument. The result is one of the following
values: [...]

Leave a comment

About Yuki Kimoto

user-pic I'm Perl Programmer. I LOVE Perl. I want to contribute Perl community and Perl users.