g++ 4.3 requires
#include <cstring>
#include <cstdlib>
Building native extensions. This could take a while...
ERROR: Error installing eventmachine_httpserver:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install eventmachine_httpserver
checking for main() in -lpthread... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile
make
g++ -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fPIC -c http.cpp
http.cpp: In destructor ‘virtual HttpConnection?_t::~HttpConnection?_t()’:
http.cpp:88: error: ‘free’ was not declared in this scope
http.cpp: In member function ‘void HttpConnection?_t::ConsumeData?(const char*, int)’:
http.cpp:169: error: ‘free’ was not declared in this scope
http.cpp:182: error: ‘unsetenv’ was not declared in this scope
http.cpp:223: error: ‘free’ was not declared in this scope
http.cpp:226: error: ‘malloc’ was not declared in this scope
http.cpp:246: error: ‘strpbrk’ was not declared in this scope