Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Mac OS X notes #9

Open
alexjago opened this issue Aug 4, 2015 · 5 comments
Open

Mac OS X notes #9

alexjago opened this issue Aug 4, 2015 · 5 comments

Comments

@alexjago
Copy link

alexjago commented Aug 4, 2015

Hi there, this has been a really helpful tool (and guide)!

Just thought I'd share my experiences and how I got it working on Mac.

Firstly, neither check nor libmcrypt appear to be installed by default - but they are in MacPorts. I found I had to copy the mcrypt files across from their various locations in /opt/ to their various locations in /usr/...

Actual potential issue - there are various versions of ulong versus uLong in xsdc.c; I changed both to uLong and it finally compiled!

Next up I found that sdcDir and dirName both contain the exact same string and caused errors in directory creation, so I modified the relevant portions of main.c to only use one of them. (NB: this was with the SDC file in the same directory that xsdm compiled in).

Now I have a shiny new ISO and with any luck it will all work :)

@alexjago alexjago closed this as completed Aug 4, 2015
@luckydonald
Copy link

Still happening with the current 1.0.0.
Maybe you can reopen this issue?

@v3l0c1r4pt0r
Copy link
Owner

@luckydonald If you can confirm that problems with ulong and/or sdcDir/dirName still exists, I can try creating a patch, so you will be able to check if they fix it.

I don't have any OS X machine myself and it was not my goal to support it as there is a tool provided by Microsoft for OS X. But if there is demand to support the platform and anyone who can identify any problems and confirm solutions, I see no problem of adding it.

Reopening for sake of fixing the problems from original issue.

@v3l0c1r4pt0r v3l0c1r4pt0r reopened this Mar 4, 2018
@luckydonald
Copy link

only had to change ulong -> uLong

@luckydonald
Copy link

luckydonald commented Mar 4, 2018

currently trying to get the key (#24), but it did compile.

v3l0c1r4pt0r added a commit that referenced this issue Mar 5, 2018
On OS X, there were some problems with ulong type (see issue #9).
Because CRC32 should always be 32 bits long, it was exchanged to
uint32_t, which should be more widespread type. Still there exists
uLong, which is zlib-specific.
@v3l0c1r4pt0r
Copy link
Owner

Ok, I got rid of ulong type. Someone must confirm if it works on both - OS X and Linux, as I don't have any SDC files to check it. Till it's not tested, this will stay on separate branch to not mess with master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants