-
Notifications
You must be signed in to change notification settings - Fork 15
error: cannot combine with previous 'type-name' declaration specifier gboolean bool #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I see the same error under macOS (Monterey and Ventura) under MacPorts. But this time the error is for
|
Any news on this? |
Hi @Schamschula, Sorry for not having replied before. It looks like you are trying to build in C99 mode. This revision of the standard added a built in "bool" type, which will clash with the various boolean types in nip2, libjpeg, etc etc. Try building in C89 mode. |
I'll have a quick go at fixing C99 build, perhaps it's a simple thing. |
Ah it was very simple. It now builds for me with:
Thanks for reporting this dumbness. |
I tried setting |
Huh that's strange. I tried with clang 15 and with gcc 12 and they both worked. Which compiler are you using? |
On the Mac, I was building using the default Xcode 14.2 compiler clang under macOS Monterey (I get the same error on an Intel iMac running Ventura - same clang version but for x86_64):
All MacPorts builds have failed for which we have CI records in GitHub (back to 2020). |
That's strange, I wonder why it fails. Could you (very quickly! I'd hate to waste your time!) try git master head for nip2? If that patch fixes it, I'll make a new release. (my 2012 imac finally died last week or I'd test myself) |
The patch file fails when applied to
|
I tried making a test release: http://www.rollthepotato.net/~john/nip2-8.9.1.tar.gz That ought to build (hopefully) with just |
The test release results in a clean build! |
Great! I'll make a proper release. Thanks for pushing on this issue @Schamschula. |
P.S. That build was using the MacPorts infrastructure. When I opened the App, the first thing I noticed is that the Copyright date needs to be updated before the official release. |
OK, we have https://github.com/libvips/nip2/releases/tag/v8.9.1 I updated the copyright too. |
Pushed update to MacPorts: macports/macports-ports@52ab6fd |
While building nip2 under FreeBSD14.0-CURRENT, I get the following error
The text was updated successfully, but these errors were encountered: