Skip to content

Issues with installing s1kd-tools on macOS #15

@meeeeelisa

Description

@meeeeelisa

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions