Hi,

I committed a fix as revision 1915 to trunk. I hope this fixes the build
error. Could you please verify this? I do not have an i386 system arround.

Thanks && Best regards,
 Dominik

On Sun, Apr 8, 2018 at 4:06 PM, Mattia Rizzolo <mat...@debian.org> wrote:

> On Sun, Apr 08, 2018 at 02:12:32PM +0200, Dominik Seichter via
> Podofo-users wrote:
> > The first release candidate for PoDoFo 0.9.6 can be downloaded from here:
> > https://sourceforge.net/projects/podofo/files/podofo/
> 0.9.6/podofo-0.9.6-rc1.tar.gz/download
> >
> > Only critical patches will be integrated before release from now on.
>
> Building it on i386 fails:
>
> [ 65%] Building CXX object test/unit/CMakeFiles/podofo-
> test.dir/StringTest.cpp.o
> cd "/build/libpodofo-0.9.6~rc1/obj-i686-linux-gnu/test/unit" &&
> /usr/lib/ccache/c++  -DPODOFO_HAVE_GCC_SYMBOL_VISIBILITY
> -I"/build/libpodofo-0.9.6~rc1/obj-i686-linux-gnu"
> -I"/build/libpodofo-0.9.6~rc1" -I/usr/include/i386-linux-gnu
> -I/usr/include/cppunit -I/usr/include/lua5.1 
> -I"/build/libpodofo-0.9.6~rc1/src"
> -I/usr/include/freetype2 -I/src -I/src/os  -g -O2 
> -fdebug-prefix-map=/build/libpodofo-0.9.6~rc1=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -Wall -Woverloaded-virtual -Wswitch-enum -Wcast-qual
> -Wwrite-strings -Wredundant-decls -Wreorder -Wno-deprecated-declarations
>  -W -fvisibility=hidden -g -o CMakeFiles/podofo-test.dir/StringTest.cpp.o
> -c "/build/libpodofo-0.9.6~rc1/test/unit/StringTest.cpp"
> /build/libpodofo-0.9.6~rc1/test/unit/StringTest.cpp: In function 'void
> print(PoDoFo::pdf_utf16be*, PoDoFo::pdf_long)':
> /build/libpodofo-0.9.6~rc1/test/unit/StringTest.cpp:47:36: warning:
> format '%li' expects argument of type 'long int', but argument 2 has type
> 'PoDoFo::pdf_long {aka int}' [-Wformat=]
>      printf("start lLen=%li\n", lLen);
>                                     ^
> In file included from /usr/include/cppunit/TestCase.h:6:0,
>                  from /usr/include/cppunit/TestCaller.h:5,
>                  from /usr/include/cppunit/extensions/HelperMacros.h:9,
>                  from /build/libpodofo-0.9.6~rc1/
> test/unit/StringTest.h:24,
>                  from /build/libpodofo-0.9.6~rc1/
> test/unit/StringTest.cpp:21:
> /build/libpodofo-0.9.6~rc1/test/unit/StringTest.cpp: In member function
> 'void StringTest::TestLibUnistringInternal(const char*, long int, long
> int)':
> /build/libpodofo-0.9.6~rc1/test/unit/StringTest.cpp:73:5: error: no
> matching function for call to 'assertEquals(long int, PoDoFo::pdf_long&,
> CppUnit::SourceLine, const char [66])'
>      CPPUNIT_ASSERT_EQUAL_MESSAGE( "Comparing length of output buffer
> after utf8 -> utf16 conversion.", lLenUtf16 + 1, result1 );
>      ^
> /usr/include/cppunit/TestAssert.h:127:6: note: candidate: template<class
> T> void CppUnit::assertEquals(const T&, const T&, CppUnit::SourceLine,
> const string&)
>  void assertEquals( const T& expected,
>       ^~~~~~~~~~~~
> /usr/include/cppunit/TestAssert.h:127:6: note:   template argument
> deduction/substitution failed:
> /build/libpodofo-0.9.6~rc1/test/unit/StringTest.cpp:73:5: note:   deduced
> conflicting types for parameter 'const T' ('long int' and 'PoDoFo::pdf_long
> {aka int}')
>      CPPUNIT_ASSERT_EQUAL_MESSAGE( "Comparing length of output buffer
> after utf8 -> utf16 conversion.", lLenUtf16 + 1, result1 );
>      ^
> /build/libpodofo-0.9.6~rc1/test/unit/StringTest.cpp:78:5: error: no
> matching function for call to 'assertEquals(long int, PoDoFo::pdf_long&,
> CppUnit::SourceLine, const char [74])'
>      CPPUNIT_ASSERT_EQUAL_MESSAGE( "Comparing length of output buffer
> after utf8 -> utf16 -> utf8 conversion.", lLenUtf8 + 1, result2 );
>      ^
> /usr/include/cppunit/TestAssert.h:127:6: note: candidate: template<class
> T> void CppUnit::assertEquals(const T&, const T&, CppUnit::SourceLine,
> const string&)
>  void assertEquals( const T& expected,
>       ^~~~~~~~~~~~
> /usr/include/cppunit/TestAssert.h:127:6: note:   template argument
> deduction/substitution failed:
> /build/libpodofo-0.9.6~rc1/test/unit/StringTest.cpp:78:5: note:   deduced
> conflicting types for parameter 'const T' ('long int' and 'PoDoFo::pdf_long
> {aka int}')
>      CPPUNIT_ASSERT_EQUAL_MESSAGE( "Comparing length of output buffer
> after utf8 -> utf16 -> utf8 conversion.", lLenUtf8 + 1, result2 );
>      ^
> test/unit/CMakeFiles/podofo-test.dir/build.make:377: recipe for target
> 'test/unit/CMakeFiles/podofo-test.dir/StringTest.cpp.o' failed
> make[3]: *** [test/unit/CMakeFiles/podofo-test.dir/StringTest.cpp.o]
> Error 1
>
>
> --
> regards,
>                         Mattia Rizzolo
>
> GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
> more about me:  https://mapreri.org                             : :'  :
> Launchpad user: https://launchpad.net/~mapreri                  `. `'`
> Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to