LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-16-2015, 11:11 PM   #1
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Rep: Reputation: 45
Problem building podofo on Slack 14.1 (32-bit)


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
Any hints?

Last edited by Wed; 12-17-2015 at 05:21 AM.
 
Old 12-16-2015, 11:36 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Hi

i just tested this on slackware64-14.1 and it compiles fine
 
Old 12-16-2015, 11:40 PM   #3
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Yes. I have no problem with it on my 64-bit machine. My two 32-bit machines though, constantly fails.
 
Old 12-16-2015, 11:49 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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.

as you will see you are not the only one with this issue. http://sourceforge.net/p/podofo/mail...sage/34595810/
 
Old 12-17-2015, 12:07 AM   #5
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
I have only searched for podofo here on LQ and assumed the problem was too small to gain attention, or only me.

But actually, I have done well all this time with the version I have. Could the next version of Slackware be a relief? I'll just leave it.

Thanks for all help!
 
Old 12-17-2015, 03:25 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by Drakeo View Post
uninstall cppunit [...] and try again.
I also do this to build podofo on slackware-current (32bit).
 
Old 12-17-2015, 05:15 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
just tested in slackware-14.1 (32 bit) and it worked fine here too
it's a clean VM, with NO SBo packages at all
 
Old 12-17-2015, 05:20 AM   #8
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Removing cppunit and compiling podofo actually turned out to be trivial. Many thanks again.
 
Old 12-17-2015, 11:25 AM   #9
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
cool
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Any problem running the 64-bit mkinitrd to make the init RAM disk for 32-bit Slack? stf92 Slackware 4 03-16-2014 12:44 PM
[SOLVED] Dual boot Slack 32 bit and Slack 64 bit on two drives - lilo config? camorri Slackware 8 10-04-2012 07:50 PM
Problem building 32-bit and 64-bit packages Woodsman Slackware 5 09-26-2012 05:44 AM
fb problem in new 13.37 64 bit Slack install raypen Slackware 23 12-06-2011 07:02 PM
Problem building gtk+ programs on Slack 12.2 intens Slackware 3 01-03-2009 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration