New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34384 (closed defect: fixed)

Opened 13 months ago

Last modified 12 months ago

qpdf: ‘pcre_info’ was not declared in this scope

Reported by: Peter_Dyballa@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: dojo@…, ag@…
Port: qpdf

Description (last modified by ryandesign@…) (diff)

The build fails in a fashion similar to that of #32095:

/bin/sh ./libtool --mode=link /usr/bin/g++-4.0 -O2 -arch ppc -Wall -o libqpdf/build/libqpdf.la libqpdf/build/BitStream.lo libqpdf/build/BitWriter.lo libqpdf/build/Buffer.lo libqpdf/build/MD5.lo libqpdf/build/PCRE.lo libqpdf/build/Pipeline.lo libqpdf/build/Pl_AES_PDF.lo libqpdf/build/Pl_ASCII85Decoder.lo libqpdf/build/Pl_ASCIIHexDecoder.lo libqpdf/build/Pl_Buffer.lo libqpdf/build/Pl_Count.lo libqpdf/build/Pl_Discard.lo libqpdf/build/Pl_Flate.lo libqpdf/build/Pl_LZWDecoder.lo libqpdf/build/Pl_MD5.lo libqpdf/build/Pl_PNGFilter.lo libqpdf/build/Pl_QPDFTokenizer.lo libqpdf/build/Pl_RC4.lo libqpdf/build/Pl_StdioFile.lo libqpdf/build/QPDF.lo libqpdf/build/QPDFExc.lo libqpdf/build/QPDFObject.lo libqpdf/build/QPDFObjectHandle.lo libqpdf/build/QPDFTokenizer.lo libqpdf/build/QPDFWriter.lo libqpdf/build/QPDFXRefEntry.lo libqpdf/build/QPDF_Array.lo libqpdf/build/QPDF_Bool.lo libqpdf/build/QPDF_Dictionary.lo libqpdf/build/QPDF_Integer.lo libqpdf/build/QPDF_Name.lo libqpdf/build/QPDF_Null.lo libqpdf/build/QPDF_Real.lo libqpdf/build/QPDF_Stream.lo libqpdf/build/QPDF_String.lo libqpdf/build/QPDF_encryption.lo libqpdf/build/QPDF_linearization.lo libqpdf/build/QPDF_optimization.lo libqpdf/build/QTC.lo libqpdf/build/QUtil.lo libqpdf/build/RC4.lo libqpdf/build/qpdf-c.lo libqpdf/build/rijndael.lo -lpcre -lz  -L/opt/local/lib -arch ppc -rpath /opt/local/lib -version-info 7:0:4
libtool: link: `libqpdf/build/PCRE.lo' is not a valid libtool object
make: *** [libqpdf/build/libqpdf.la] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-2.3.0'

but the actual error happens much earlier:

bin/sh ./libtool --quiet --mode=compile /usr/bin/g++-4.0 -O2 -arch ppc -Wall -MD -MF libqpdf/build/PCRE.tdep -MP -Iinclude -Ilibqpdf -I/opt/local/include -c libqpdf/PCRE.cc -o libqpdf/build/PCRE.o; sed -e 's/\.o:/.lo:/' < libqpdf/build/PCRE.tdep > libqpdf/build/PCRE.dep
libqpdf/PCRE.cc: In constructor ‘PCRE::PCRE(const char*, int)’:
libqpdf/PCRE.cc:147: error: ‘pcre_info’ was not declared in this scope

which does not produce

/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-2.3.0/libqpdf/build/PCRE.lo

because obviously I now have installed:

  pcre @8.30_0 (active)

Attachments

main.log (34.9 KB) - added by Peter_Dyballa@… 13 months ago.
main.log
qpdf-2.3.1.diff (1.0 KB) - added by ryandesign@… 13 months ago.
patch-pcre-8.30.diff (402 bytes) - added by ryandesign@… 13 months ago.

Change History

Changed 13 months ago by Peter_Dyballa@…

main.log

comment:1 Changed 13 months ago by ryandesign@…

  • Status changed from new to assigned
  • Keywords haspatch added
  • Description modified (diff)
  • Owner changed from macports-tickets@… to ryandesign@…
  • Summary changed from qpdf @2.3.0, Revision 1 does not build on PPC Leopard Mac OS X 10.5.8 because "‘pcre_info’ was not declared in this scope" to qpdf: ‘pcre_info’ was not declared in this scope

This problem and its fix were already reported to the developer qpdf who has said he will include the fix in the next version of qpdf.

Here is a patch to update qpdf to 2.3.1 and include this patch. It builds for me. @dojo: May I commit it?

Changed 13 months ago by ryandesign@…

Changed 13 months ago by ryandesign@…

comment:2 Changed 12 months ago by ryandesign@…

  • Cc ag@… added

Has duplicate #34422.

comment:3 Changed 12 months ago by ryandesign@…

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:4 Changed 12 months ago by ag@…

Thanks! Building successful.

Note: See TracTickets for help on using tickets.