[SERVER-179] dpkg-buildpackage fail Created: 23/Jul/09  Updated: 28/Jun/12  Resolved: 06/Aug/09

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: tomoharu fujita Assignee: Eliot Horowitz (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu 9.04/x86_64, libboost1.35


Attachments: File dpkg-buildpackage.log    
Participants:

 Description   

for a few weeks (2009-7-9 was the last time i successfully build),
dpkg-buildpackage -d fail to build.
scons -c; scons works just fine.

Is there something I missed?

output is like following.
(too long to paste here. i attached full output.)

  1. dpkg-buildpackage -d

    scons: done reading SConscript files.
    scons: Building targets ...
    g++ -o shell/dbshell.o -c -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -O3 -D_SCONS -DUSE_ASIO_OFF -DXP_UNIX -DOLDJS -DUSE_ASIO_OFF -DXP_UNIX -DOLDJS -DUSE_READLINE -I. shell/dbshell.cpp
    g++ -o shell/utils.o -c -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -O3 -D_SCONS -DUSE_ASIO_OFF -DXP_UNIX -DOLDJS -DUSE_ASIO_OFF -DXP_UNIX -DOLDJS -DUSE_READLINE -I. shell/utils.cpp
    g++ -o mongo -fPIC -pthread shell/dbshell.o shell/utils.o -L/usr/lib64 -L/lib64 -L. -lmongoclient -lpthread -lstdc++ -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_system-mt -ljs -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_system-mt -ljs -lreadline -lncurses -lrt
    /usr/lib64/libmongoclient.a(jsobj.o): In function `boost::detail::thread::lock_ops<boost::mutex>::lock(boost::mutex&)':
    /usr/include/boost/thread/detail/lock.hpp:38: undefined reference to `boost::mutex::do_lock()'
    /usr/lib64/libmongoclient.a(jsobj.o): In function `boost::detail::thread::lock_ops<boost::mutex>::unlock(boost::mutex&)':
    /usr/include/boost/thread/detail/lock.hpp:50: undefined reference to `boost::mutex::do_unlock()'
    /usr/include/boost/thread/detail/lock.hpp:50: undefined reference to `boost::mutex::do_unlock()'
    /usr/lib64/libmongoclient.a(json.o): In function `boost::thread_specific_ptr<boost::weak_ptr<boost::spirit::impl::grammar_helper<boost::spirit::grammar<mongo::JsonGrammar, boost::spirit::parser_context<boost::spirit::nil_t> >, mongo::JsonGrammar, boost::spirit::scanner<char const*, boost::spirit::scanner_policies<boost::spirit::skipper_iteration_policy<boost::spirit::iteration_policy>, boost::spirit::match_policy, boost::spirit::action_policy> > > > >::get() const':
    /usr/include/boost/thread/tss.hpp:89: undefined reference to `boost::detail::tss::get() const'

    collect2: ld returned 1 exit status
    scons: *** [mongo] Error 1
    scons: building terminated because of errors.
    make: *** [install] Error 2
    dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2



 Comments   
Comment by Eliot Horowitz (Inactive) [ 15/Aug/09 ]

Released in 0.9.8

Comment by Eliot Horowitz (Inactive) [ 06/Aug/09 ]

i've tried this on 2 machines now and its worked fine.
can you try again and let me know.

Comment by tomoharu fujita [ 30/Jul/09 ]

yes. still in the same situation.

by the way,
if with boost 1.34(i guess it's the current default version in jaunty), build fail in another point.

  1. dpkg-buildpackage -d

    g++ -o mongo -fPIC -pthread shell/dbshell.o shell/utils.o -L/usr/lib64 -L/lib64 -L. -lmongoclient -lpthread -lstdc++ -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -ljs -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -ljs -lreadline -lncurses -lrt
    /usr/lib64/libmongoclient.a(engine.o): In function `mongo::Scope::execFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool, bool, int)':
    /home/yellow/buildbot_slave/mongo_linux_64_nightly/mongo/scripting/engine.cpp:29: undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /home/yellow/buildbot_slave/mongo_linux_64_nightly/mongo/scripting/engine.cpp:30: undefined reference to `boost::filesystem::is_directory(boost::filesystem::path const&)'
    collect2: ld returned 1 exit status
Comment by Eliot Horowitz (Inactive) [ 29/Jul/09 ]

is this still happening?
did you upgrade boost or anything?

Generated at Thu Feb 08 02:53:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.