-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
make: *** [sph2pipe_v2.5/sph2pipe] Error #4855
Comments
This issue has been automatically marked as stale by a bot solely because it has not had recent activity. Please add any comment (simply 'ping' is enough) to prevent the issue from being closed for 60 more days if you believe it should be kept open. |
i am facing the same on mac |
Yeah, I have the same issue. It appeared updated Mac OS to Sonoma and Xcode to version 15. Before that I had no problem building the project. |
Signed-off-by: Paul Guyot <[email protected]>
Signed-off-by: Paul Guyot <[email protected]>
Workaround for macOS bug with strdup (fixes #4855)
/Library/Developer/CommandLineTools/usr/bin/make -C sph2pipe_v2.5
yes
checking for gcc option to accept ANSI C... cc -o sph2pipe -s -w -g -O2 file_headers.c shorten_x.c sph2pipe.c -lm
file_headers.c:100:17: error: call to undeclared library function 'strdup' with type 'char *(const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
inporder = strdup( fldsval );
^
file_headers.c:100:17: note: include the header <string.h> or explicitly provide a declaration for 'strdup'
1 error generated.
none needed
checking for main in -lm... yes
checking how to run the C preprocessor... sph2pipe.c:213:16: error: call to undeclared library function 'strdup' with type 'char *(const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
hdrfile = strdup( optarg );
^
sph2pipe.c:213:16: note: include the header <string.h> or explicitly provide a declaration for 'strdup'
1 error generated.
make[1]: *** [sph2pipe] Error 1
make: *** [sph2pipe_v2.5/sph2pipe] Error 2
make: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered: