openca / libpki

Easy-to-use high-level library for PKI-enabled applications
Other
50 stars 34 forks source link

Build fail on gentoo #53

Open thunderwolf66102 opened 3 years ago

thunderwolf66102 commented 3 years ago

Build fails on gentoo -

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../src/libpki -I../src -DLIB_BUILD -I/usr/include -O2 -march=native -pipe -fstack-check -maccumulate-outgoing-args -Werror -Wfatal-errors -Wunused-variable -DENABLE_ECDSA=1 -I/usr/include/libxml2 -I/usr/include/mysql -DLINUX -DLINUX -O2 -march=native -pipe -fstack-check -maccumulate-outgoing-args -Werror -Wfatal-errors -MT libpki_la-pki_config.lo -MD -MP -MF .deps/libpki_la-pki_config.Tpo -c pki_config.c -fPIC -DPIC -o .libs/libpki_la-pki_config.o In file included from /usr/include/string.h:519, from ./libpki/net/sock.h:32, from ./libpki/pki.h:312, from pki_config.c:3: In function ‘strncpy’, inlined from ‘_xml_search_namespace_add’ at pki_config.c:86:2, inlined from ‘PKI_CONFIG_get_element_stack’ at pki_config.c:472:14: /usr/include/bits/string_fortified.h:91:10: error: ‘builtin_strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=] 91 | return builtin_strncpy_chk (dest, src, len, bos (dest)); | ^~~~~~~~~~~~~~

dcooper16 commented 3 years ago

This appears to be the same as #52, which would be fixed by #46 and #47.