-
Notifications
You must be signed in to change notification settings - Fork 10
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
error: conflicting types for 'fmul' #9
Comments
I've also hit this on Manjaro - installing |
Also broken on Ubuntu cosmic (18.10). |
Try this in the directory before compile: grep -rl "fmul" ./ | xargs sed -i 's/fmul/fixedvar/g' I made a fork with the fix-> https://github.com/pyperanger/crypt-curve25519 |
same here on debian 686-pae, the conflict was in /usr/include/i386-linux-gnu/bits/mathcalls-narrow.h |
With thanks to Mike Benson for trawling the upstream bug reports: ajgb/crypt-curve25519#9 (comment) No revision bump as the package does not install without the fix. This uses a patch rather than a sed statement, as the latter could fail silently. Closes: https://bugs.gentoo.org/669436 Suggested-By: Mike Benson <mike@kambe.com.au> Signed-Off-By: Tony Vroon <chainsaw@gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
greetinx, ...now it no longer compiles on debian 64-bit as well... until this issue is fixed, the unmodified original has unfortunately become useless for direct installation from either CPAN or Github.. ..is there any chance the author will fix the variable name, or can we consider Crypt::Curve25519 as abandoned / no longer maintained? apologies for being so 'blunt' about this.. Taeki |
Send here the new error code... ajgb is away, but the community is always here ;) |
CPAN.pm users may use the following distropref file for automatic patching: |
See attachment "patch_Curve25519.patch.txt".
|
|
I got this error now on Ubuntu 19.10 – needed to build Net::SFTP – is there some way I can help getting this fix to CPAN? |
@pyperanger : Would you like to take over the module? |
@eserte Thanks, I investigated the distroprefs feature, but it sems to not be implemented in cpanminus (nor CPANPLUS), so it's not viable for our deployments, but I will do a manual patch with cpan locally. |
FWIW the posted patch works for me
|
Thanks a lot, this approach worked . The issue was resolved by opening the file mathcalls-narrow.h and removing the below line - __MATHCALL_NARROW (__MATHCALL_NAME (mul), __MATHCALL_REDIR_NAME (mul), 2) |
I don't know if this error is part of the module, but i resolved this issue change variable name and the calls.
OS => ArchLinux
FIX
grep -rl "fmul" ./ | xargs sed -i 's/fmul/fixedvar/g'
ERROR
curve25519-donna-c64.c:99:1: error: conflicting types for 'fmul' fmull(felem output, const felem in2, const felem in) { ^~~~~ In file included from /usr/lib/perl5/5.28/core_perl/CORE/perl.h:2026, from Curve25519.xs:3: /usr/include/bits/mathcalls-narrow.h:30:20: note: previous declaration of 'fmul' was here __MATHCALL_NARROW (__MATHCALL_NAME (mul), __MATHCALL_REDIR_NAME (mul), 2); ^~~~~~~~~~~~~~~ make: *** [Makefile:334: Curve25519.o] Error 1
PS => I found this error during execution of Net::Perl::SSH module.
The text was updated successfully, but these errors were encountered: