Re: [asterisk-dev] Problems with custom C-file: undefined reference

2016-12-20 Thread Corey Farrell
Forget about *.exports if your goal is to make system.c functions available for use from chan_sip.c. All that is needed is for system.c to be placed in channels/sip/ - not channels/. Putting the file in the correct place will link it into chan_sip.so, thus making the functions available to call f

Re: [asterisk-dev] Problems with custom C-file: undefined reference

2016-12-16 Thread Julian Fleischhauer
Because this problem most likely being the last barrier to finish my project, I will explain it once again in a little more detail. There are the following files that I think may be important to solve the problem: *channels/chan_sip.c* *channels/sip/include/system.h* *channels/system.c* *channels/

Re: [asterisk-dev] Problems with custom C-file: undefined reference

2016-12-12 Thread Julian Fleischhauer
Thank you for this simple solution, it solved the last problem. Another issue arised: Before, system.c was in the main/ directory and used the project wide exports file to export its functions, now it's in channels/ where apparantly doesn't exist such a file. I created *system.exports.in

Re: [asterisk-dev] Problems with custom C-file: undefined reference

2016-12-09 Thread Corey Farrell
I'm not sure what you're trying to accomplish but this is not the approach I'd take for expanding chan_sip. My advice is to simply put your system.c into channels/sip. This will automatically link it into the binary chan_sip module, but allow you to keep your source code in a separate file. I be

Re: [asterisk-dev] Problems with custom C-file: undefined reference

2016-12-09 Thread Julian Fleischhauer
I could resolve the XML and pcap issues, but still have problems concerning "sip_get_header()". I don't want to rename the function since it's a frequently used function in chan_sip.c, I therefore defined an .exports.in file. I don't know if Mr. Michelson understood me correctly, but I think chan_s

Re: [asterisk-dev] Problems with custom C-file: undefined reference

2016-12-06 Thread Mark Michelson
On 12/05/2016 04:53 PM, Julian Fleischhauer wrote: Hey all, I have a problem using a custom C-file. The error ouput received when compiling is given below. error output .../system.c:1330: undefined reference to `XML_ParserCreate' ... .../system.c:1465: undefined reference to `sip_get_header'

[asterisk-dev] Problems with custom C-file: undefined reference

2016-12-05 Thread Julian Fleischhauer
Hey all, I have a problem using a custom C-file. The error ouput received when compiling is given below. error output .../system.c:1330: undefined reference to `XML_ParserCreate' ... .../system.c:1465: undefined reference to `sip_get_header' ... .../system.c:1608: undefined reference to `pcap_