Skip to content
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

Closed
amxsa opened this issue Jun 6, 2023 · 3 comments
Closed

make: *** [sph2pipe_v2.5/sph2pipe] Error #4855

amxsa opened this issue Jun 6, 2023 · 3 comments
Labels

Comments

@amxsa
Copy link

amxsa commented Jun 6, 2023

/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....

@amxsa amxsa added the bug label Jun 6, 2023
@stale
Copy link

stale bot commented Aug 12, 2023

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.

@stale stale bot added the stale Stale bot on the loose label Aug 12, 2023
@divyanx
Copy link

divyanx commented Feb 13, 2024

i am facing the same on mac

@stale stale bot removed the stale Stale bot on the loose label Feb 13, 2024
@bogdan0083
Copy link

bogdan0083 commented Feb 28, 2024

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.

pguyot added a commit to pguyot/kaldi that referenced this issue Apr 30, 2024
pguyot added a commit to pguyot/kaldi that referenced this issue Apr 30, 2024
danpovey added a commit that referenced this issue Apr 30, 2024
Workaround for macOS bug with strdup (fixes #4855)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants