rlaager / docsis

This program encodes a DOCSIS binary configuration file from a human-readable text configuration file.
http://docsis.sourceforge.net
GNU General Public License v2.0
114 stars 70 forks source link

Installation fails on macos15 #79

Open jkooten opened 1 month ago

jkooten commented 1 month ago

Hi, Installation faile son macos15 following the steps in readme. ports are installed as required.

make all-recursive make[1]: Entering directory '/Users/user/workspaces/docsis' Making all in src make[2]: Entering directory '/Users/user/workspaces/docsis/src' gcc -DHAVE_CONFIG_H -I. -I.. -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -Os -pipe -DBUILD=177 -DMACOSX_DEPLOYMENT_TARGET=15.0 --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -iframeworkwithsysroot /System/Library/Frameworks/-5185-11ef-9a51-9ab6d782fe32/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.Internal.sdk/System/Library/PrivateFrameworks/ -5185-11ef-9a51-9ab6d782fe32/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.Internal.sdk/System/Library/Frameworks/ -iwithsysroot /usr/local/libressl/include -L/AppleInternal/Library/BuildRoots/e0873e53-5185-11ef-9a51-9ab6d782fe32/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.Internal.sdk/usr/local/libressl/lib -Udarwin24 -Ddarwin24=darwin24 -I. -I/usr/local/include -Wall -g -g -O2 -MT docsis.o -MD -MP -MF .deps/docsis.Tpo -c -o docsis.o docsis.c clang: error: unknown argument: '-5185-11ef-9a51-9ab6d782fe32/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.Internal.sdk/System/Library/Frameworks/' make[2]: [Makefile:458: docsis.o] Error 1 make[2]: Leaving directory '/Users/user/workspaces/docsis/src' make[1]: [Makefile:492: all-recursive] Error 1 make[1]: Leaving directory '/Users/user/workspaces/docsis' make: *** [Makefile:387: all] Error 2

rlaager commented 1 month ago

First off, to set expectations... this project is essentially unmaintained. I'm giving it a home on my GitHub, but I haven't used it in years, and never really used it that much.

The issue here is clearly that gcc is treating what is intended to be a path as an argument, because it starts with a dash. Many Unix commands will blow up in the same circumstances. There is a convention, with GNU tools at least, to support -- to end argument parsing. But that only works if the last arguments are non-options (e.g. files).

It's this that's the problem: -iframeworkwithsysroot /System/Library/Frameworks/-5185-11ef-9a51-9ab6d782fe32/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.Internal.sdk/System/Library/PrivateFrameworks/ -5185-11ef-9a51-9ab6d782fe32/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.Internal.sdk/System/Library/Frameworks/ That "iframeworkwithsysroot" feels like something that is Apple proprietary, but I don't know for certain.

I'm not really sure what this project could even do about it. src/Makefile.am is pretty barebones: https://github.com/rlaager/docsis/blob/master/src/Makefile.am