www/rubygem-passenger: link error on 10.0-PRERELEASE r259862M

Jiansong Liu jiansong.liu at gmail.com
Thu Dec 26 06:57:38 UTC 2013


Hi,

I try to re-install the www/rubygem-passenger by the portmaster tool after
I upgraded to 10.0, and got error like below:

It produced 4 warnings at first:

c++ -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-long-long -Wno-missing-field-initializers
-Wno-ambiguous-member-template -fcommon -fvisibility=hidden
-DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAVE_ACCEPT4 -DHAS_SFENCE
-DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11
-DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/boost/thread.o -c
ext/boost/libs/thread/src/pthread/thread.cpp
In file included from ext/boost/libs/thread/src/pthread/thread.cpp:30:
ext/boost/libs/thread/src/pthread/./timeconv.inl:51:13: warning: unused
function 'to_time' [-Wunused-function]
inline void to_time(int milliseconds, timespec& ts)
            ^
ext/boost/libs/thread/src/pthread/./timeconv.inl:71:13: warning: unused
function 'to_timespec_duration' [-Wunused-function]
inline void to_timespec_duration(const boost::xtime& xt, timespec& ts)
            ^
ext/boost/libs/thread/src/pthread/./timeconv.inl:104:13: warning: unused
function 'to_duration' [-Wunused-function]
inline void to_duration(boost::xtime xt, int& milliseconds)
            ^
ext/boost/libs/thread/src/pthread/./timeconv.inl:126:13: warning: unused
function 'to_microduration' [-Wunused-function]
inline void to_microduration(boost::xtime xt, int& microseconds)
            ^
4 warnings generated.


Then ran into a link error:

c++ -o buildout/agents/PassengerHelperAgent.o  -Iext -Iext/common
 -I/usr/local/include -Wno-ambiguous-member-template -I/usr/local/include
-D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long
-Wno-missing-field-initializers -Wno-ambiguous-member-template -fcommon
-fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAVE_ACCEPT4
-DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS
-std=gnu++11 -DHAS_UNORDERED_MAP -c ext/common/agents/HelperAgent/Main.cpp
c++ buildout/agents/PassengerHelperAgent.o -o
buildout/agents/PassengerHelperAgent
buildout/common/libpassenger_common/Logging.o
buildout/common/libpassenger_common/Exceptions.o
buildout/common/libpassenger_common/Utils/SystemTime.o
buildout/common/libpassenger_common/Utils/StrIntUtils.o
buildout/common/libpassenger_common/Utils/IOUtils.o
buildout/common/libpassenger_common/Utils.o
buildout/common/libpassenger_common/Utils/Base64.o
buildout/common/libpassenger_common/Utils/CachedFileStat.o
buildout/common/libpassenger_common/Utils/LargeFiles.o
buildout/common/libpassenger_common/ApplicationPool2/Implementation.o
buildout/common/libpassenger_common/ApplicationPool2/AppTypes.o
buildout/common/libpassenger_common/AgentsBase.o
buildout/common/libpassenger_common/Utils/MD5.o
buildout/common/libpassenger_common/Utils/fib.o
buildout/common/libpassenger_common/Utils/jsoncpp.o
buildout/common/libboost_oxt.a  -L/usr/local/lib -lev -L/usr/local/lib
-leio -pthread -lrt
buildout/agents/PassengerHelperAgent.o: In function
`_ZNK5boost13function_base6targetIDnEEPKT_v':
/usr/local/lib/ruby/gems/2.0/gems/passenger-4.0.29/ext/boost/function/function_base.hpp:670:
undefined reference to `_ZTIDn'
c++: error: linker command failed with exit code 1 (use -v to see
invocation)
rake aborted!
Command failed with status (1): [c++ buildout/agents/PassengerHelperAgent.o
-o buildout/agents/PassengerHelperAgent
buildout/common/libpassenger_common/Logging.o
buildout/common/libpassenger_common/Exceptions.o
buildout/common/libpassenger_common/Utils/SystemTime.o
buildout/common/libpassenger_common/Utils/StrIntUtils.o
buildout/common/libpassenger_common/Utils/IOUtils.o
buildout/common/libpassenger_common/Utils.o
buildout/common/libpassenger_common/Utils/Base64.o
buildout/common/libpassenger_common/Utils/CachedFileStat.o
buildout/common/libpassenger_common/Utils/LargeFiles.o
buildout/common/libpassenger_common/ApplicationPool2/Implementation.o
buildout/common/libpassenger_common/ApplicationPool2/AppTypes.o
buildout/common/libpassenger_common/AgentsBase.o
buildout/common/libpassenger_common/Utils/MD5.o
buildout/common/libpassenger_common/Utils/fib.o
buildout/common/libpassenger_common/Utils/jsoncpp.o
buildout/common/libboost_oxt.a  -L/usr/local/lib -lev -L/usr/local/lib
-leio -pthread -lrt   ]

Tasks: TOP => nginx => nginx_without_native_support =>
buildout/agents/PassengerHelperAgent
(See full trace by running task with --trace)
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/rubygem-passenger
*** Error code 1

Stop.
make: stopped in /usr/ports/www/rubygem-passenger

===>>> Installation of rubygem-passenger-4.0.29 (www/rubygem-passenger)
failed
===>>> Aborting update

===>>> Killing background jobs
Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> www/rubygem-passenger

===>>> Exiting


I reinstalled below ports and the error remained:
devel/libeio
devel/libev
devel/m4
devel/autoconf
devel/automake
devel/gmake

Any suggestion will be appreciated, thanks in advance.

Cheers,
Jiansong


More information about the freebsd-ports mailing list