[Home]

Summary:ASTERISK-26225: Failed to compile
Reporter:Claudiu Olteanu (claudiuolteanu)Labels:
Date Opened:2016-07-21 20:24:42Date Closed:2016-07-22 05:16:34
Priority:MajorRegression?
Status:Closed/CompleteComponents:Tests/testsuite
Versions:13.10.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:RedHat 7.2 x86_64 gcc version 4.8.5Attachments:( 0) menuselect.makedeps.txt
( 1) menuselect.makeopts.txt
Description:Hi there,

I just downloaded the latest version  (13.10.0)  and when I try to compile it i get the following error:

```
[root@srv01 asterisk-13.10.0]# make
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-13.10.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-13.10.0/menuselect'
  [CC] test_res_pjsip_scheduler.c -> test_res_pjsip_scheduler.o
test_res_pjsip_scheduler.c: In function ‘scheduler’:
test_res_pjsip_scheduler.c:112:2: warning: implicit declaration of function ‘ast_test_validate’ [-Wimplicit-function-declaration]
 ast_test_validate(test, test_data1 != NULL);
 ^
test_res_pjsip_scheduler.c: In function ‘scheduler_cleanup’:
test_res_pjsip_scheduler.c:265:38: error: ‘res’ undeclared (first use in this function)
 ast_test_validate(test, (when < 0), res, error);
                                     ^
test_res_pjsip_scheduler.c:265:38: note: each undeclared identifier is reported only once for each function it appears in
test_res_pjsip_scheduler.c:265:43: error: ‘error’ undeclared (first use in this function)
 ast_test_validate(test, (when < 0), res, error);
                                          ^
make[1]: *** [test_res_pjsip_scheduler.o] Error 1
make: *** [tests] Error 2
```
Comments:By: Asterisk Team (asteriskteam) 2016-07-21 20:24:42.753-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: Joshua C. Colp (jcolp) 2016-07-22 04:37:57.673-0500

Those modules don't get enabled by default and the dependency on that specific one is indeed correct... what is your menuselect.makeopts? What options did you pass to configure? What did you turn on in menuselect?

By: Claudiu Olteanu (claudiuolteanu) 2016-07-22 05:01:09.988-0500

My bad. I tried to use the menuselect.makeopts from an older version, in order to skip the configuration.
If I regenerate the menuselect.makeopts, it compiles correctly.

By: Joshua C. Colp (jcolp) 2016-07-22 05:16:34.472-0500

Yes, since 13 can have newly added stuff you need to re-save the menuselect configuration so additional things can be excluded - otherwise they will be built when they shouldn't be.