[Home]

Summary:ASTERISK-26249: app_confbridge: Compliling Asterisk - confbridge module issue
Reporter:Lukasz (Lukasz_HG)Labels:
Date Opened:2016-07-28 05:19:28Date Closed:2016-07-28 06:27:07
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_confbridge Core/BuildSystem
Versions:13.10.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Hardware: Azure Cloud (various) Operating System: CentOS Linux 7 (Core) Kernel: Linux 3.10.0-327.22.2.el7.x86_64 Architecture: x86-64 PJproject 2.5.5 Jansson 2.7Attachments:
Description:Hi, Once I am trying to deploy latest asterisk I get an issue on the "make" command. It is as follows:
Generating embedded module rules ...
  [LD] app_confbridge.o confbridge/conf_state_single_marked.o confbridge/conf_state.o confbridge/conf_state_single.o confbridge/conf_state_multi_marked.o confbridge/conf_chan_record.o confbridge/conf_state_multi.o confbridge/conf_state_empty.o confbridge/conf_config_parser.o confbridge/confbridge_manager.o confbridge/conf_chan_announce.o confbridge/conf_state_inactive.o -> app_confbridge.so
/usr/bin/ld: confbridge/conf_state.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
confbridge/conf_state.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [app_confbridge.so] Error 1
make: *** [apps] Error 2


I have deployed rc version without issue so I assume issue is cause in this build only.
Comments:By: Asterisk Team (asteriskteam) 2016-07-28 05:19:28.995-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-28 05:23:12.897-0500

Thank you for taking the time to report this bug and helping to make Asterisk better. Unfortunately, we cannot work on this bug because your description did not include enough information. Please read over the Asterisk Issue Guidelines [1] which discusses the information necessary for your issue to be resolved and the format that information needs to be in. We would be grateful if you would then provide a more complete description of the problem. At a minimum, we need:

1. The specific steps or actions you took that caused you to encounter the problem.
2. The behavior you expected and the location of documentation that led you to that expectation.
3. The behavior you actually encountered.

To demonstrate the issue in detail, please include Asterisk log files generated per the instructions on the wiki [2]. If applicable, please ensure that protocol-level trace debugging is enabled, e.g., 'sip set debug on' if the issue involves chan_sip, and configuration information such as dialplan and channel configuration.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines

[2] https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

Please also describe how you configured Asterisk (what arguments you passed to configure) and the console output from the complete build, as well as the config.log file.

By: Lukasz (Lukasz_HG) 2016-07-28 05:31:05.839-0500

Well there is not much to trace. I have spin up VM, then I have installed MariaDB on it followed by PJProject and Jannson. Once that has been completed I have visited your site and got latest binaries. Then continued with download and unpack.

Straight after I entered those commands in the folder where I unzipped Asterisk.
contrib/scripts/install_prereq install
./configure --libdir=/usr/lib64
make menuselect

For starters I thought I missed some modules but I have marked all of them this time. Then I entered "make" command and I received that error. If you need more info like logs then please navigate me where I could grab compiler logs as I am not aware of those.

By: Joshua C. Colp (jcolp) 2016-07-28 05:34:49.622-0500

The complete build output after you type make, as well as the config.log from the directory in which you extracted/built Asterisk is what would be good to see.

What I'm trying to see is if there's anything evident in those. As it is Asterisk itself is built daily multiple times against 32-bit and 64-bit Ubuntu 14.04 and CentOS 6, and I do believe there are people using it on CentOS 7 as well - so it's likely something specific to the environment.

By: Lukasz (Lukasz_HG) 2016-07-28 06:22:39.155-0500

Well this is embarrassing.  I have followed your line of thought and decided to check config.log. It was quite messy so I chose to rebuild asterisk and get it all started from scratch. In the meantime I have redeployed VM to use different hardware in MS datacentre.
I went through all the steps again in hopes to get clear logs. Surprisingly I have complied Asterisk successfully and installed as well.

Bottom line you were right about environmental issue. It just didnt occur to me as it happened on that single version 3 times in the row. Thanks for help.

PS. Could you point me to some sort of resource where I could learn background processes of Asterisk. I have read Asterisk Cookbook and many articles/forums on the web but they just summarize asterisk rather then dive deep down. What I am interested in is how asterisk deal with commands in its console. Recently I had build which had corrupted dialplan. It was missing "reload" option and couldnt troubleshoot it. I assume it was not loaded module but couldnt tell which one.
If you could point me I would be thankful.



By: Joshua C. Colp (jcolp) 2016-07-28 06:27:07.810-0500

The Asterisk wiki[1] is the main source of Asterisk information, but there's no real current documentation on where commands and such live. In the case of "dialplan reload" it's the pbx_config.so module. You can also use the community site[2] if you have questions or run into such problems.

[1] https://wiki.asterisk.org/
[2] https://community.asterisk.org/

By: Lukasz (Lukasz_HG) 2016-07-28 06:29:36.270-0500

Thanks a lot

By: Asterisk Team (asteriskteam) 2016-07-28 06:29:36.367-0500

This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable.