[ 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
It works for me with gcc-4.8.4, so I guess the problem occurs with gcc-4.9?
(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.
It fails as shown on a ~x86 box, but compiles fine on a ~amd64 box.
(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.
confirmed above.
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)
This is fixed in git: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cc46cc38b8b31bbf05e3517602292b2592cabf3