Opened 4 years ago

Closed 4 years ago

#62045 closed defect (fixed)

pdflib @7.0.5p3_0: error: use of undeclared identifier 'PDF_PLATFORM'

Reported by: erikssorensen Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: arm64 Cc:
Port: pdflib

Description

When installing on Big Sur M1 arm system the build fails since PDF_PLATFORM is not defined. This is needed as a decency of grace.

Attachments (1)

main.log (40.1 KB) - added by erikssorensen 4 years ago.
main.log for the install

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by erikssorensen

Attachment: main.log added

main.log for the install

comment:1 Changed 4 years ago by mf2k (Frank Schima)

Error appears to be:

:info:build ../../libtool --silent --mode=compile --tag=CC /usr/bin/clang -c -isystem/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -I../../libs/pdcore -I../../libs/pdflib  -I../../libs/flate    -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -arch arm64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPDF_MAC_PLATFORM=\""Mac OS X"\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1  -Wall    pc_string.c
:info:build pc_resource.c:1542:21: error: use of undeclared identifier 'PDF_PLATFORM'
:info:build                     PDF_PLATFORM, PDC_ISBIGENDIAN ? "be" : "le",
:info:build                     ^
:info:build 1 error generated.

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: arm64 added
Summary: pdflib 7.0.5p3_0.darwin_20.arm64.tbz2: PDF_PLATFORM not defined so build failspdflib @7.0.5p3_0: error: use of undeclared identifier 'PDF_PLATFORM'

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In cb4c2fbe74facb2af50c88be74619dcb9a17789f/macports-ports (master):

pdflib: Fix build on Apple Silicon

Closes: #62045

Note: See TracTickets for help on using tickets.