Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556962 - app-text/podofo-0.9.3: no matching function for call to ‘PoDoFo::PdfEncrypt::Decrypt(unsigned char*&, int&, unsigned char*&, long int&)
Summary: app-text/podofo-0.9.3: no matching function for call to ‘PoDoFo::PdfEncrypt::...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2015-08-07 16:11 UTC by Andrey Grozin
Modified: 2015-09-13 23:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2015-08-07 16:11:48 UTC
[ 62%] Building CXX object test/unit/CMakeFiles/podofo-test.dir/EncryptTest.cpp.o
cd /var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3_build/test/unit && /usr/bin/i686-pc-linux-gnu-g++    -DNDEBUG -O2 -march=native -pipe  -I/cppunit -I/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3_build -I/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3 -I/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/src -I/usr/include/freetype2 -I/src -I/src/os    -std=c++98 -Wall -Woverloaded-virtual -Wswitch-enum -Wcast-qual -Wwrite-strings -Wredundant-decls -Wreorder -W -g -o CMakeFiles/podofo-test.dir/EncryptTest.cpp.o -c /var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/test/unit/EncryptTest.cpp
/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/test/unit/EncryptTest.cpp:172:63: warning: unused parameter ‘keyLength’ [-Wunused-parameter]
 void EncryptTest::TestAuthenticate( PdfEncrypt* pEncrypt, int keyLength, int rValue ) 
                                                               ^
/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/test/unit/EncryptTest.cpp:172:78: warning: unused parameter ‘rValue’ [-Wunused-parameter]
 void EncryptTest::TestAuthenticate( PdfEncrypt* pEncrypt, int keyLength, int rValue ) 
                                                                              ^
/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/test/unit/EncryptTest.cpp: In member function ‘void EncryptTest::TestEncrypt(PoDoFo::PdfEncrypt*)’:
/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/test/unit/EncryptTest.cpp:211:83: error: no matching function for call to ‘PoDoFo::PdfEncrypt::Decrypt(unsigned char*&, int&, unsigned char*&, long int&)’
         pEncrypt->Decrypt( pEncryptedBuffer, nOutputLen, pDecryptedBuffer, m_lLen );
                                                                                   ^
/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/test/unit/EncryptTest.cpp:211:83: note: candidate is:
In file included from /var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/src/podofo-base.h:52:0,
                 from /var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/src/podofo.h:47,
                 from /var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/test/unit/EncryptTest.h:24,
                 from /var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/test/unit/EncryptTest.cpp:21:
/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/src/base/PdfEncrypt.h:368:18: note: virtual void PoDoFo::PdfEncrypt::Decrypt(const unsigned char*, PoDoFo::pdf_long, unsigned char*, PoDoFo::pdf_long&) const
     virtual void Decrypt(const unsigned char* inStr, pdf_long inLen,
                  ^
/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3/src/base/PdfEncrypt.h:368:18: note:   no known conversion for argument 4 from ‘long int’ to ‘PoDoFo::pdf_long& {aka int&}’
test/unit/CMakeFiles/podofo-test.dir/build.make:158: recipe for target 'test/unit/CMakeFiles/podofo-test.dir/EncryptTest.cpp.o' failed
make[2]: *** [test/unit/CMakeFiles/podofo-test.dir/EncryptTest.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3_build'
CMakeFiles/Makefile2:886: recipe for target 'test/unit/CMakeFiles/podofo-test.dir/all' failed
make[1]: *** [test/unit/CMakeFiles/podofo-test.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-text/podofo-0.9.3/work/podofo-0.9.3_build'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 Zac Medico gentoo-dev 2015-08-08 05:55:07 UTC
It works for me with gcc-4.8.4, so I guess the problem occurs with gcc-4.9?
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-08-08 09:07:42 UTC
(In reply to Zac Medico from comment #1)
> It works for me with gcc-4.8.4, so I guess the problem occurs with gcc-4.9?

I doubt it. I test-compiled it with gcc-4.9.2 before committing to the tree.
Comment 3 Andrey Grozin gentoo-dev 2015-08-08 10:29:22 UTC
It fails as shown on a ~x86 box, but compiles fine on a ~amd64 box.
Comment 4 Guy 2015-08-10 02:34:22 UTC
(In reply to Andrey Grozin from comment #3)
> It fails as shown on a ~x86 box, but compiles fine on a ~amd64 box.

If fails on all three of my ~x86 boxen {Pentium 4, Atom N270 and qemu 32bit client} but compiles fine on both my ~amd64 boxen {Phenom 9600 and A10-7850K}  as well.
Comment 5 Fernando (likewhoa) 2015-09-11 18:03:13 UTC
confirmed above.
Comment 6 Andrey Grozin gentoo-dev 2015-09-12 13:57:31 UTC
I suppose we should mask =app-text/podofo-0.9.3 on x86 (I already have done it locally, to avoid frustration every time I update @world)