Skip to content

Compile error on glibc-2.38-23 #164

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

Open
pbsds opened this issue Oct 27, 2023 · 1 comment
Open

Compile error on glibc-2.38-23 #164

pbsds opened this issue Oct 27, 2023 · 1 comment

Comments

@pbsds
Copy link

pbsds commented Oct 27, 2023

/usr/include/string.h:380:14: error: conflicting types for 'strcasestr'; have 'char *(const char *, const char *)'
  380 | extern char *strcasestr (const char *__haystack, const char *__needle)
      |              ^~~~~~~~~~
mimetex.c:428:13: note: previous declaration of 'strcasestr' with type 'const char *(const char *, const char *)'
  428 | const char *strcasestr(const char *s1, const char *s2);

Removing the const from const char *strcasestr seems to fix it.

@danfe
Copy link

danfe commented Mar 11, 2025

Removing the const from const char *strcasestr seems to fix it.

I'm seeing this error on FreeBSD as well. Perhaps redefining albeit non-standard, yet widely known function present in most popular C libraries these days is not the best idea. ;-)

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