boost error for linux source - looking in the wrong place?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

boost error for linux source - looking in the wrong place?

Beeblebrox
This post was updated on .
I am trying to compile a linux source code on FreeBSD-9.1-PRERELEASE_amd64.
at the ./configure stage I get this error:
------------------------------------
checking boost/foreach.hpp usability... no
checking boost/foreach.hpp presence... no
checking for boost/foreach.hpp... no
configure: error: "BOOST library is missing"
------------------------------------

But, I have /usr/local/include/boost/foreach.hpp
/usr/local/include/boost/test/utils/foreach.hpp

So the folder where FreeBSD places this and the folder where configure looks (as linux) must be different. How can I correct this? The linux app in question is MySQL-Workbench-5.2.44. I'm trying to get it to work with MySQL-server55. The relevant code snippet from the configure file is:
if test x"$ac_boost_inc" != x"no"; then
  CFLAGS+=" -I$ac_boost_inc "
  CXXFLAGS+=" -I$ac_boost_inc "
  (
    CPPFLAGS+=" -I$ac_boost_inc "
    if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then
  { echo "$as_me:$LINENO: checking for boost/foreach.hpp" >&5
echo $ECHO_N "checking for boost/foreach.hpp... $ECHO_C" >&6; }
if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_boost_foreach_hpp" >&5
echo "${ECHO_T}$ac_cv_header_boost_foreach_hpp" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking boost/foreach.hpp usability" >&5
echo $ECHO_N "checking boost/foreach.hpp usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
Reply | Threaded
Open this post in threaded view
|

Re: boost error for linux source - looking in the wrong place?

Gary Jennejohn-5
On Sun, 11 Nov 2012 00:44:06 -0800 (PST)
Beeblebrox <[hidden email]> wrote:

> I am trying to compile a linux source code on FreeBSD-9.1-PRERELEASE_amd64.
> at the ./configure stage I get this error:
> ------------------------------------
> checking boost/foreach.hpp usability... no
> checking boost/foreach.hpp presence... no
> checking for boost/foreach.hpp... no
> configure: error: "BOOST library is missing"
> ------------------------------------
>
> But, I have /usr/local/include/boost/foreach.hpp
> /usr/local/include/boost/test/utils/foreach.hpp
>
> So the folder where FreeBSD places this and the folder where configure looks
> (as linux) must be different. How can I correct this? The relevant code
> snippet from the configure file is:
> if test x"$ac_boost_inc" != x"no"; then
>   CFLAGS+=" -I$ac_boost_inc "
>   CXXFLAGS+=" -I$ac_boost_inc "
>   (
>     CPPFLAGS+=" -I$ac_boost_inc "
>     if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then
>   { echo "$as_me:$LINENO: checking for boost/foreach.hpp" >&5
> echo $ECHO_N "checking for boost/foreach.hpp... $ECHO_C" >&6; }
> if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then
>   echo $ECHO_N "(cached) $ECHO_C" >&6
> fi
> { echo "$as_me:$LINENO: result: $ac_cv_header_boost_foreach_hpp" >&5
> echo "${ECHO_T}$ac_cv_header_boost_foreach_hpp" >&6; }
> else
>   # Is the header compilable?
> { echo "$as_me:$LINENO: checking boost/foreach.hpp usability" >&5
> echo $ECHO_N "checking boost/foreach.hpp usability... $ECHO_C" >&6; }
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h.  */
> _ACEOF
> cat confdefs.h >>conftest.$ac_ext
> cat >>conftest.$ac_ext <<_ACEOF
> /* end confdefs.h.  */
> $ac_includes_default
>

It seems pretty obvious that you have to set whatever command line
option sets ac_boost_inc to /usr/local/include/boost.

What does configure --help show?

--
Gary Jennejohn
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: boost error for linux source - looking in the wrong place?

Beeblebrox
Hello and thanks for the input.
configure --help shows knob for --with-boost-includes= which I try with /usr/local/include/boost -> gives me:
./configure: CFLAGS+= -I/usr/local/include/boost/ : not found
./configure: CXXFLAGS+= -I/usr/local/include/boost/ : not found
./configure: CPPFLAGS+= -I/usr/local/include/boost/ : not found
checking boost/foreach.hpp usability... no
checking boost/foreach.hpp presence... no
checking for boost/foreach.hpp... no
configure: error: "BOOST library is missing"
checking for mysql headers and libraries... CFLAGS="-I/usr/local/include/mysql -pipe -fno-strict-aliasing -g"   LIBS="-L/usr/local/lib/mysql -lmysqlclient_r  -pthread -lz -lm"
checking for LIBUUID... yes
checking for LUA... no
checking for LUA... configure: error: Package requirements (lua >= 5.1) were not met:

Since ports tree has lang/lua50 (5.0.3), It seems I'll have to build LUA from source as well :(
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
Reply | Threaded
Open this post in threaded view
|

Re: boost error for linux source - looking in the wrong place?

Scot Hetzel
On Sun, Nov 11, 2012 at 4:43 AM, Beeblebrox <[hidden email]> wrote:
> Hello and thanks for the input.
> configure --help shows knob for --with-boost-includes= which I try with
> /usr/local/include/boost -> gives me:

Try setting --with-boost-includes=/usr/local/include

> ./configure: CFLAGS+= -I/usr/local/include/boost/ : not found
> ./configure: CXXFLAGS+= -I/usr/local/include/boost/ : not found
> ./configure: CPPFLAGS+= -I/usr/local/include/boost/ : not found
> checking boost/foreach.hpp usability... no
> checking boost/foreach.hpp presence... no
> checking for boost/foreach.hpp... no
> configure: error: "BOOST library is missing"
> checking for mysql headers and libraries...
> CFLAGS="-I/usr/local/include/mysql -pipe -fno-strict-aliasing -g"
> LIBS="-L/usr/local/lib/mysql -lmysqlclient_r  -pthread -lz -lm"
> checking for LIBUUID... yes
> checking for LUA... no
> checking for LUA... configure: error: Package requirements (lua >= 5.1) were
> not met:
>
> Since ports tree has lang/lua50 (5.0.3), It seems I'll have to build LUA
> from source as well :(
>
You may have to set the location of the lua include files in the
configure script similar to --with-boost-includes=.

Scot
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: boost error for linux source - looking in the wrong place?

Beeblebrox
Thanks. I just tried but got same error. Following part is suspicious though:
./configure: CFLAGS+= -I/usr/local/include : not found
I read somewhere while searching on google, a brief note that boost and g++ need to be linked or some statement like that - I can't find it now. The message does seem to suggest a gcc/g++ linkage problem though?
Do you want full output from config --help?

Re lua: Big PIA as bsd.lua.mk is broken for >=51. I have emailed the port maintainer about it.

Thanks
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
Reply | Threaded
Open this post in threaded view
|

Re: boost error for linux source - looking in the wrong place?

Beeblebrox
OK, I got lua >= 5.1 installed on the system. Running configure gives same error. This source code is looking in all the wrong places for everything.  I have also done "setenv USE_PKGCONFIG yes" prior to ./configure.

configure: error: "BOOST library is missing"
checking for mysql headers and libraries... CFLAGS="-I/usr/local/include/mysql -pipe -fno-strict-aliasing -g"   LIBS="-L/usr/local/lib/mysql -lmysqlclient_r  -pthread -lz -lm"
checking for LIBUUID... yes
checking for LUA... no
checking for LUA... configure: error: Package requirements (lua >= 5.1) were not met:

Package lua was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LUA_CFLAGS
and LUA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
Reply | Threaded
Open this post in threaded view
|

Re: boost error for linux source - looking in the wrong place?

Beeblebrox
# pkgconf --list-all | grep lua
lua-5.1                        Lua - An Extensible Extension Language

# pkgconf --list-all | grep "boost*"
grep: No match.

# pkg info | grep "boost*"
boost-all-1.48.0               The "meta-port" for boost libraries
boost-jam-1.48.0               Build tool from the boost.org
boost-libs-1.48.0_1            Free portable C++ libraries (without Boost.Python)
boost-python-libs-1.48.0       Framework for interfacing Python and C++
boost_build-2.0.m12            Extensible cross-platform build tool suite
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS