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

Failed building because of strncasecmp #411

Closed
yuppox opened this issue Apr 11, 2024 · 2 comments
Closed

Failed building because of strncasecmp #411

yuppox opened this issue Apr 11, 2024 · 2 comments

Comments

@yuppox
Copy link

yuppox commented Apr 11, 2024

I tried on a couple machines and got the same result:

src/be_strlib.c: In function ‘str_startswith’:
src/be_strlib.c:967:17: error: implicit declaration of function ‘strncasecmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
  967 |             if (strncasecmp(s, p, len) == 0) {
      |                 ^~~~~~~~~~~
      |                 strncmp
make: *** [Makefile:68: src/be_strlib.o] Error 1

The solution was to add strings.h to src/be_strlib.c:

#include <string.h>
#include <strings.h>
@yuppox
Copy link
Author

yuppox commented Apr 11, 2024

Duplicate.

@yuppox yuppox closed this as completed Apr 11, 2024
@s-hadinger
Copy link
Contributor

I have submitted #412 to avoid dependency on strings.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants