Annoying error while compiling FreeSWITCH
I am getting build failure repeatedly due to this annoying -Werror. Each time any warning appears in code, the compilation fails treating it as error, e.g. /usr/src/svn-src/freeswitch/src/mod/applications/mod_voicemail_ivr/mod_voicemail_ivr.c:57:6: error: variable 'argc' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors Can you guy help me how to get rid of it? I tried finding and replacing -Werror with -Wall but there are so many make files to edit.. Thank you. -- Muhammad Shahzad ----------------------------------- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +92 334 422 40 88 MSN: shari_786pk@hotmail.com Email: shaheryarkh@googlemail.com
no, The solution is to fix the code and report the compilation errors as bugs. Warnings ARE errors. We have a strict policy. On Mon, Jan 16, 2012 at 4:01 PM, Muhammad Shahzad < shaheryarkh@googlemail.com> wrote:
I am getting build failure repeatedly due to this annoying -Werror. Each time any warning appears in code, the compilation fails treating it as error, e.g.
/usr/src/svn-src/freeswitch/src/mod/applications/mod_voicemail_ivr/mod_voicemail_ivr.c:57:6: error: variable 'argc' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors
Can you guy help me how to get rid of it? I tried finding and replacing -Werror with -Wall but there are so many make files to edit..
Thank you.
-- Muhammad Shahzad ----------------------------------- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +92 334 422 40 88 MSN: shari_786pk@hotmail.com Email: shaheryarkh@googlemail.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On Mon, Jan 16, 2012 at 2:01 PM, Muhammad Shahzad < shaheryarkh@googlemail.com> wrote:
I am getting build failure repeatedly due to this annoying -Werror. Each time any warning appears in code, the compilation fails treating it as error, e.g.
/usr/src/svn-src/freeswitch/src/mod/applications/mod_voicemail_ivr/mod_voicemail_ivr.c:57:6: error: variable 'argc' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors
In addition to what Tony said, this is a good reason to report bugs to jira.freeswitch.org. Also, just for reference, this particular module is not critical for FreeSWITCH to work - it was contributed by a community member (IRC: moc). Moc has A LOT of practice fixing his errors, so assign the bug to him. ;) In the meantime you can exclude this module from being built just by editing modules.conf in your freeswitch source directory. In fact, it might be worth it for you to review which modules you are building by default. There may be modules you don't want or need that you can skip. This will make your builds go faster and you won't get tripped up by annoying errors on modules that you don't actually use. -MC
Thanks both of you. I will practice it in the future. BTW i did get a way around the problem. That is after running bootstrap.sh, i edited configure file and changed all -Werror to -Wall, and then run configure script and everything worked fine. Not a recommended practice but a tip for desperate ones at desperate times, like me last night. Thank you. On Tue, Jan 17, 2012 at 4:24 AM, Michael Collins <msc@freeswitch.org> wrote:
On Mon, Jan 16, 2012 at 2:01 PM, Muhammad Shahzad < shaheryarkh@googlemail.com> wrote:
I am getting build failure repeatedly due to this annoying -Werror. Each time any warning appears in code, the compilation fails treating it as error, e.g.
/usr/src/svn-src/freeswitch/src/mod/applications/mod_voicemail_ivr/mod_voicemail_ivr.c:57:6: error: variable 'argc' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors
In addition to what Tony said, this is a good reason to report bugs to jira.freeswitch.org. Also, just for reference, this particular module is not critical for FreeSWITCH to work - it was contributed by a community member (IRC: moc). Moc has A LOT of practice fixing his errors, so assign the bug to him. ;)
In the meantime you can exclude this module from being built just by editing modules.conf in your freeswitch source directory. In fact, it might be worth it for you to review which modules you are building by default. There may be modules you don't want or need that you can skip. This will make your builds go faster and you won't get tripped up by annoying errors on modules that you don't actually use.
-MC
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Muhammad Shahzad ----------------------------------- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +92 334 422 40 88 MSN: shari_786pk@hotmail.com Email: shaheryarkh@googlemail.com
participants (3)
-
Anthony Minessale
-
Michael Collins
-
Muhammad Shahzad