Closed amxsa closed 3 months ago
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.
/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 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 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....