GCC 5.0 failure

Jerry James <[email protected]>
Newsgroups gmane.lisp.scheme.bigloo
Message-ID <CAHCOHQkzwo9ZOzenFTzpQzF=aPVb3CEH9T6G4CqwDg9qVXgzvg@mail.gmail.com>
Greetings,

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,
-- 
Jerry James
http://www.jamezone.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.