Skip to content

Compile fails with glibc-2.43 #20420

@heitbaum

Description

@heitbaum

I did this

Announcement from glibc - https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html

I expected the following

Errors due to changes with const on str/mem returns.

e.g.


../lib/noproxy.c: In function 'match_ip':
../lib/noproxy.c:163:9: error: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  163 |   slash = strchr(check, '/');
      |         ^

../lib/urlapi.c:1169:9: error: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 1169 |   query = memchr(path, '?', pathlen);
      |         ^

curl/libcurl version

Curl 8.18.0

operating system

Ubuntu 26.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions