phusion / passenger

A fast and robust web server and application server for Ruby, Python and Node.js
https://www.phusionpassenger.com/
MIT License
5k stars 547 forks source link

4.0.33: buildout/agents/PassengerHelperAgent.o: undefined symbols #1147

Closed FooBarWidget closed 10 years ago

FooBarWidget commented 10 years ago

From mark@ibiblio.org on January 15, 2014 07:29:05

What steps will reproduce the problem? * Execute buildout/agents/PassengerHelperAgent mkdir -p buildout/agents/ CC -xtarget=ultra -m64 -xcode=pic32 -o buildout/agents/PassengerHelperAgent.o -Iext -Iext/common -I/usr/local/include -I/usr/local/include -D_REENTRANT -I/usr/local/include -g -DHAS_ALLOCA_H -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -mt -D_XOPEN_SOURCE=500 -D_XPG4_2 -DEXTENSIONS -DSOLARIS -D_FILE_OFFSET_BITS=64 -DBOOST_HAS_STDINTH -xtarget=ultra -KPIC -I/usr/local/include -I/usr/local/include/boost -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4 -R/usr/local/lib -c ext/common/agents/HelperAgent/Main.cpp "/usr/local/include/ev++.h", line 269: Warning (Anachronism): Formal argument cb of type extern "C" void()(int,void_) in call to ev_once(evloop, int, int, double, extern "C" void()(int,void), void) is being passed void()(int,void). "/usr/local/include/ev++.h", line 557: Warning (Anachronism): Formal argument cb of type extern "C" void()(void,long) in call to ev_setallocator(extern "C" void()(void,long)) is being passed void()(void,long). "/usr/local/include/ev++.h", line 562: Warning (Anachronism): Formal argument cb of type extern "C" void()(const char_) in call to ev_set_syserrcb(extern "C" void()(const char)) is being passed void()(const char_). "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_io, ev::io>::loop. "/usr/local/include/ev++.h", line 615: Warning: fd hides ev_io::fd. "/usr/local/include/ev++.h", line 615: Warning: events hides ev_io::events. "/usr/local/include/ev++.h", line 617: Warning: active hides ev_io::active. "/usr/local/include/ev++.h", line 623: Warning: events hides ev_io::events. "/usr/local/include/ev++.h", line 625: Warning: active hides ev_io::active. "/usr/local/include/ev++.h", line 631: Warning: fd hides ev_io::fd. "/usr/local/include/ev++.h", line 631: Warning: events hides ev_io::events. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_timer, ev::timer>::loop. "/usr/local/include/ev++.h", line 639: Warning: repeat hides ev_timer::repeat. "/usr/local/include/ev++.h", line 641: Warning: active hides ev_timer::active. "/usr/local/include/ev++.h", line 647: Warning: repeat hides ev_timer::repeat. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_periodic, ev::periodic>::loop. "/usr/local/include/ev++.h", line 666: Warning: at hides ev_periodic::at. "/usr/local/include/ev++.h", line 666: Warning: interval hides ev_periodic::interval. "/usr/local/include/ev++.h", line 668: Warning: active hides ev_periodic::active. "/usr/local/include/ev++.h", line 674: Warning: at hides ev_periodic::at. "/usr/local/include/ev++.h", line 674: Warning: interval hides ev_periodic::interval. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_signal, ev::sig>::loop. "/usr/local/include/ev++.h", line 689: Warning: signum hides ev_signal::signum. "/usr/local/include/ev++.h", line 691: Warning: active hides ev_signal::active. "/usr/local/include/ev++.h", line 697: Warning: signum hides ev_signal::signum. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_child, ev::child>::loop. "/usr/local/include/ev++.h", line 707: Warning: pid hides ev_child::pid. "/usr/local/include/ev++.h", line 709: Warning: active hides ev_child::active. "/usr/local/include/ev++.h", line 715: Warning: pid hides ev_child::pid. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_stat, ev::stat>::loop. "/usr/local/include/ev++.h", line 725: Warning: path hides ev_stat::path. "/usr/local/include/ev++.h", line 725: Warning: interval hides ev_stat::interval. "/usr/local/include/ev++.h", line 727: Warning: active hides ev_stat::active. "/usr/local/include/ev++.h", line 733: Warning: path hides ev_stat::path. "/usr/local/include/ev++.h", line 733: Warning: interval hides ev_stat::interval. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_idle, ev::idle>::loop. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_prepare, ev::prepare>::loop. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_check, ev::check>::loop. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_embed, ev::embed>::loop. "/usr/local/include/ev++.h", line 769: Warning: active hides ev_embed::active. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<ev_fork, ev::fork>::loop. "/usr/local/include/ev++.h", line 428: Warning: loop hides ev::base<evasync, ev::async>::loop. "ext/common/SafeLibev.h", line 82: Warning: commands hides Passenger::SafeLibev::commands. "ext/common/SafeLibev.h", line 131: Warning (Anachronism): Assigning void()(evloop,evasync,int) to extern "C" void(_)(evloop,evasync,int). "ext/common/SafeLibev.h", line 126: Warning: loop hides Passenger::SafeLibev::loop. "ext/common/SafeLibev.h", line 221: Warning (Anachronism): Formal argument cb of type extern "C" void()(int,void) in call to ev_once(evloop, int, int, double, extern "C" void()(int,void), void) is being passed void()(int,void). "ext/common/Exceptions.h", line 117: Warning: briefMessage hides Passenger::SystemException::briefMessage. "ext/common/Exceptions.h", line 282: Warning: errorKind hides Passenger::SpawnException::errorKind. "ext/common/Exceptions.h", line 291: Warning: errorKind hides Passenger::SpawnException::errorKind. "ext/common/Exceptions.h", line 330: Warning: annotations hides Passenger::SpawnException::annotations. [...] "ext/common/ApplicationPool2/DirectSpawner.h", line 96: Warning (Anachronism): Formal argument 3 of type extern "C" void()(void) in call to pthreadcreate(unsigned, const _pthreadattr, extern "C" void()(void), void) is being passed void()(void). "ext/common/Utils/VariantMap.h", line 97: Warning: key hides Passenger::VariantMap::MissingKeyException::key. "ext/common/ApplicationPool2/Pool.h", line 1139: Warning: max hides Passenger::ApplicationPool2::Pool::max. "ext/common/ApplicationPool2/Pool.h", line 1461: Warning (Anachronism): Undefined character escape sequence "\e". "ext/common/ApplicationPool2/Pool.h", line 1461: Warning (Anachronism): Undefined character escape sequence "\e". "ext/common/ApplicationPool2/Pool.h", line 1461: Warning (Anachronism): Undefined character escape sequence "\e". "ext/common/ApplicationPool2/Pool.h", line 1462: Warning (Anachronism): Undefined character escape sequence "\e". "ext/common/Utils/HttpHeaderBufferer.h", line 101: Warning: data hides Passenger::HttpHeaderBufferer::data. "ext/common/agents/HelperAgent/FileBackedPipe.h", line 313: Warning: generation hides Passenger::FileBackedPipe::generation. "ext/common/agents/HelperAgent/FileBackedPipe.h", line 335: Warning: generation hides Passenger::FileBackedPipe::generation. "ext/common/agents/HelperAgent/FileBackedPipe.h", line 341: Warning (Anachronism): Formal argument cb of type extern ...

Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=1048

FooBarWidget commented 10 years ago

From mark@ibiblio.org on January 14, 2014 22:30:51

Ah, looks like it's related to https://code.google.com/p/phusion-passenger/issues/detail?id=993

FooBarWidget commented 10 years ago

From mark@ibiblio.org on January 14, 2014 22:36:39

Yep, same cause... it compiles the HelperAgent now.

--- build/agents.rb.orig Wed Jan 15 17:34:35 2014 +++ build/agents.rb Wed Jan 15 17:32:54 2014 @@ -48,6 +48,7 @@ "#{LIBBOOST_OXT} " << "#{EXTRA_PRE_CXX_LDFLAGS} " << "#{PlatformInfo.portability_cxx_ldflags} " <<

FooBarWidget commented 10 years ago

From mark@ibiblio.org on January 14, 2014 23:08:54

Alternatively, I've also started using the EXTRA_CXX_LDFLAGS variable

setenv EXTRA_CXX_LDFLAGS "${EXTRA_CXXFLAGS}"

FooBarWidget commented 10 years ago

From honglilai on January 29, 2014 05:39:05

Linking command should not use EXTRA_CXXFLAGS. Please use EXTRA_CXX_LDFLAGS instead.

Status: WontFix