Re: [MacPorts] #34384: qpdf: ‘pcre_info’ was not declared in this scope (was: 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")

MacPorts noreply at macports.org
Thu May 10 15:34:32 PDT 2012


#34384: qpdf: ‘pcre_info’ was not declared in this scope
--------------------------------------+-------------------------------------
 Reporter:  Peter_Dyballa@…           |       Owner:  ryandesign@…           
     Type:  defect                    |      Status:  assigned               
 Priority:  Normal                    |   Milestone:                         
Component:  ports                     |     Version:  2.0.4                  
 Keywords:  haspatch                  |        Port:  qpdf                   
--------------------------------------+-------------------------------------
Changes (by ryandesign@…):

  * status:  new => assigned
  * owner:  macports-tickets@… => ryandesign@…
  * keywords:  => haspatch


Old description:

> 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)
> }}}

New description:

 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)
 }}}

--

Comment:

 This problem and its fix were
 [https://sourceforge.net/tracker/?func=detail&aid=3489349&group_id=224196&atid=1060899
 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?

-- 
Ticket URL: <https://trac.macports.org/ticket/34384#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list