reported build issues with mac os 10.12.6 #338
Labels
No labels
bug
duplicate
enhancement
feature
help wanted
improve API
invalid
needs documentation
not-planned
rtfm
stale
support
wishlist
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libtom/libtomcrypt#338
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pixiewps user @DJDan reported the following issues:
seems both tomsfastmath and libtomcrypt typedef ulong64, which is not quite conforming. maybe it'd be a good idea to add a #define ULONG64_DEFINED and only do the typedef if it wasnt defined already.
i just added tomcrypt this week, so we're using the latest bleeding edge sources of both tfm and tc.
well I guess that's caused by an incomplete rip-apart of ltc
normally either you use tfm and include
tfm.hOR ltc+tfm and includetomcrypt.hwhich includestfm.hwhich has the typedef protected by#ifndef CRYPTregarding the
signal.herror... that smells like an error in the toolchain to me... CMIIWi see
from what i've heard you would need to define
#define _DARWIN_C_SOURCEto getNSIGfor some reason, but as i do not have access to a mac, i can't tell for sure....neither do I.
@wiire-a you gave a 👍 to the issue, can you please elaborate on what we can/should do?
The issue was reported to me by @rofl0r after he integrated tomcrypt e tomsfastmath. It was a quick job so we probably missed the correct way of doing things.
Later I just pushed some quick changes to fix all the issues / warnings:
LTC_ARGCHKmacro:github.com/wiire-a/pixiewps@65dd9975daulong64redefinition as suggest by @rofl0r (we missed the#ifndef CRYPTlogic):github.com/wiire-a/pixiewps@61e73e5703github.com/wiire-a/pixiewps@c14f1227afOther minor issues (tomsfastmath):
yywarning:github.com/wiire-a/pixiewps@d6de90fb18https://github.com/wiire-a/pixiewps/blob/master/src/crypto/tfm/tfm.h#L19
The
NSIGissue might be due to the fact that we define_POSIX_C_SOURCE?From Apple's
signal.h:But I don't have a Mac either and I never used tomcrypt and tomsfastmath before so I'm not sure what the best strategy is in that regard.
If your looking for an .framework or .xcframework than your can use this https://github.com/NickBrighten/NBSCrypto - if you looking for a .lib than not...