[buildd-tools-devel] Bug#589658: schroot: configure.ac boost function header issue
Zach Carter
z.carter at f5.com
Mon Jul 19 17:08:39 UTC 2010
Package: schroot
Version: 1.4.2
In the fedora build system, the ./configure process fails with this error:
configure: error: libboost_program_options (Boost C++ Libraries) is not installed, but is required by schroot
It doesn't seem to fail on my local build machine, but it does in the fedora build system. I'm not sure what the difference could be, as the toolchain should be exactly the same.
The config.log shows this:
"...
| include <boost/program_options.hpp>
| int
| main ()
| {
| boost::program_options::variables_map::variables_map dummy()
| ;
| return 0;
| }
configure:18263: g++ -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -
fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
conftest.cpp -lboost_program_options -lboost_system -lboost_regex -
lboost_program_options-mt >&5
conftest.cpp: In function 'int main()':
conftest.cpp:58:1: error:
'boost::program_options::variables_map::variables_map' names the constructor,
not the type
conftest.cpp:58:54: error: expected ';' before 'dummy'
conftest.cpp:59:3: error: statement cannot resolve address of overloaded
function
configure:18263: $? = 1
configure: failed program was:
...
"
At the suggestion of some other fedora developers, I made this change and now it works:
diff --git a/configure.ac b/configure.ac
index 47d1b80..779a837 100644
--- a/configure.ac
+++ b/configure.ac
@@ -565,7 +565,7 @@ AC_MSG_CHECKING([for boost::program_options::variables_map in -lboost_program_op
saved_LIBS="${LIBS}"
LIBS="${saved_LIBS} -lboost_program_options"
define([testprog], [AC_LANG_PROGRAM([#include <boost/program_options.hpp>],
- [boost::program_options::variables_map::variables_map dummy()])])
+ [boost::program_options::variables_map dummy()])])
AC_LINK_IFELSE(testprog,
[AC_MSG_RESULT([yes])
BOOST_LIBS="${BOOST_LIBS} -lboost_program_options"],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100719/95064b78/attachment.htm>
More information about the Buildd-tools-devel
mailing list