Hi.

On Sat, Mar 29, 2008 at 09:00:52PM -0400, Robert Carlson wrote:
> I scanned a document to a PDF, and then used PDFEdit 0.3.2 to change the
> orientation to vertical.  After saving the page, the top third of the
> PDF was cut off. Supposing this might be a bug that was fixed in the
> latest version, I downloaded 0.4.1.  

This seems to be same issue like
http://pdfedit.petricek.net/bt/view.php?id=220 which is solved in
current CVS (it was reported and solved after 0.4.1). So you can try to
apply the patch attached in the report, or use current CVS (
$ cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/pdfedit co -P pdfedit
).
Note that if you want to use CVS, then you have to generate configure
script manually (run autoconf in the source tree root) and you have 
to have installed xsltproc and xsl docbook stylesheet. These are
required for online help generation which is done by us and it is
part of distribution tarball.
I suggest the first (apply patch to release 0.4.1) option and if the 
problem is still there, please report it as new bug in our bug tracker
(http://pdfedit.petricek.net/bt/main_page.php) with original and rotated
documents attached.

> I checked to make sure I had the
> required modules and ran ./configure, but got the following error,
> concerning which I am clueless:
> 
> checking for stdbool.h that conforms to C99... yes
> checking for _Bool... no
> checking for an ANSI C-conforming const... yes
> checking for inline... inline
> 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  !
> 
> My system is OpenSUSE 10.2 x86_64, kernel 2.6.18.8-0.9.

This seems like boost 32b/64b libraries are clashing. Something similar 
was reported by Arch Linux guys. 
We have fixed problem for them with attached patch.Could you try it and 
pass additional
--with-boost-lib=PATH_TO_64b_BOOST_LIBS (I think that /usr/lib64 should
do it).
You have to *regenerate* configure script *after patching* (run autoconf
in the source tree root).
If it fails again, can you provide location of your boost libraries?
(
find /lib{64,} /usr/lib{64,} /usr/local/lib{64,} /opt/lib{64,} -name 
"libboost*" > boost_files 2>&1
)

Best regards
-- 
Michal Hocko
Index: config/boost_base.m4
===================================================================
RCS file: /cvsroot/pdfedit/pdfedit/config/boost_base.m4,v
retrieving revision 1.1
diff -u -p -r1.1 boost_base.m4
--- config/boost_base.m4	28 Nov 2007 14:57:08 -0000	1.1
+++ config/boost_base.m4	10 Mar 2008 10:17:48 -0000
@@ -15,6 +15,21 @@ AC_ARG_WITH([boost],
     ],
     [want_boost="yes"])
 
+
+AC_ARG_WITH([boost-lib],
+        AS_HELP_STRING([--with-boost-lib=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"
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to