SteelRiceContainer / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

::close has not been declared in v4llookup.cc #368

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Following all the build steps in jingle version 0.6.14
2. hammer.sh --verbose --mode=opt jingle

What do you see instead?

rglobisch@rglobisch-Precision-M4500:~/svn_projects/libjingle-0.6.14/talk$ 
~/svn_projects/swtoolkit/hammer.sh --verbose --mode=opt jingle
scons: Reading SConscript files ...

scons: warning: No installed VCs
File 
"/home/rglobisch/svn_projects/swtoolkit/site_scons/site_tools/target_platform_wi
ndows.py", line 283, in generate

scons: warning: No version of Visual Studio compiler found - C/C++ compilers 
most likely not set correctly
File 
"/home/rglobisch/svn_projects/swtoolkit/site_scons/site_tools/target_platform_wi
ndows.py", line 283, in generate

scons: warning: The build_dir keyword has been deprecated; use the variant_dir 
keyword instead.
File "/home/rglobisch/svn_projects/swtoolkit/site_scons/site_init.py", line 
203, in BuildEnvironmentSConscripts
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/opt/obj/session/phone/v4llookup.o -c -Wno-non-virtual-dtor 
-Wno-ctor-dtor-privacy -fno-rtti -Wall -Werror -Wno-switch -fno-exceptions 
-fvisibility=hidden -gdwarf-2 -g3 -ffunction-sections -fdata-sections -m32 -Os 
-DLOGGING=1 -DFEATURE_ENABLE_SSL -DFEATURE_ENABLE_VOICEMAIL 
-DFEATURE_ENABLE_PSTN -DHAVE_SRTP -DHASHNAMESPACE=__gnu_cxx 
-DHASH_NAMESPACE=__gnu_cxx -DPOSIX -DDISABLE_DYNAMIC_CAST 
-DHAVE_OPENSSL_SSL_H=1 -D_REENTRANT -DOS_LINUX=OS_LINUX -DLINUX 
-DHAVE_DBUS_GLIB -DHAVE_LIBPULSE -DNDEBUG -DFEATURE_ENABLE_VOICEMAIL 
-DEXPAT_RELATIVE_PATH -DSRTP_RELATIVE_PATH -DXML_STATIC -DHAS_OPENSSL_1_0 
-Ibuild/opt/obj -I. -I/home/rglobisch/svn_projects/libjingle-0.6.14 
-Ibuild/opt/obj/third_party/libudev -Ithird_party/libudev 
-Ibuild/opt/obj/third_party/expat-2.0.1/lib -Ithird_party/expat-2.0.1/lib 
-Ibuild/opt/obj/third_party/srtp/include -Ithird_party/srtp/include 
-Ibuild/opt/obj/third_party/srtp/crypto/include 
-Ithird_party/srtp/crypto/include -Ibuild/opt/obj/third_party/openssl/include 
-Ithird_party/openssl/include session/phone/v4llookup.cc
session/phone/v4llookup.cc: In member function ‘virtual bool 
cricket::V4LLookup::CheckIsV4L2Device(const string&)’:
session/phone/v4llookup.cc:62:5: error: ‘::close’ has not been declared
scons: *** [build/opt/obj/session/phone/v4llookup.o] Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?
libjingle 0.6.14
OS: Ubuntu 12.04 32-bit

Please provide any additional information below.

Adding #include <unistd.h> in v4llookup.cc solves the issue

Original issue reported on code.google.com by Ralf.Glo...@gmail.com on 4 Jul 2012 at 9:40