make fails: bin/gearadmin.cc:84:37: error: boost/program_options.hpp: No such file or directory

Bug #734440 reported by Sven Nierlein
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Gearman
Fix Released
Medium
Brian Aker

Bug Description

Trying to make the 0.17 fails with:

bin/gearadmin.cc:84:37: error: boost/program_options.hpp: No such file or directory
bin/gearadmin.cc: In function 'int main(int, char**)':
bin/gearadmin.cc:99: error: 'boost' has not been declared
...

Even when configured with --disable-boost.

After installing libboost make still fails:

bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::options(boost::program_options::options_description const&)':
/usr/include/boost/program_options/detail/parsers.hpp:51: undefined reference to `boost::program_options::detail::cmdline::set_options_description(boost::program_options::options_description const&)'
bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::style(int)':
/usr/include/boost/program_options/detail/parsers.hpp:69: undefined reference to `boost::program_options::detail::cmdline::style(int)'
bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::extra_parser(boost::function1<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>)':

Testsystem is a Debian 6.

Revision history for this message
Brian Aker (brianaker) wrote :

Thanks, I believe I have a fix for this by just using the boost.m4 libraries.

This should be fixed in trunk, so please try lp:gearmand and see if it works.

Changed in gearmand:
assignee: nobody → Brian Aker (brianaker)
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Sven Nierlein (sven-nierlein) wrote :

Thanks for your help, i checked out the latest trunk.

%> ./configure --prefix=/opt/local --disable-boost
...
configure: error: cannot find Boost headers version >= 0.0.0

Thats true, i don't have boost headers, but that shouldn't matter when using --disable-boost.

After installing the libboost1.42-dev package and doing a configure without the disable--boost i get this:
...
checking boost/program_options.hpp usability... yes
checking boost/program_options.hpp presence... yes
checking for boost/program_options.hpp... yes
checking for the Boost program_options library... no
configure: error: cannot find the flags to link with Boost program_options

Revision history for this message
Prabagaran L (prabagaran) wrote :

Here also we have same issue as reported by Sven Nierlein, with ./configure and with ./configure --prefix=/usr/local/ --disable-boost, as well..

We use Fedora 8-64bit on AWS.

And the error is:

bin/gearadmin.cc:84:37: error: boost/program_options.hpp: No such file or directory
bin/gearadmin.cc: In function 'int main(int, char**)':
bin/gearadmin.cc:99: error: 'boost' has not been declared
bin/gearadmin.cc:99: error: expected `;' before 'desc'
bin/gearadmin.cc:103: error: 'desc' was not declared in this scope
bin/gearadmin.cc:105: error: 'boost' has not been declared
bin/gearadmin.cc:105: error: expected primary-expression before '>' token
bin/gearadmin.cc:105: error: 'struct std::string' has no member named 'default_value'
bin/gearadmin.cc:106: error: 'boost' has not been declared
bin/gearadmin.cc:106: error: expected primary-expression before '>' token
bin/gearadmin.cc:106: error: 'struct std::string' has no member named 'default_value'
bin/gearadmin.cc:114: error: 'boost' has not been declared
bin/gearadmin.cc:114: error: expected `;' before 'vm'
bin/gearadmin.cc:117: error: 'boost' has not been declared
bin/gearadmin.cc:117: error: 'boost' has not been declared
bin/gearadmin.cc:117: error: 'vm' was not declared in this scope
bin/gearadmin.cc:118: error: 'boost' has not been declared
bin/gearadmin.cc:131: error: 'vm' was not declared in this scope
bin/gearadmin.cc:137: error: 'vm' was not declared in this scope
bin/gearadmin.cc:143: error: 'vm' was not declared in this scope
bin/gearadmin.cc:149: error: 'vm' was not declared in this scope
bin/gearadmin.cc:155: error: 'vm' was not declared in this scope
make[1]: *** [bin/gearadmin.o] Error 1
make[1]: Leaving directory `/xxx/xxx/xxx/gearmand-0.17'
make: *** [all] Error 2

Revision history for this message
Brian Aker (brianaker) wrote : Re: [Bug 734440] Re: make fails: bin/gearadmin.cc:84:37: error: boost/program_options.hpp: No such file or directory

Hi,

You are going to need to install boost in order to compile the latest version.

Cheers,
  - Brian

Sent from my iPad

On Mar 14, 2011, at 12:56 AM, Sven Nierlein <email address hidden> wrote:

> Thanks for your help, i checked out the latest trunk.
>
> %> ./configure --prefix=/opt/local --disable-boost
> ...
> configure: error: cannot find Boost headers version >= 0.0.0
>
> Thats true, i don't have boost headers, but that shouldn't matter when
> using --disable-boost.
>
> After installing the libboost1.42-dev package and doing a configure without the disable--boost i get this:
> ...
> checking boost/program_options.hpp usability... yes
> checking boost/program_options.hpp presence... yes
> checking for boost/program_options.hpp... yes
> checking for the Boost program_options library... no
> configure: error: cannot find the flags to link with Boost program_options
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/734440
>
> Title:
> make fails: bin/gearadmin.cc:84:37: error: boost/program_options.hpp:
> No such file or directory
>
> Status in Gearman:
> Fix Committed
>
> Bug description:
> Trying to make the 0.17 fails with:
>
> bin/gearadmin.cc:84:37: error: boost/program_options.hpp: No such file or directory
> bin/gearadmin.cc: In function 'int main(int, char**)':
> bin/gearadmin.cc:99: error: 'boost' has not been declared
> ...
>
> Even when configured with --disable-boost.
>
>
> After installing libboost make still fails:
>
> bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::options(boost::program_options::options_description const&)':
> /usr/include/boost/program_options/detail/parsers.hpp:51: undefined reference to `boost::program_options::detail::cmdline::set_options_description(boost::program_options::options_description const&)'
> bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::style(int)':
> /usr/include/boost/program_options/detail/parsers.hpp:69: undefined reference to `boost::program_options::detail::cmdline::style(int)'
> bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::extra_parser(boost::function1<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>)':
>
>
> Testsystem is a Debian 6.

Revision history for this message
Sven Nierlein (sven-nierlein) wrote :

It did not work even after installing "libboost1.42-dev" (see the first post in this thread). Do i need anything else? Is "--disable-boost" useless then? And if boost is only needed for gearadmin, i would really like to disable it in order to keep gearman small and simple.

Revision history for this message
jacquesh (jhullu) wrote :

--disable-boost do nothing.
I've this error with boost disabled and lib removed

bin/gearadmin.cc:84: fatal error: boost/program_options.hpp: Aucun fichier ou dossier de ce type
compilation terminated.
make[1]: *** [bin/gearadmin.o] Erreur 1
make[1]: quittant le répertoire « /home/jacques/Téléchargements/gearmand-0.17 »
make: *** [all] Erreur 2

Revision history for this message
Brian Aker (brianaker) wrote :

Hi!

"--disable-boost" has been removed.

Only gearadmin uses boost for command line parsing at the moment, but that will change over the next couple of iterations (I've zero interest in writing/maintaing argument code).

I've not set a minimal value yet for the boost libraries, but when I do it will probably be 1.35 or later.

Cheers,
  -Brian

Brian Aker (brianaker)
Changed in gearmand:
status: Fix Committed → Fix Released
Revision history for this message
Alon Pe'er (alon-peer) wrote :

I'm still getting the same message when running ./configure :

configure: error: cannot find Boost headers version >= 0.0.0

I'm trying to compile gearmand 0.18.

Revision history for this message
Brian Aker (brianaker) wrote :

Hi!

I'll be releasing 0.19 here in the next day or so. It will have a bit more information that we can use to determine what exactly is going on with your compile.

Cheers,
 -Brian

On Mar 31, 2011, at 4:12 AM, Alon Pe'er wrote:

> I'm still getting the same message when running ./configure :
>
> configure: error: cannot find Boost headers version >= 0.0.0
>
> I'm trying to compile gearmand 0.18.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/734440
>
> Title:
> make fails: bin/gearadmin.cc:84:37: error: boost/program_options.hpp:
> No such file or directory
>
> Status in Gearman:
> Fix Released
>
> Bug description:
> Trying to make the 0.17 fails with:
>
> bin/gearadmin.cc:84:37: error: boost/program_options.hpp: No such file or directory
> bin/gearadmin.cc: In function 'int main(int, char**)':
> bin/gearadmin.cc:99: error: 'boost' has not been declared
> ...
>
> Even when configured with --disable-boost.
>
>
> After installing libboost make still fails:
>
> bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::options(boost::program_options::options_description const&)':
> /usr/include/boost/program_options/detail/parsers.hpp:51: undefined reference to `boost::program_options::detail::cmdline::set_options_description(boost::program_options::options_description const&)'
> bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::style(int)':
> /usr/include/boost/program_options/detail/parsers.hpp:69: undefined reference to `boost::program_options::detail::cmdline::style(int)'
> bin/gearadmin.o: In function `boost::program_options::basic_command_line_parser<char>::extra_parser(boost::function1<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>)':
>
>
> Testsystem is a Debian 6.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.