-
Notifications
You must be signed in to change notification settings - Fork 53
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
Errors when building on Fedora 40 #395
Comments
That should be a warning, not an error; please check the compiler flags you are using - maybe Fedora adds a flag that turns this warning into an error. You could also add --- a/unix/os/zfiobf.c
+++ b/unix/os/zfiobf.c
@@ -767,7 +767,7 @@ vm_connect (void)
"vmclient (%s): open server connection `%s' -> ",
vm_client, osfn);
- ZOPNND (osfn, &acmode, &fd);
+ ZOPNND ((PKCHAR *)osfn, &acmode, &fd);
if (fd == XERR) {
if (vm_debug)
fprintf (stderr, "failed\n"); The problem is that in IRAF the pointer conversion is taken rather sloppy in many places. |
I added (PKCHAR *) before the osfn argument and re-did the building. The new error is
Shall I add a new (PKCHAR *)? |
Yes; replace the |
There are still some similar problems in the following building. After I corrected one, a new one showed up. |
Could you post them here? Or (if it is simpler for you) create a pull request with all the proposed fixes? |
|
That was fixed immediately after the release of 2.18, in #391. You could either use a git checkout to build or download tarball from the development branch (https://github.com/olebole/iraf/archive/refs/heads/fix_zopnnd_call.tar.gz) which already includes this. Or you could manually apply at least the patch https://github.com/iraf-community/iraf/commit/6faf887c8.patch (but better all of #391). |
I now downloaded and tested building with Fedora 40 beta, and it worked with the current https://github.com/olebole/iraf/archive/refs/heads/fix_zopnnd_call.tar.gz. I had to add another pointer cast there. You may test it yourself; I'd be glad to hear success or failure. Otherwise, I would merge #396 (which will close this issue) in twoi days or so, |
There seems to be an error when building from the source of V2.18 with
"$ make 2>&1 | tee build.log".
The error is
What's the problem? I'm using Fedora 40.
The text was updated successfully, but these errors were encountered: