Opened 18 months ago

Closed 17 months ago

Last modified 17 months ago

#71998 closed defect (fixed)

pdflib @7.0.5p3: fatal error: 'fp.h' file not found

Reported by: cmmccallum Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: sequoia Cc:
Port: pdflib

Description

Building grace, which requires PDFLib, which seems to try to install PDFLib-Lite. Fails with the "Configuration logfiles contain indicators of -Wimplicit-function-declaraion Other Macport notes mention that this is common and needs to be fixed.

Macports 2.10.5 current on OS X Sequoia 15.2

Attachments (2)

config.log (48.3 KB) - added by cmmccallum 18 months ago.
config.log
main.log (208.5 KB) - added by cmmccallum 17 months ago.
main.log from 'port install pdflib'

Download all attachments as: .zip

Change History (11)

comment:1 Changed 18 months ago by jmroot (Joshua Root)

Port: pdflib added; grace/PDFLib removed

Please attach the main.log and config.log.

Changed 18 months ago by cmmccallum

Attachment: config.log added

config.log

comment:2 Changed 18 months ago by cmmccallum

There is no file main.log.

comment:3 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sequoia added
Summary: PDFLib/PDFlib-Lite-7.0.5p3 Warning: Configuration logfiles contain indications of -Wimplicit-function-declarationpdflib @7.0.5p3: Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration

There should be a main.log file unless you removed it or the build succeeded. Its location would be printed by running the command port logfile pdflib.

The config.log is enough to see where there is an error in the configure script, but to see where the build ultimately failed we need to see the main.log.

On my system, the build fails with:

./pngconf.h:391:16: fatal error: 'fp.h' file not found
  391 | #      include <fp.h>
      |                ^~~~~~

Fixing the implicit function declaration does not fix the build error for me. I suspect it will be the same for you.

comment:4 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

In 18e21425ab90e19ef574903a2b103d1a13d29c74/macports-ports (master):

pdflib: Fix another implicit function declaration

See: #71998

comment:5 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

The fp.h problem is a libpng bug only seen on recent versions of clang and described and fixed here:

https://github.com/pnggroup/libpng/pull/529

comment:6 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Status: newaccepted
Summary: pdflib @7.0.5p3: Warning: Configuration logfiles contain indications of -Wimplicit-function-declarationpdflib @7.0.5p3: fatal error: 'fp.h' file not found

comment:7 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 9817ed4b6c956f06d0fd249037614e5770301f41/macports-ports (master):

pdflib: Fix build with recent clang

Closes: #71998

Changed 17 months ago by cmmccallum

Attachment: main.log added

main.log from 'port install pdflib'

comment:8 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Ok, your log shows yet a different error:

fatal error: 'string' file not found

Try ProblemHotlist#clts16 for that.

comment:9 Changed 17 months ago by cmmccallum

OK that seems to have done it. Thanks for your help!

Note: See TracTickets for help on using tickets.