[MacPorts] #52564: podofo @0.9.4 +universal: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long'
#52564: podofo @0.9.4 +universal: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' --------------------------+---------------------- Reporter: ryandesign@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: podofo --------------------------+---------------------- {{{ test/unit/EncryptTest.cpp:211:76: error: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' pEncrypt->Decrypt( pEncryptedBuffer, nOutputLen, pDecryptedBuffer, m_lLen ); ^~~~~~ /opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_podofo/podofo/work/podofo-0.9.4/src/base/PdfEncrypt.h:371:59: note: passing argument to parameter 'outLen' here unsigned char* outStr, pdf_long &outLen) const = 0; ^ 1 error generated. }}} -- Ticket URL: <https://trac.macports.org/ticket/52564> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#52564: podofo @0.9.4 +universal: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' ---------------------------+---------------------- Reporter: ryandesign@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: podofo | ---------------------------+---------------------- Old description:
{{{ test/unit/EncryptTest.cpp:211:76: error: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' pEncrypt->Decrypt( pEncryptedBuffer, nOutputLen, pDecryptedBuffer, m_lLen ); ^~~~~~ /opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_podofo/podofo/work/podofo-0.9.4/src/base/PdfEncrypt.h:371:59: note: passing argument to parameter 'outLen' here unsigned char* outStr, pdf_long &outLen) const = 0; ^ 1 error generated. }}}
New description: {{{ test/unit/EncryptTest.cpp:211:76: error: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' pEncrypt->Decrypt( pEncryptedBuffer, nOutputLen, pDecryptedBuffer, m_lLen ); ^~~~~~ src/base/PdfEncrypt.h:371:59: note: passing argument to parameter 'outLen' here unsigned char* outStr, pdf_long &outLen) const = 0; ^ 1 error generated. }}} -- Comment (by ryandesign@…): Builds fine when not using the universal variant. -- Ticket URL: <https://trac.macports.org/ticket/52564#comment:1> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#52564: podofo @0.9.4 +universal: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' ---------------------------+---------------------- Reporter: ryandesign@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: podofo | ---------------------------+---------------------- Changes (by devans@…): * status: new => assigned Comment: Bummer, I was really feeling good about finally fixing the "can't build with old installed copy" problem. But I'll take a look. My experience is that cmake and +universal don't always work well together. Too much going on silently (and often undocumented) behind the scenes with cmake. Thanks for catching this. -- Ticket URL: <https://trac.macports.org/ticket/52564#comment:2> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#52564: podofo @0.9.4 +universal: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' ---------------------------+---------------------- Reporter: ryandesign@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: podofo | ---------------------------+---------------------- Comment (by ryandesign@…): Replying to [comment:2 devans@…]:
Bummer, I was really feeling good about finally fixing the "can't build with old installed copy" problem.
That's not it: this happens even if podofo is not already installed.
My experience is that cmake and +universal don't always work well together.
This particular problem isn't related to universal; it's related to building 32-bit. podofo @0.9.4 doesn't build single-arch i386 either; log attached. -- Ticket URL: <https://trac.macports.org/ticket/52564#comment:3> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#52564: podofo @0.9.4 +universal: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' ---------------------------+---------------------- Reporter: ryandesign@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: podofo | ---------------------------+---------------------- Comment (by devans@…): Replying to [comment:3 ryandesign@…]:
Replying to [comment:2 devans@…]: This particular problem isn't related to universal; it's related to building 32-bit. podofo @0.9.4 doesn't build single-arch i386 either; log attached.
I was just coming around to that way of thinking myself. Thanks for the logfile. There may be hope yet. -- Ticket URL: <https://trac.macports.org/ticket/52564#comment:4> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#52564: podofo @0.9.4 +universal: non-const lvalue reference to type 'pdf_long' (aka 'int') cannot bind to a value of unrelated type 'long' ---------------------------+---------------------- Reporter: ryandesign@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: podofo | ---------------------------+---------------------- Changes (by devans@…): * status: assigned => closed * resolution: => fixed Comment: Fix committed in r153780. -- Ticket URL: <https://trac.macports.org/ticket/52564#comment:5> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts