Compile error, switch_swig.c
Hi, I'm in the process of updating freeswitch on a Linux server and found this compile error. The list of commands I used to get the source and compile, is at the end of the email. ... making all mod_perl Compiling perlxsi.c... Compiling mod_perl.c... Creating mod_perl.so... ../../../switch_swig.c: In function ?fs_core_init?: ../../../switch_swig.c:58: error: incompatible type for argument 2 of ?switch_core_init? ../../../switch_swig.c:58: error: too few arguments to function ?switch_core_init? Analysis: In switch_swig.c, switch_core_init is being called on line 58 with 2 args: status = switch_core_init(path, &err); But the function definition in switch_core.c has 3 args: SWITCH_DECLARE(switch_status_t) switch_core_init(const char *console, switch_core_flag_t flags, const char **err) I'm pretty sure I've gotten the latest of everything. Here's what I doing: cd /usr/src svn checkout <http://svn.freeswitch.org/svn/freeswitch/trunk>http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch - this got revision 6087 yesterday cd freeswitch ./bootstrap.sh export CFLAGS="-g -ggdb" export MOD_CFLAGS="-g -ggdb" ./configure make megaclean make all install Tom =============== tuhl@ix.netcom.com
On 10/30/07, tuhl@ix.netcom.com <tuhl@ix.netcom.com> wrote:
Hi, I'm in the process of updating freeswitch on a Linux server and found this compile error. The list of commands I used to get the source and compile, is at the end of the email.
...
there is a patch which fixes this issue. Its part of my patches for gcc 4.3compatibility (just coincidence that its in there as I enabled every module to try to make gcc 4.3 happy). If you want to test it, and this file is only one or two lines if you wanna just pull that out, feel free. http://jira.freeswitch.org/browse/MODAPP-44 -- Trixter http://www.0xdecafbad.com Bret McDanel Belfast +44 28 9099 6461 US +1 516 687 5200 http://www.trxtel.com the phone company that pays you!
Can you open an issue on Jira.freeswitch.org /b On Oct 30, 2007, at 12:20 PM, tuhl@ix.netcom.com wrote:
Hi, I'm in the process of updating freeswitch on a Linux server and found this compile error. The list of commands I used to get the source and compile, is at the end of the email.
... making all mod_perl Compiling perlxsi.c... Compiling mod_perl.c... Creating mod_perl.so... ../../../switch_swig.c: In function ?fs_core_init?: ../../../switch_swig.c:58: error: incompatible type for argument 2 of ?switch_core_init? ../../../switch_swig.c:58: error: too few arguments to function ? switch_core_init?
Analysis: In switch_swig.c, switch_core_init is being called on line 58 with 2 args: status = switch_core_init(path, &err);
But the function definition in switch_core.c has 3 args: SWITCH_DECLARE(switch_status_t) switch_core_init(const char *console, switch_core_flag_t flags, const char **err)
I'm pretty sure I've gotten the latest of everything. Here's what I doing: cd /usr/src svn checkout http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch - this got revision 6087 yesterday cd freeswitch ./bootstrap.sh export CFLAGS="-g -ggdb" export MOD_CFLAGS="-g -ggdb" ./configure make megaclean make all install
Tom
=============== tuhl@ix.netcom.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I committed a fix for this please test it. /b On Oct 30, 2007, at 12:20 PM, tuhl@ix.netcom.com wrote:
Hi, I'm in the process of updating freeswitch on a Linux server and found this compile error. The list of commands I used to get the source and compile, is at the end of the email.
... making all mod_perl Compiling perlxsi.c... Compiling mod_perl.c... Creating mod_perl.so... ../../../switch_swig.c: In function ?fs_core_init?: ../../../switch_swig.c:58: error: incompatible type for argument 2 of ?switch_core_init? ../../../switch_swig.c:58: error: too few arguments to function ? switch_core_init?
Analysis: In switch_swig.c, switch_core_init is being called on line 58 with 2 args: status = switch_core_init(path, &err);
But the function definition in switch_core.c has 3 args: SWITCH_DECLARE(switch_status_t) switch_core_init(const char *console, switch_core_flag_t flags, const char **err)
I'm pretty sure I've gotten the latest of everything. Here's what I doing: cd /usr/src svn checkout http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch - this got revision 6087 yesterday cd freeswitch ./bootstrap.sh export CFLAGS="-g -ggdb" export MOD_CFLAGS="-g -ggdb" ./configure make megaclean make all install
Tom
=============== tuhl@ix.netcom.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 10/30/07, Brian West <brian.west@mac.com> wrote:
I committed a fix for this please test it.
is the fix anything like the one in modapp-44? -- Trixter http://www.0xdecafbad.com Bret McDanel Belfast +44 28 9099 6461 US +1 516 687 5200 http://www.trxtel.com the phone company that pays you!
Its actually a one line fix to get it working for now. /b On Oct 30, 2007, at 3:49 PM, Trixter aka Bret McDanel wrote:
On 10/30/07, Brian West <brian.west@mac.com> wrote: I committed a fix for this please test it.
is the fix anything like the one in modapp-44?
-- Trixter http://www.0xdecafbad.com Bret McDanel Belfast +44 28 9099 6461 US +1 516 687 5200 http://www.trxtel.com the phone company that pays you! _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 10/31/07, Brian West <brian.west@mac.com> wrote:
Its actually a one line fix to get it working for now.
/b
Ahh going from memory, I defined a pointer (one line) and then changed the entry method to use that pointer (2nd line) which was for the return status of the core launch. Its trivial either way. -- Trixter http://www.0xdecafbad.com Bret McDanel Belfast +44 28 9099 6461 US +1 516 687 5200 http://www.trxtel.com the phone company that pays you!
participants (4)
-
Brian West
-
Trixter aka Bret McDanel
-
Trixter aka Bret McDanel
-
tuhl@ix.netcom.com