Issue 2988: sdch/open-vcdiff breaks build on Linux
http://code.google.com/p/chromium/issues/detail?id=2988
New issue report by phajdan.jr:
I get this error with gcc 4.3.1 on Linux:
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/usr/bin/python /home/ph/chromium-root/src/webkit/build/webkit_version.py
/home/ph/chromium-
root/src/third_party/WebKit/WebCore/Configurations/Version.xcconfig
Hammer/webkit/build/WebCore
Compiling Hammer/sdch/open-vcdiff/src/blockhash.o ...
Compiling Hammer/sdch/open-vcdiff/src/logging.o ...
Compiling Hammer/sdch/open-vcdiff/src/varint_bigendian.o ...
/home/ph/chromium-root/src/sdch/open-vcdiff/src/logging.cc: In function
'void open_vcdiff::DefaultExitFatal()':
/home/ph/chromium-root/src/sdch/open-vcdiff/src/logging.cc:23: error:
'exit' was not declared in this scope
scons: *** [Hammer/sdch/open-vcdiff/src/logging.o] Error 1
/home/ph/chromium-root/src/sdch/open-vcdiff/src/blockhash.cc: In function
'bool open_vcdiff::CompareWholeWordValues(const char*, const char*) [with
int number_of_words = 1]':
/home/ph/chromium-root/src/sdch/open-vcdiff/src/blockhash.cc:253: error:
'memcpy' was not declared in this scope
/home/ph/chromium-root/src/sdch/open-vcdiff/src/blockhash.cc: In function
'bool open_vcdiff::BlockContentsMatchInline(const char*, const char*)':
/home/ph/chromium-root/src/sdch/open-vcdiff/src/blockhash.cc:288: error:
'memcmp' was not declared in this scope
scons: *** [Hammer/sdch/open-vcdiff/src/blockhash.o] Error 1
/home/ph/chromium-root/src/sdch/open-vcdiff/src/varint_bigendian.cc: In
static member function 'static int
open_vcdiff::VarintBE<SignedIntegerType>::Encode(SignedIntegerType, char*)
[with SignedIntegerType = int]':
/home/ph/chromium-root/src/sdch/open-vcdiff/src/varint_bigendian.cc:184:
instantiated from here
/home/ph/chromium-root/src/sdch/open-vcdiff/src/varint_bigendian.cc:146:
error: 'memcpy' was not declared in this scope
/home/ph/chromium-root/src/sdch/open-vcdiff/src/varint_bigendian.cc: In
static member function 'static int
open_vcdiff::VarintBE<SignedIntegerType>::Encode(SignedIntegerType, char*)
[with SignedIntegerType = long long int]':
/home/ph/chromium-root/src/sdch/open-vcdiff/src/varint_bigendian.cc:185:
instantiated from here
/home/ph/chromium-root/src/sdch/open-vcdiff/src/varint_bigendian.cc:146:
error: 'memcpy' was not declared in this scope
scons: *** [Hammer/sdch/open-vcdiff/src/varint_bigendian.o] Error 1
scons: building terminated because of errors.
It can be easily solved by #including:
<string.h> in blockhash.cc and varint_bigendian.cc
<stdlib.h> in logging.cc
Issue attributes:
Status: Unconfirmed
Owner: [EMAIL PROTECTED]
Labels: Type-Bug Pri-2 OS-All Area-Misc
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---