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
From:
slaven @ rezic . de
Date:
November 24, 2014 21:51
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-23363-1416865847-352.123297-75-0@perl.org
# New Ticket Created by  slaven@rezic.de 
# Please include the string:  [perl #123297]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123297 >


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.

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


Thread Previous


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