[Galaxy Note II Android Development] Trafalgar Square:
Wanted to compile a new version of Temasek, but getting this error now :(

In file included from system/core/include/cutils/log.h:1:0,
from device/samsung/n7100/libsensors/SensorBase.cpp:26:
device/samsung/n7100/libsensors/SensorBase.cpp: In member function 'int SensorBase::open_device()':
device/samsung/n7100/libsensors/SensorBase.cpp:59:77: error: 'strerror' was not declared in this scope
ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno));
^
device/samsung/n7100/libsensors/SensorBase.cpp: In member function 'int SensorBase::openInput(const char*)':
device/samsung/n7100/libsensors/SensorBase.cpp:104:28: error: 'strcpy' was not declared in this scope
strcpy(devname, dirname);
^
device/samsung/n7100/libsensors/SensorBase.cpp:105:40: error: 'strlen' was not declared in this scope
filename = devname + strlen(devname);
^
device/samsung/n7100/libsensors/SensorBase.cpp:119:40: error: 'strcmp' was not declared in this scope
if (!strcmp(name, inputName)) {
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/SensorBase.o] Error 1
make: *** Waiting for unfinished jobs....
device/samsung/n7100/libsensors/LightSensor.cpp: In constructor 'LightSensor::LightSensor()':
device/samsung/n7100/libsensors/LightSensor.cpp:44:61: error: 'memset' was not declared in this scope
memset(mPendingEvent.data, 0, sizeof(mPendingEvent.data));
^
device/samsung/n7100/libsensors/LightSensor.cpp:47:53: error: 'strcpy' was not declared in this scope
strcpy(input_sysfs_path, "/sys/class/input/");
^
device/samsung/n7100/libsensors/LightSensor.cpp:48:44: error: 'strcat' was not declared in this scope
strcat(input_sysfs_path, input_name);
^
device/samsung/n7100/libsensors/LightSensor.cpp:50:55: error: 'strlen' was not declared in this scope
input_sysfs_path_len = strlen(input_sysfs_path);
^
device/samsung/n7100/libsensors/LightSensor.cpp: In member function 'virtual int LightSensor::setDelay(int32_t, int64_t)':
device/samsung/n7100/libsensors/LightSensor.cpp:75:65: error: 'strcpy' was not declared in this scope
strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay");
^
device/samsung/n7100/libsensors/LightSensor.cpp:80:34: error: 'strlen' was not declared in this scope
write(fd, buf, strlen(buf)+1);
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/LightSensor.o] Error 1
device/samsung/n7100/libsensors/ProximitySensor.cpp: In constructor 'ProximitySensor::ProximitySensor()':
device/samsung/n7100/libsensors/ProximitySensor.cpp:44:61: error: 'memset' was not declared in this scope
memset(mPendingEvent.data, 0, sizeof(mPendingEvent.data));
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:47:53: error: 'strcpy' was not declared in this scope
strcpy(input_sysfs_path, "/sys/class/input/");
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:48:44: error: 'strcat' was not declared in this scope
strcat(input_sysfs_path, input_name);
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:50:55: error: 'strlen' was not declared in this scope
input_sysfs_path_len = strlen(input_sysfs_path);
^
device/samsung/n7100/libsensors/ProximitySensor.cpp: In member function 'virtual int ProximitySensor::setDelay(int32_t, int64_t)':
device/samsung/n7100/libsensors/ProximitySensor.cpp:75:65: error: 'strcpy' was not declared in this scope
strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay");
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:80:34: error: 'strlen' was not declared in this scope
write(fd, buf, strlen(buf)+1);
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/ProximitySensor.o] Error 1
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Log.h:31,
from device/samsung/n7100/libsensors/sensors.cpp:31:
device/samsung/n7100/libsensors/sensors.cpp: In constructor 'sensors_poll_context_t::sensors_poll_context_t()':
device/samsung/n7100/libsensors/sensors.cpp:229:71: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error creating wake pipe (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In member function 'int sensors_poll_context_t::activate(int, int)':
device/samsung/n7100/libsensors/sensors.cpp:258:77: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error sending wake message (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In member function 'int sensors_poll_context_t::pollEvents(sensors_event_t*, int)':
device/samsung/n7100/libsensors/sensors.cpp:297:59: error: 'strerror' was not declared in this scope
ALOGE("poll() failed (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp:303:87: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error reading from wake pipe (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In function 'int open_sensors(const hw_module_t*, const char*, hw_device_t**)':
device/samsung/n7100/libsensors/sensors.cpp:380:62: error: 'memset' was not declared in this scope
memset(&dev->device, 0, sizeof(sensors_poll_device_1));
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/sensors.o] Error 1
make: Leaving directory `/home/demian/Temasek'

[COLOR=Red][B]#### make failed to build some targets (09:07 (mm:ss)) ####[/B][/COLOR]

trafalgar-square@codingcode ~/Temasek $ ^

[MENTION=4610599]Ivan_Meler[/MENTION]

I have done a make clean and resynced the source, but getting the same error all time.