P1sec / pysctp

SCTP stack for Python
http://www.p1sec.com
165 stars 67 forks source link

Failing when trying to install sctp in MAC OS 14.5.1 (Sonoma) #52

Open AmarisKome opened 3 months ago

AmarisKome commented 3 months ago

Everytime I've tried to install the sctp setup in my laptop is throwing the following error:

% sudo python3 setup.py install Password: running install running bdist_egg running egg_info writing pysctp.egg-info/PKG-INFO writing dependency_links to pysctp.egg-info/dependency_links.txt writing top-level names to pysctp.egg-info/top_level.txt reading manifest file 'pysctp.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'TODO' writing manifest file 'pysctp.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.9-universal2/egg running install_lib running build_py running build_ext building '_sctp' extension clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -I. -I/usr/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c _sctp.c -o build/temp.macosx-10.9-universal2-3.9/_sctp.o _sctp.c:27:10: fatal error: 'netinet/sctp.h' file not found

include <netinet/sctp.h>

     ^~~~~~~~~~~~~~~~

1 error generated. error: command '/usr/bin/clang' failed with exit code 1

Has anyone found any workaround for this issue?