develooper Front page | perl.perl5.porters | Postings from November 2014

[perl #123297] 5.21.6 & blead: FreeBSD 10.0 & clang 3.3: compilation error with ext/POSIX/POSIX.c

Thread Previous | Thread Next
From:
slaven@rezic.de via RT
Date:
November 24, 2014 22:05
Subject:
[perl #123297] 5.21.6 & blead: FreeBSD 10.0 & clang 3.3: compilation error with ext/POSIX/POSIX.c
Message ID:
rt-4.0.18-21931-1416866730-757.123297-15-0@perl.org
Dana Pon 24. Stu 2014, 13:50:47, slaven@rezic.de reče:
> Compiling bleadperl (or perl 5.21.6) under FreeBSD 10.0 fails. The log
> is included below.
> 
> Manually compiling POSIX.c without the "-ansi" option works, and after
> doing this change, "make" finished without further errors.
> 
> FreeBSD 9.2 is not affected by this problem.

It seems I failed to read perl5216delta.pod, the "Known problems" section.

> Regards,
>     Slaven
> 
> ...
> ./miniperl -Ilib make_ext.pl lib/auto/POSIX/POSIX.so  MAKE="make"
> LIBPERL_A=libperl.a LINKTYPE=dynamic
> cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
> -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2
> -DSTRUCT_TM_HASZONE -Wall -ansi -Werror=declaration-after-statement
> -Wextra -Wc++-compat -Wwrite-strings -O    -DVERSION=\"1.47\"
> -DXS_VERSION=\"1.47\" -DPIC -fPIC "-I../.."   POSIX.c
> In file included from POSIX.xs:38:
> /usr/include/fenv.h:117:15: error: unknown type name 'inline'
> __fenv_static inline int
>               ^
> /usr/include/fenv.h:117:22: error: expected identifier or '('
> __fenv_static inline int
>                      ^
> /usr/include/fenv.h:138:8: error: unknown type name 'inline'
> static inline int
>        ^
> /usr/include/fenv.h:138:15: error: expected identifier or '('
> static inline int
>               ^
> /usr/include/fenv.h:271:15: error: unknown type name 'inline'
> __fenv_static inline int
>               ^
> /usr/include/fenv.h:271:22: error: expected identifier or '('
> __fenv_static inline int
> ...
> 3 warnings and 14 errors generated.
> *** Error code 1




---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=123297

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About