Hi Jerry,
> What will soon be released as gcc 5.0 has been imported into Fedora
> and is now being used to build packages for Fedora Rawhide. Bigloo
> 4.1a-2 fails to build with gcc 5.0. The reason appears to be that
> -Wimplicit-int is now on by default, and the check for -fpic runs with
> -Werror in CFLAGS. This causes that check to fail, so bigloo is built
> without -fpic, which leads to a lilnker failure when the shared
> objects are to be linked.
>
> Can the code be updated to explicitly supply a type in all cases?
> Failing that, please don't use -Werror. Here is a patch for the -fpic
> problem:
>
> --- autoconf/ccpic.orig 2014-02-21 09:15:23.000000000 -0700
> +++ autoconf/ccpic 2015-02-10 09:01:46.710526058 -0700
> @@@ -64,6 +64,7 @@@
>
> #* Test */
> #*---------------------------------------------------------------------*/
> cat > $file.c <<EOF
> +void
> direction( int new_addr )
> {
> static int *old_addr;
> @@@ -81,6 +82,7 @@@
>
> }
> }
>
> +int
> main( int argc, char *argv[] )
> {
> direction( 1 );
>
> The same problem will probably happen with autoconf/rdynamic, which
> also uses -Werror. Regards,
You are just right. Thanks for reporting this. I have applied your patch.
--
Manuel