Hello, On Wed, 20 Oct 2010, Robert Schweikert wrote:
I am trying to build a new package that requires boost, thus I've added
BuildRequires: boost-devel >= 1.35
to my spec file. Upon build I get the following error:
checking boost/shared_ptr.hpp usability... no checking boost/shared_ptr.hpp presence... no checking for boost/shared_ptr.hpp... no configure: error: Missing required header files.
But,
-> ls /var/tmp/build-root/usr/include/boost/shared_p* /var/tmp/build-root/usr/include/boost/shared_ptr.hpp
Have you checked permissions, esp. of the boost/ directory? [..]
There's no option in the configure script for me to set the location of the boots headers, at least AFAICT.
Includes can be set via CPPFLAGS or CFLAGS (depending on the Makefiles), e.g.: export CPPFLAGS="-I/usr/include/foo $CPPFLAGS" %configure See: ==== ~/osc/tmp/qpidc-0.6 (0)$ ./configure --help [..] CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> [..] ==== But in this case, that's irrelevant, as /usr/include is a standard include (unless gcc/g++ are called with -no-stdinc), and the header is included with a relative path, i.e. with the implicit -I/usr/include, the header boost/shared_ptr.hpp should be found. Another helpful thing is using 'CPPFLAGS="-v -Wp,-H $CPPFLAGS".
Any ideas on how to fix this?
Have a look at the config.log of that configure. Without it (the lines with the error and at least the lines to the last sucessful test), it's hard to say what's amiss. What I've relatively often have seen when such configure tests fail "incorrectly" is that some previous test sets a compiler flag (option or e.g. some linking flag) on which the compiler fails _only_ in the following tests where something is compiled. In this case it seems (on first glance) that the tests for clock_gettime and clock_settime (linking) are candidates, but those only seem to set matching HAVE_... defines. Without a config.log ... HTH, -dnh, not at a system with boost, so unable to test himself -- Die kennt man ja: Harte Schale, weicher Keks. -- Lars Braesicke -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org