openbmc / libpldm

Apache License 2.0
9 stars 12 forks source link

Unable to build because of implicit memmem build error #12

Closed coudrant closed 4 months ago

coudrant commented 4 months ago

We are seeing the following build error though _GNU_SOURCE is defined. We don't know how to correct or workaround this. This is seen on main.

../src/msgbuf.h:1155:31: error: implicit declaration of function ‘memmem’; did you mean ‘memset’? [-Werror=implicit-function-declaration] 1155 | end = (char *)memmem(end, ctx->remaining - measured, &term,

googletest| C++ compiler for the host machine: ccache c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") googletest| C++ linker for the host machine: c++ ld.bfd 2.38

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

amboar commented 4 months ago

I'll take a look at this. Thanks for the report.