linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] FTBS : mediastreamer-2.11.1 -- needs -Wno-error=unu


From: Gautier Pelloux-Prayer
Subject: Re: [Linphone-users] FTBS : mediastreamer-2.11.1 -- needs -Wno-error=unused-function and stdio.h must be added to bc_tester_utils.h
Date: Thu, 23 Apr 2015 09:27:06 +0200

Hi,

Thanks for reporting these issues, oddly we did not ran into them… But it 
should be fixed now!

Best regards,
 
Gautier Pelloux-Prayer
Software Engineer @ Belledonne Communications

> On 22 Apr 2015, at 21:29, J G Miller <address@hidden> wrote:
> 
> 
> 
>     PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
> 
>              Debian Version 7.8
> 
> 
> Configuring without any special options:
> 
> /bin/bash /usr/src/build/mediastreamer-2.11.1/configure --prefix="/usr/local"
> 
> 
> On trying to build with make
> 
>  CC       voip/msvideo_neon.lo
> voip/msvideo_neon.c:387:13: error: 'reverse_and_down_scale_32bytes_neon' 
> defined but not used [-Werror=unused-function]
> voip/msvideo_neon.c:406:13: error: 'reverse_16bytes_neon' defined but not 
> used [-Werror=unused-function]
> voip/msvideo_neon.c:425:13: error: 'deinterlace_and_reverse_2x8bytes_neon' 
> defined but not used [-Werror=unused-function]
> voip/msvideo_neon.c:444:13: error: 
> 'deinterlace_down_scale_and_reverse_2x16bytes_neon' defined but not used 
> [-Werror=unused-function]
> cc1: all warnings being treated as errors
> make[3]: *** [voip/msvideo_neon.lo] Error 1
> make[3]: Leaving directory `/usr/src/build/mediastreamer-2.11.1/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/src/build/mediastreamer-2.11.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/build/mediastreamer-2.11.1'
> make: *** [all] Error 2
> 
> 
> To overcome this CFLAGS needs to have
> 
>               -Wno-error=unused-function
> 
> 
> Compilation of mediastreamer is then successful but the tester fails to build.
> 
> Making all in tester
> make[2]: Entering directory `/usr/src/build/mediastreamer-2.11.1/tester'
>  CC       common/bc_tester_utils.o
> common/bc_tester_utils.c: In function 'bc_tester_parse_args':
> common/bc_tester_utils.c:284:3: warning: implicit declaration of function 
> 'fprintf' [-Wimplicit-function-declaration]
> common/bc_tester_utils.c:284:3: error: incompatible implicit declaration of 
> built-in function 'fprintf' [-Werror]
> common/bc_tester_utils.c:284:3: error: 'stderr' undeclared (first use in this 
> function)
> common/bc_tester_utils.c:284:3: note: each undeclared identifier is reported 
> only once for each function it appears in
> common/bc_tester_utils.c:287:3: error: incompatible implicit declaration of 
> built-in function 'fprintf' [-Werror]
> common/bc_tester_utils.c:293:3: error: incompatible implicit declaration of 
> built-in function 'fprintf' [-Werror]
> common/bc_tester_utils.c:298:3: error: incompatible implicit declaration of 
> built-in function 'fprintf' [-Werror]
> common/bc_tester_utils.c: In function 'bc_tester_start':
> common/bc_tester_utils.c:322:3: warning: implicit declaration of function 
> 'snprintf' [-Wimplicit-function-declaration]
> common/bc_tester_utils.c:322:3: error: incompatible implicit declaration of 
> built-in function 'snprintf' [-Werror]
> common/bc_tester_utils.c: In function 'bc_tester_uninit':
> common/bc_tester_utils.c:355:3: error: incompatible implicit declaration of 
> built-in function 'snprintf' [-Werror]
> common/bc_tester_utils.c:356:3: warning: implicit declaration of function 
> 'rename' [-Wimplicit-function-declaration]
> cc1: all warnings being treated as errors
> make[2]: *** [common/bc_tester_utils.o] Error 1
> make[2]: Leaving directory `/usr/src/build/mediastreamer-2.11.1/tester'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/build/mediastreamer-2.11.1'
> make: *** [all] Error 2
> 
> 
> The problem is that bc_tester_utils.c usese the macro CHECK_ARGS from 
> bc_tester_utils.h
> 
> The macro CHECK_ARGS uses fprintf but fprintf is not defined becuase 
> bc_tester_utils.h
> does not include stdio.h
> 
> ----------------------------------------------------<snip>-----------------------------------------------------------
> --- bc_tester_utils.h.ORIG    2015-03-31 14:20:57.000000000 +0100
> +++ bc_tester_utils.h 2015-04-22 18:21:01.202535026 +0100
> @@ -21,6 +21,7 @@
> #define TESTER_UTILS_H
> 
> #include "CUnit/Basic.h"
> +#include <stdio.h>
> #include <stdarg.h>
> 
> extern const char *bc_tester_read_dir_prefix;
> ----------------------------------------------------<snip>-----------------------------------------------------------
> 
> _______________________________________________
> Linphone-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/linphone-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]