Sorry, for late answer, I couldn't have found time to look at it.
On Thu, Oct 30, 2008 at 11:47:32PM +0100, Herbert Poetzl wrote:
> On Thu, Oct 30, 2008 at 04:34:06PM +0100, Michal Hocko wrote:
> > [...]
> > > > Could you try to add --with-boost-libdir=/usr/lib64 (or whatever
> > > > directory do your distribution use for 64b libraries)?
> > > > Similar problem was reported for Altlinux 64b.
> > >
> > > # rpm -ql lib64boost1-devel | grep /usr/lib
> > > /usr/lib64/libboost_date_time.so
> > > /usr/lib64/libboost_filesystem.so
> > > /usr/lib64/libboost_iostreams.so
> > > /usr/lib64/libboost_prg_exec_monitor.so
> > > /usr/lib64/libboost_program_options.so
> > > /usr/lib64/libboost_python.so
> > > /usr/lib64/libboost_regex.so
> > > /usr/lib64/libboost_serialization.so
> > > /usr/lib64/libboost_signals.so
> > > /usr/lib64/libboost_test_exec_monitor.so
> > > /usr/lib64/libboost_thread.so
> > > /usr/lib64/libboost_unit_test_framework.so
> > > /usr/lib64/libboost_wserialization.so
> > >
> > > [pdfedit-0.4.1]# ./configure --with-boost-libdir=/usr/lib64
> > [...]
> > > checking for size_t... yes
> > > checking whether struct tm is in sys/time.h or time.h... time.h
> > > checking for boostlib >= 1.20.0... yes
> > > checking whether the Boost::IOStreams library is available... yes
> > > configure: error: Could not link against !
> >
> > Could you send also config.log?
>
> find that one attached ...
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by PDFedit configure 0.4.1, which was
> generated by GNU Autoconf 2.61. Invocation command line was
>
> $ ./configure --with-boost-libdir=/usr/lib64
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = neuromancer
> uname -m = x86_64
> uname -r = 2.6.22.19-desktop-2mdv
> uname -s = Linux
> uname -v = #1 SMP Mon May 5 21:37:48 EDT 2008
>
> /usr/bin/uname -p = unknown
> /bin/uname -X = unknown
>
> /bin/arch = x86_64
> /usr/bin/arch -k = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo = unknown
> /bin/machine = unknown
> /usr/bin/oslevel = unknown
> /bin/universe = unknown
>
> PATH: /sbin
> PATH: /usr/sbin
> PATH: /bin
> PATH: /usr/bin
> PATH: /usr/X11R6/bin
> PATH: /usr/local/bin
> PATH: /usr/local/sbin
> PATH: /usr/local/script/
>
[...]
>
> configure:4580: checking for boostlib >= 1.20.0
> configure:4640: g++ -c -g -O2 -I/usr/include conftest.cpp >&5
> configure:4646: $? = 0
> configure:4652: result: yes
> configure:4853: checking whether the Boost::IOStreams library is available
> configure:4891: g++ -c -g -O2 -I/usr/include conftest.cpp >&5
> configure:4897: $? = 0
> configure:4919: result: yes
> configure:5145: error: Could not link against !
>
Ahh, I understand that now. I was referring to the --with-boost-libdir,
but this parameter was added after 0.4.1 was released. I remember that I
was discussing the same issue with Altlinux (64b) guys and we have
fixed and pushed the bug in boost configure script upstream. Please try
attached patch (don't forget to run autoconf afterwards) and try again.
--
Michal Hocko
--- a/config/boost_base.m4 28 Nov 2007 14:57:08 -0000 1.1
+++ b/config/boost_base.m4 4 Apr 2008 13:40:15 -0000 1.2
@@ -15,6 +15,21 @@ AC_ARG_WITH([boost],
],
[want_boost="yes"])
+
+AC_ARG_WITH([boost-libdir],
+ AS_HELP_STRING([--with-boost-libdir=LIB_DIR],
+ [Force given directory for boost libraries. Note that this will overwrite library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]),
+ [
+ if test -d $withval
+ then
+ ac_boost_lib_path="$withval"
+ else
+ AC_MSG_ERROR(--wit-boost-lib expected directory name)
+ fi
+ ],
+ [ac_boost_lib_path=""]
+)
+
if test "x$want_boost" = "xyes"; then
boost_lib_version_req=ifelse([$1], ,1.20.0,$1)
boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'`
@@ -44,6 +59,12 @@ if test "x$want_boost" = "xyes"; then
done
fi
+ dnl overwrite ld flags if we have required special directory with
+ dnl --with-boost-lib parameter
+ if test "$ac_boost_lib_path" != ""; then
+ BOOST_LDFLAGS="-L$ac_boost_lib_path"
+ fi
+
CPPFLAGS_SAVED="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
export CPPFLAGS
@@ -70,13 +91,11 @@ if test "x$want_boost" = "xyes"; then
AC_LANG_POP([C++])
-
dnl if we found no boost with system layout we search for boost libraries
dnl built and installed without the --layout=system option or for a staged(not installed) version
if test "x$succeeded" != "xyes"; then
_version=0
if test "$ac_boost_path" != ""; then
- BOOST_LDFLAGS="-L$ac_boost_path/lib"
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
@@ -104,7 +123,10 @@ if test "x$want_boost" = "xyes"; then
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
- BOOST_LDFLAGS="-L$best_path/lib"
+ if test "$ac_boost_lib_path" = ""
+ then
+ BOOST_LDFLAGS="-L$best_path/lib"
+ fi
if test "x$BOOST_ROOT" != "x"; then
if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
@@ -112,7 +134,7 @@ if test "x$want_boost" = "xyes"; then
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`
V_CHECK=`expr $stage_version_shorten \>\= $_version`
- if test "$V_CHECK" = "1" ; then
+ if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
BOOST_CPPFLAGS="-I$BOOST_ROOT"
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support