[MacPorts] #62911: qpdf @10.3.1 cannot be built with gcc because -latomic is not included in the link

MacPorts noreply at macports.org
Sun Nov 28 08:49:49 UTC 2021


#62911: qpdf @10.3.1 cannot be built with gcc because -latomic is not included in
the link
------------------------+---------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.4
Resolution:             |   Keywords:  leopard
      Port:  qpdf       |
------------------------+---------------------

Comment (by ballapete):

 Trying to upgrade to version 10.4.0 produces this (well-known) error on
 PPC Leopard, Mac OS X 10.5.8:

 {{{
 /bin/bash ./libtool --mode=link --tag=CXX /opt/local/bin/g++-mp-7  -pipe
 -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -fvisibility=hidden
 -Wconversion -Wsign-conversion -Wshadow=local
 -I/opt/local/include/p11-kit-1  -Wold-style-cast -Wall  -o
 libqpdf/build/libqpdf.la libqpdf/build/BitStream.lo
 libqpdf/build/BitWriter.lo libqpdf/build/Buffer.lo
 libqpdf/build/BufferInputSource.lo libqpdf/build/ClosedFileInputSource.lo
 libqpdf/build/ContentNormalizer.lo
 libqpdf/build/CryptoRandomDataProvider.lo libqpdf/build/FileInputSource.lo
 libqpdf/build/InputSource.lo libqpdf/build/InsecureRandomDataProvider.lo
 libqpdf/build/JSON.lo libqpdf/build/MD5.lo libqpdf/build/NNTree.lo
 libqpdf/build/OffsetInputSource.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_Concatenate.lo libqpdf/build/Pl_Count.lo
 libqpdf/build/Pl_DCT.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_RunLength.lo libqpdf/build/Pl_SHA2.lo
 libqpdf/build/Pl_StdioFile.lo libqpdf/build/Pl_TIFFPredictor.lo
 libqpdf/build/QPDF.lo libqpdf/build/QPDFAcroFormDocumentHelper.lo
 libqpdf/build/QPDFAnnotationObjectHelper.lo
 libqpdf/build/QPDFCryptoProvider.lo
 libqpdf/build/QPDFEFStreamObjectHelper.lo
 libqpdf/build/QPDFEmbeddedFileDocumentHelper.lo libqpdf/build/QPDFExc.lo
 libqpdf/build/QPDFFileSpecObjectHelper.lo
 libqpdf/build/QPDFFormFieldObjectHelper.lo libqpdf/build/QPDFMatrix.lo
 libqpdf/build/QPDFNameTreeObjectHelper.lo
 libqpdf/build/QPDFNumberTreeObjectHelper.lo libqpdf/build/QPDFObjGen.lo
 libqpdf/build/QPDFObject.lo libqpdf/build/QPDFObjectHandle.lo
 libqpdf/build/QPDFOutlineDocumentHelper.lo
 libqpdf/build/QPDFOutlineObjectHelper.lo
 libqpdf/build/QPDFPageDocumentHelper.lo
 libqpdf/build/QPDFPageLabelDocumentHelper.lo
 libqpdf/build/QPDFPageObjectHelper.lo libqpdf/build/QPDFStreamFilter.lo
 libqpdf/build/QPDFSystemError.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_InlineImage.lo
 libqpdf/build/QPDF_Integer.lo libqpdf/build/QPDF_Name.lo
 libqpdf/build/QPDF_Null.lo libqpdf/build/QPDF_Operator.lo
 libqpdf/build/QPDF_Real.lo libqpdf/build/QPDF_Reserved.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/QPDF_pages.lo
 libqpdf/build/QTC.lo libqpdf/build/QUtil.lo libqpdf/build/RC4.lo
 libqpdf/build/ResourceFinder.lo libqpdf/build/SecureRandomDataProvider.lo
 libqpdf/build/SF_FlateLzwDecode.lo libqpdf/build/SparseOHArray.lo
 libqpdf/build/qpdf-c.lo libqpdf/build/AES_PDF_native.lo
 libqpdf/build/MD5_native.lo libqpdf/build/QPDFCrypto_native.lo
 libqpdf/build/RC4_native.lo libqpdf/build/SHA2_native.lo
 libqpdf/build/rijndael.lo libqpdf/build/QPDFCrypto_gnutls.lo
 libqpdf/build/sha2.lo libqpdf/build/sha2big.lo -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc -L/opt/local/lib
 -L/opt/local/lib -lz -ljpeg -L/opt/local/lib -lgnutls -rpath
 /opt/local/lib -version-info 32:0:4 -no-undefined
 libtool: link: /opt/local/bin/g++-mp-7  -dynamiclib  -o
 libqpdf/build/.libs/libqpdf.28.dylib  libqpdf/build/.libs/BitStream.o
 libqpdf/build/.libs/BitWriter.o libqpdf/build/.libs/Buffer.o
 libqpdf/build/.libs/BufferInputSource.o
 libqpdf/build/.libs/ClosedFileInputSource.o
 libqpdf/build/.libs/ContentNormalizer.o
 libqpdf/build/.libs/CryptoRandomDataProvider.o
 libqpdf/build/.libs/FileInputSource.o libqpdf/build/.libs/InputSource.o
 libqpdf/build/.libs/InsecureRandomDataProvider.o
 libqpdf/build/.libs/JSON.o libqpdf/build/.libs/MD5.o
 libqpdf/build/.libs/NNTree.o libqpdf/build/.libs/OffsetInputSource.o
 libqpdf/build/.libs/Pipeline.o libqpdf/build/.libs/Pl_AES_PDF.o
 libqpdf/build/.libs/Pl_ASCII85Decoder.o
 libqpdf/build/.libs/Pl_ASCIIHexDecoder.o libqpdf/build/.libs/Pl_Buffer.o
 libqpdf/build/.libs/Pl_Concatenate.o libqpdf/build/.libs/Pl_Count.o
 libqpdf/build/.libs/Pl_DCT.o libqpdf/build/.libs/Pl_Discard.o
 libqpdf/build/.libs/Pl_Flate.o libqpdf/build/.libs/Pl_LZWDecoder.o
 libqpdf/build/.libs/Pl_MD5.o libqpdf/build/.libs/Pl_PNGFilter.o
 libqpdf/build/.libs/Pl_QPDFTokenizer.o libqpdf/build/.libs/Pl_RC4.o
 libqpdf/build/.libs/Pl_RunLength.o libqpdf/build/.libs/Pl_SHA2.o
 libqpdf/build/.libs/Pl_StdioFile.o libqpdf/build/.libs/Pl_TIFFPredictor.o
 libqpdf/build/.libs/QPDF.o
 libqpdf/build/.libs/QPDFAcroFormDocumentHelper.o
 libqpdf/build/.libs/QPDFAnnotationObjectHelper.o
 libqpdf/build/.libs/QPDFCryptoProvider.o
 libqpdf/build/.libs/QPDFEFStreamObjectHelper.o
 libqpdf/build/.libs/QPDFEmbeddedFileDocumentHelper.o
 libqpdf/build/.libs/QPDFExc.o
 libqpdf/build/.libs/QPDFFileSpecObjectHelper.o
 libqpdf/build/.libs/QPDFFormFieldObjectHelper.o
 libqpdf/build/.libs/QPDFMatrix.o
 libqpdf/build/.libs/QPDFNameTreeObjectHelper.o
 libqpdf/build/.libs/QPDFNumberTreeObjectHelper.o
 libqpdf/build/.libs/QPDFObjGen.o libqpdf/build/.libs/QPDFObject.o
 libqpdf/build/.libs/QPDFObjectHandle.o
 libqpdf/build/.libs/QPDFOutlineDocumentHelper.o
 libqpdf/build/.libs/QPDFOutlineObjectHelper.o
 libqpdf/build/.libs/QPDFPageDocumentHelper.o
 libqpdf/build/.libs/QPDFPageLabelDocumentHelper.o
 libqpdf/build/.libs/QPDFPageObjectHelper.o
 libqpdf/build/.libs/QPDFStreamFilter.o
 libqpdf/build/.libs/QPDFSystemError.o libqpdf/build/.libs/QPDFTokenizer.o
 libqpdf/build/.libs/QPDFWriter.o libqpdf/build/.libs/QPDFXRefEntry.o
 libqpdf/build/.libs/QPDF_Array.o libqpdf/build/.libs/QPDF_Bool.o
 libqpdf/build/.libs/QPDF_Dictionary.o
 libqpdf/build/.libs/QPDF_InlineImage.o libqpdf/build/.libs/QPDF_Integer.o
 libqpdf/build/.libs/QPDF_Name.o libqpdf/build/.libs/QPDF_Null.o
 libqpdf/build/.libs/QPDF_Operator.o libqpdf/build/.libs/QPDF_Real.o
 libqpdf/build/.libs/QPDF_Reserved.o libqpdf/build/.libs/QPDF_Stream.o
 libqpdf/build/.libs/QPDF_String.o libqpdf/build/.libs/QPDF_encryption.o
 libqpdf/build/.libs/QPDF_linearization.o
 libqpdf/build/.libs/QPDF_optimization.o libqpdf/build/.libs/QPDF_pages.o
 libqpdf/build/.libs/QTC.o libqpdf/build/.libs/QUtil.o
 libqpdf/build/.libs/RC4.o libqpdf/build/.libs/ResourceFinder.o
 libqpdf/build/.libs/SecureRandomDataProvider.o
 libqpdf/build/.libs/SF_FlateLzwDecode.o
 libqpdf/build/.libs/SparseOHArray.o libqpdf/build/.libs/qpdf-c.o
 libqpdf/build/.libs/AES_PDF_native.o libqpdf/build/.libs/MD5_native.o
 libqpdf/build/.libs/QPDFCrypto_native.o libqpdf/build/.libs/RC4_native.o
 libqpdf/build/.libs/SHA2_native.o libqpdf/build/.libs/rijndael.o
 libqpdf/build/.libs/QPDFCrypto_gnutls.o libqpdf/build/.libs/sha2.o
 libqpdf/build/.libs/sha2big.o   -L/opt/local/lib -lz -ljpeg
 /opt/local/lib/libgnutls.dylib  -Os -arch ppc
 -Wl,-headerpad_max_install_names -arch ppc   -framework Security
 -framework CoreFoundation -install_name  /opt/local/lib/libqpdf.28.dylib
 -compatibility_version 33 -current_version 33.0 -Wl,-single_module
 Undefined symbols for architecture ppc:
   "___atomic_fetch_add_8", referenced from:
       QPDF::QPDF()  in QPDF.o
 ld: symbol(s) not found for architecture ppc
 collect2: error: ld returned 1 exit status
 make: *** [libqpdf/build/libqpdf.la] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-10.4.0'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-10.4.0"
 && /usr/bin/make -j1 -w all
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62911#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list