| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0002815 | Buildsystem | [All Projects] General | public | 2021-04-14 17:29 | 2024-01-02 04:31 | ||||||||
| Reporter | Ryan Carsten Schmidt | ||||||||||||
| Assigned To | |||||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||||||
| Status | new | Resolution | open | ||||||||||
| Platform | x86_64 | OS | macOS | OS Version | 10.13.6 | ||||||||
| Summary | 0002815: implicit declaration of function 'strcasestr' is invalid in C99 | ||||||||||||
| Description | Trying to build NetSurf 3.10 on macOS 10.13.6 (with -Werror=implicit-function-declaration in CFLAGS, in order to simulate what happens by default with newer versions of Xcode clang) with the gtk3 target failed as follows: content/handlers/html/css.c:229:7: error: implicit declaration of function 'strcasestr' is invalid in C99 [-Werror,-Wimplicit-function-declaration] In /usr/include/string.h, strcasestr is declared within a conditional: /* Darwin extensions */ #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL ... char *strcasestr(const char *__big, const char *__little); I worked around the problem by adding -D_DARWIN_C_SOURCE to CFLAGS, similar to the way that you already use -D_BSD_SOURCE, -D_DEFAULT_SOURCE, and -D_NETBSD_SOURCE in frontends/gtk/Makefile. | ||||||||||||
| Steps To Reproduce | Build NetSurf 3.10 on any version of macOS with -Werror=implicit-function-declaration in CFLAGS. | ||||||||||||
| Tags | No tags attached. | ||||||||||||
| Fixed in CI build # | |||||||||||||
| Reported in CI build # | |||||||||||||
| Attached Files |
| ||||||||||||
Notes |
|
|
Ryan Carsten Schmidt (reporter) 2024-01-02 04:31 |
This problem remains in NetSurf 3.11. |
Issue History |
|||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-04-14 17:29 | Ryan Carsten Schmidt | New Issue | |
| 2024-01-02 04:31 | Ryan Carsten Schmidt | Note Added: 0002429 | |


