Dear Flair team,
My attempt to install flair 3.4 on Mac Sonoma was met with errors, the beginning of which is like this.
/opt/local/lib/gcc13/gcc/aarch64-apple-darwin23/13.3.0/include-fixed/stdio.h:83:8: error: 'FILE' does not name a type
83 | extern FILE *__stdinp;
| ^~~~
/opt/local/lib/gcc13/gcc/aarch64-apple-darwin23/13.3.0/include-fixed/stdio.h:81:1: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
80 | #include <sys/_types/_seek_set.h>
+++ |+#include <cstdio>
81 |
The full list is attached, along with the port echo installed.
I probabaly messed up something because the flair beta version (3.x.3.4) that I succesfully installed previously doesn’t compile now.
Many thanks for all the help.
Sunil
I’m afraid that something is broken in your environment.
This may happen when the system, CLT or MacPorts are updated and it is painful to find the reason.
As first solution, I would suggest wiping all your ports with the following commands
sudo port -fp uninstall installed
and then reinstalled the required MacPorts ports following the instruction in Flair website.
Remember to issue the command make clean in geoviewer directory before recompiling.
I am sorry that it is a long procedure but I don’t have a more straightforward solution. This depends because we need different layers of software to compile Flair on Mac.
Hi Luigi,
I removed all ports, did a fresh install of all ports, removed the flair directory and untared afresh and compiled, but that failed. Then I tried your suggesrtions to Mary for python313, and that too failed with the following errors.
/opt/local/lib/gcc13/gcc/aarch64-apple-darwin23/13.3.0/include-fixed/stdio.h:83:8: error: 'FILE' does not name a type
83 | extern FILE *__stdinp;
| ^~~~
/opt/local/lib/gcc13/gcc/aarch64-apple-darwin23/13.3.0/include-fixed/stdio.h:81:1: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
80 | #include <sys/_types/_seek_set.h>
+++ |+#include <cstdio>
81 |
I then tried python311, but that too failed similalry.
What do you sugest?
thanks for helping me with this.
Ciao.
Some colleagues had a similar problem. Unfortunately, we don’t know the reason for this problem, and I was not able to reproduce it.
For them, the solution was to update to Sequoia and follow the instructions in this post.
Giving a second look at your initial post, I notice that there is an error in the output of the command pkgutil --pkg-info=com.apple.pkg.CLTools_Executables.
Not sure if this is linked to the problem, but you can try to remove the CLT with sudo rm -rf /Library/Developer/CommandLineTools
and reinstall back with xcode-select --install.
I’m sorry I don’t have a more clean solution at this time.
Many thanks Luigi,
Updates to this Mac is controlled by the IT group and they are often delayed by several months, but luckily for me, I was able to update to Sequoia 15.3.2, and combined with your proposed method, I managed to install flair 3.4.
Thanks a lot for your support on this.