[Home]

Summary:ASTERISK-24783: Build fails with gcc 5
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2015-02-12 07:08:58.000-0600Date Closed:2018-02-20 05:51:18.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:General
Versions:SVN 13.1.0 Frequency of
Occurrence
Related
Issues:
Environment:Debian experimentalAttachments:
Description:Debian Tries adding a GCC 5 package and are test-building all packages with GCC 5. Building of Asterisk failed.

Issue: http://bugs.debian.org/777782
Log: http://people.debian.org/~doko/logs/gcc5-20150205/asterisk_13.1.0~dfsg-1_unstable_gcc5.log

Replicated with current SVN trunk (r431699)
Comments:By: Matt Jordan (mjordan) 2015-02-12 12:20:58.849-0600

It looks like it doesn't enjoy {{AST_INLINE_API}}.

It'd be nice to know what {{gcc}} changed with respect to the {{inline}} keyword that caused this to malfunction. As it is, since we're not using {{gcc 5}} anywhere yet, I'm not sure this is going to get jumped on quickly.

By: Matt Jordan (mjordan) 2015-02-12 12:27:23.505-0600

Annoyingly, nothing here looks like it should fail to resolve that the {{extern inline}} variant is not a re-definition of the function: https://gcc.gnu.org/gcc-5/changes.html



By: Matt Jordan (mjordan) 2015-02-12 12:28:08.678-0600

And my first comment is not that I wouldn't like a patch to fix this, just that I don't have gcc 5 on a system I can go poke at currently.

By: Corey Farrell (coreyfarrell) 2018-02-20 04:42:33.896-0600

It looks to me like this issue is resolved?  I don't have access to gcc-5 but Asterisk has no issues building with gcc-7.

By: Tzafrir Cohen (tzafrir) 2018-02-20 05:49:57.108-0600

I don't have such a system handy right now, but yes, it's resolved by now.

By: Tzafrir Cohen (tzafrir) 2018-02-20 05:51:18.937-0600

Fixed. At a certain point in branch 13.