[SOLVED] Problem building podofo on Slack 14.1 (32-bit)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I haven't been able to build podofo for a long time. It didn't seeme important enough to loose hair over. But now this is the last problematic package. So it would be nice to have a blank list.
Slackware 32-bit 14.1. Full install (I don't usually have KDE installed, but now I do).
Following is the last bit of output.
Code:
[ 67%] Building CXX object test/unit/CMakeFiles/podofo-test.dir/EncryptTest.cpp.o
cd /tmp/SBo/podofo-0.9.3/build/test/unit && /usr/bin/c++ -DPODOFO_HAVE_GCC_SYMBOL_VISIBILITY -O2 -march=i486 -mtune=i686 -O3 -DNDEBUG -I/cppunit -I/tmp/SBo/podofo-0.9.3/build -I/tmp/SBo/podofo-0.9.3 -I/tmp/SBo/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 -fvisibility=hidden -g -o CMakeFiles/podofo-test.dir/EncryptTest.cpp.o -c /tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.cpp
/tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.cpp:172:6: warning: unused parameter 'keyLength' [-Wunused-parameter]
void EncryptTest::TestAuthenticate( PdfEncrypt* pEncrypt, int keyLength, int rValue )
^
/tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.cpp:172:6: warning: unused parameter 'rValue' [-Wunused-parameter]
/tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.cpp: In member function 'void EncryptTest::TestEncrypt(PoDoFo::PdfEncrypt*)':
/tmp/SBo/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 );
^
/tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.cpp:211:83: note: candidate is:
In file included from /tmp/SBo/podofo-0.9.3/src/podofo-base.h:52:0,
from /tmp/SBo/podofo-0.9.3/src/podofo.h:47,
from /tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.h:24,
from /tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.cpp:21:
/tmp/SBo/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,
^
/tmp/SBo/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&}'
make[2]: *** [test/unit/CMakeFiles/podofo-test.dir/EncryptTest.cpp.o] Error 1
make[2]: Leaving directory `/tmp/SBo/podofo-0.9.3/build'
make[1]: *** [test/unit/CMakeFiles/podofo-test.dir/all] Error 2
make[1]: Leaving directory `/tmp/SBo/podofo-0.9.3/build'
make: *** [all] Error 2
That is a header problem when building test/units/
I know it is in SlackBuild but hey that is an header issue
Quote:
/tmp/SBo/podofo-0.9.3/src/base/PdfEncrypt.h:368:18: note: no known conversion for argument 4 from 'long int' to 'PoDoFo:df_long& {aka int&}'
and with out actually going in and changing the code your kinda of stuck.
because these files also rely on that header.
Code:
/tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.cpp:211:83: note: candidate is:
In file included from /tmp/SBo/podofo-0.9.3/src/podofo-base.h:52:0,
from /tmp/SBo/podofo-0.9.3/src/podofo.h:47,
from /tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.h:24,
from /tmp/SBo/podofo-0.9.3/test/unit/EncryptTest.cpp:21:
Now that said since you do have cpuunit and lua.as per SlackBulid Optional dependencies are cppunit and lua. you may want to turn off unit test off.
if you have cppunit and you must or it would not be building the /test/unit ?. any way you look at it is the developer code and the difference of your gcc slackware 14.1 is 4.8.2
try latest stable edit your build script what do you have to loose.
or uninstall cppunit run ldconfig and try again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.