Motion - Bug Report 2009x 06x 17x 122137
You are here: Foswiki>Motion Web>BugReports>BugReport2009x06x17x122137 (10 Aug 2009, AngelCarpintero)Edit Attach

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
Topic revision: r4 - 10 Aug 2009, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.