Ticket #26 (new defect)

Opened 5 months ago

Last modified 4 months ago

eventmachine_httpserver will not compile with gcc 4.3

Reported by: tmm1 Assigned to: francis
Priority: major Milestone:
Keywords: Cc:

Description

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

Change History

06/17/08 16:53:56 changed by tmm1

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

06/26/08 20:27:00 changed by tmm1

Also, the gem on rubyforge is out of date (0.0.1 vs 0.1.0)

07/01/08 12:09:44 changed by tmm1

Also, Kirk has a few patches for em_httpserver that he worked on for wisteria. First step: make the eventmachine_httpserver source repo available.

07/22/08 15:08:18 changed by raggi

  • owner changed from raggi to francis.

I'm re-assigning to francis, I don't have admin rights on our repos.