Skip to content
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

Issues with installing s1kd-tools on macOS #15

Open
meeeeelisa opened this issue May 20, 2024 · 0 comments
Open

Issues with installing s1kd-tools on macOS #15

meeeeelisa opened this issue May 20, 2024 · 0 comments

Comments

@meeeeelisa
Copy link

Hello,
I'm trying to install the s1kd-tools from source on my macOS system (version 13.3, Apple M1 chip), but I'm encountering a few issues. I've followed the instructions in the install.md file, but I'm still unable to complete the installation successfully.

  1. When running make to build the tools, I get the following error while compiling the s1kd-dmrl tool:
    s1kd-dmrl.c:249:17: error: cannot take the address of an rvalue of type 'int' if ((err += WEXITSTATUS(system(line))) != 0 && failOnFirstErr) break; ^ ~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:144:27: note: expanded from macro 'WEXITSTATUS' #define WEXITSTATUS(x) ((_W_INT(x) >> 8) & 0x000000ff) ^ ~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:131:34: note: expanded from macro '_W_INT' #define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */ ^ ~ 1 error generated.
  2. During the make install step, I'm seeing warnings related to the old install command on macOS not recognizing the -D option:
    install: illegal option -- D usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ...
  3. I've tried different approaches suggested in the install.md file, such as:
    Using sudo to gain root privileges
    Modifying the Makefile to use mkdir and cp instead of install -D
    Attempting to install individual tools separately using make -C tools/s1kd-brexcheck install, etc.

However, none of these approaches have worked for me so far.
I have installed the required dependencies (gcc (Apple clang 15.0.0), make 3.81, xxd 2023 version, pkg-config 0.29.2, libxml2 2.9.13, and libxslt 1.1.35) on my macOS system.
Could you please provide guidance on how to resolve these issues and successfully install the s1kd-tools? Any help would be greatly appreciated.

Thank you!

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

No branches or pull requests

1 participant