Summary: | ASTERISK-27171: Asterisk 15.0.0-Beta1 does not compile | ||||
Reporter: | Ira Emus (extrasensory) | Labels: | patch | ||
Date Opened: | 2017-08-02 12:49:58 | Date Closed: | 2017-08-04 20:39:33 | ||
Priority: | Major | Regression? | |||
Status: | Closed/Complete | Components: | Applications/app_voicemail | ||
Versions: | 15.0.0-beta1 | Frequency of Occurrence | Constant | ||
Related Issues: |
| ||||
Environment: | Centos 5 or 6 32 bit uname -r returns 2.6.18-419.el5 just went out of support If you need more info, just ask and I'll get it. | Attachments: | ( 0) Fix-compile-error-for-old-versions-of-GCC.patch | ||
Description: | Trying to compile 15 Beta 1 fails with:
> * [CC] app_voicemail.c -> app_voicemail.o cc1: error: unrecognized > command line option "-Wno-format-truncation" make[1]: *** > [app_voicemail.o] Error 1 make: *** [apps] Error 2 | ||||
Comments: | By: Asterisk Team (asteriskteam) 2017-08-02 12:49:59.180-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Corey Farrell (coreyfarrell) 2017-08-02 14:20:22.693-0500 Please try this patch to see if it'll compile with your environment. By: Ira Emus (extrasensory) 2017-08-02 15:38:08.948-0500 Not to sound like a dummy, but what do I do with a patch file? I assume something like: patch -i 0001-Fix-compile-error-for-old-versions-of-GCC.patch What folder do I need to run it in and does the header at the top that's not part of the patch file need to be deleted? Thanks for the prompt response. Ira By: Corey Farrell (coreyfarrell) 2017-08-02 15:41:47.375-0500 Close, you'll need to add {{-Np1}} to the command: | patch -i 0001-Fix-compile-error-for-old-versions-of-GCC.patch -Np1 You should run this from the folder with the extracted Asterisk sources, the same directory where you run {{./configure}}. No need to modify the file, it should apply as is. By: Ira Emus (extrasensory) 2017-08-02 16:02:11.239-0500 That was easy and it compiled with no errors. Tonight I will try to install it and see if it seems to work. Thanks for the help with the baby steps. Ira By: Ira Emus (extrasensory) 2017-08-03 02:26:13.827-0500 All 3 versions of the patch compiled just fine on my system. Ira |