Package: gem
Version: 1:0.93.3-3
Severity: normal
Tags: patch
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.7

Hi,

while trying to build gem with gcc-4.7 (tried in Ubuntu), it FTBFS with:
,----
| make[3]: Entering directory `/build/buildd/gem-0.93.3/plugins/recordV4L2'
| /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../../src  -I../../src  -DPD -I/usr/include/pd  -freg-struct-return -O3 
-falign-loops -falign-functions -falign-jumps -funroll-loops -ffast-math -mmmx 
-MT gem_recordV4L2_la-recordV4L2.lo -MD -MP -MF 
.deps/gem_recordV4L2_la-recordV4L2.Tpo -c -o gem_recordV4L2_la-recordV4L2.lo 
`test -f 'recordV4L2.cpp' || echo './'`recordV4L2.cpp
| libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD 
-I/usr/include/pd -freg-struct-return -O3 -falign-loops -falign-functions 
-falign-jumps -funroll-loops -ffast-math -mmmx -MT 
gem_recordV4L2_la-recordV4L2.lo -MD -MP -MF 
.deps/gem_recordV4L2_la-recordV4L2.Tpo -c recordV4L2.cpp  -fPIC -DPIC -o 
.libs/gem_recordV4L2_la-recordV4L2.o
| recordV4L2.cpp: In member function 'virtual void 
gem::plugins::recordV4L2::close()':
| recordV4L2.cpp:81:5: error: '::close' has not been declared
| recordV4L2.cpp: In member function 'virtual bool 
gem::plugins::recordV4L2::open(std::string)':
| recordV4L2.cpp:101:65: warning: format '%s' expects a matching 'char*' 
argument [-Wformat]
| recordV4L2.cpp: In member function 'virtual bool 
gem::plugins::recordV4L2::init(const imageStruct*, int)':
| recordV4L2.cpp:159:3: error: '::write' has not been declared
| recordV4L2.cpp: In member function 'virtual bool 
gem::plugins::recordV4L2::putFrame(imageStruct*)':
| recordV4L2.cpp:184:3: error: '::write' has not been declared
| make[3]: *** [gem_recordV4L2_la-recordV4L2.lo] Error 1
`----
Adding the missing "#include <unistd.h>" in that file fixes it.

Regards,
Michael
Index: gem-0.93.3/plugins/recordV4L2/recordV4L2.cpp
===================================================================
--- gem-0.93.3.orig/plugins/recordV4L2/recordV4L2.cpp	2012-05-17 15:43:18.000000000 +0200
+++ gem-0.93.3/plugins/recordV4L2/recordV4L2.cpp	2012-05-17 15:45:16.000000000 +0200
@@ -31,7 +31,7 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <stdio.h>
-
+#include <unistd.h>
 #include <stdlib.h>
 
 

Reply via email to