Opened 5 months ago

Last modified 4 weeks ago

#70177 assigned defect

libreCAD @2.2.0.2_0: error: unknown type name 'FILE'

Reported by: swp-gh Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: libreCAD

Description

Unable to build libreCAD. I was able to successfully build the port 3 months ago with an earlier Xcode version.

  • MacBook Pro (M1 Pro)
  • OS: 14.5
  • Xcode: 15.4, CLT 15.3.0.0.1.1708646388

Log file attached

Attachments (1)

main.log.gz (15.8 KB) - added by swp-gh 5 months ago.

Download all attachments as: .zip

Change History (5)

Changed 5 months ago by swp-gh

Attachment: main.log.gz added

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

Cc: herby.gillot@… removed
Owner: set to herbygillot
Status: newassigned

comment:2 Changed 4 weeks ago by swp-gh

Successfully installed LibreCAD 2.2.0-undef via an updated version of MacPorts (2.10.2). All is well, so I think this can be closed.

comment:3 in reply to:  2 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Summary: libreCAD @2.2.0.2_0: Fails to buildlibreCAD @2.2.0.2_0: error: unknown type name 'FILE'

The error in the log was:

In file included from lib/debug/rs_debug.cpp:28:
lib/debug/rs_debug.h:91:20: error: unknown type name 'FILE'
    void setStream(FILE* s) {
                   ^
lib/debug/rs_debug.h:99:5: error: unknown type name 'FILE'
    FILE* stream;
    ^

Replying to swp-gh:

Successfully installed LibreCAD 2.2.0-undef

I'm not sure what you mean. The current version of the port is 2.2.0.2. The port hasn't changed since October 2023, well before this issue was filed. Where did you get version 2.2.0-undef?

comment:4 Changed 4 weeks ago by swp-gh

I can't explain it. I simply ran 'port install libreCAD' as usual. As far as I know, the only changes I made were updating MacPorts to 2.10.2 (along with a 'port sync') and an OS update to 14.6.1. In the case of the unsuccessful installation, there was an attempt at a local build per the previously attached log. The recent successful installation entailed a download of a precompiled package. In both cases, my macports.conf file included "buildfromsource ifneeded".

The LibreCAD version was reported by its "About" menu selection. The output was:

Version: 2.2.0-undef Compiler: Clang 15.0.0 Compiled on: Jul 15 2024 Qt Version: 5.15.15 Boost Version: 1.81.0 System: macOS 14.6

If this doesn't match up with expectations, I can try uninstalling and reinstalling to capture more info.

Note: See TracTickets for help on using tickets.