BUG: __USE_GNU redefined
Without this patch i get:
In file included from motion.c:10:
motion.h:31:1: warning: "__USE_GNU" redefined
In file included from /usr/include/errno.h:29,
from ffmpeg.h:5,
from motion.c:9:
/usr/include/features.h:277:1: warning: this is the location of the previous definition
gcc -g -O2 -D_REENTRANT -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP -march=pentium4 -mfpmath=sse -msse2 -mmmx -Wall -DVERSION=\"trunk-r444\" -Dsysconfdir=\"/usr/local/etc\" -c -o logger.o logger.c
In file included from logger.h:15,
from logger.c:13:
motion.h:31:1: warning: "__USE_GNU" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/include/mysql/mysql.h:47,
from motion.h:17,
from logger.h:15,
from logger.c:13:
/usr/include/features.h:277:1: warning: this is the location of the previous definition
Index: motion.h
===================================================================
--- motion.h (Revision 444)
+++ motion.h (Arbeitskopie)
@@ -28,7 +28,9 @@
#include <stdio.h>
#include <stdlib.h>
+#ifndef __USE_GNU
#define __USE_GNU
+#endif
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
Environment
Motion version: |
3.2.11 |
ffmpeg version: |
|
Shared libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
|
--
PeterHolik - 17 Jun 2009
Follow up
gcc --version ?
Distribution ?
I know that 3.2.11 has some issues , but i never got that.
--
AngelCarpintero - 12 Jul 2009
Fix record
Applied in trunk also will be in 3.2.11.1 ( bug fixes only )
--
AngelCarpintero - 12 Jul 2009