[Bug 259951] net/shadowsocks: fix build error on 14.0-CURRENT
Date: Sat, 20 Nov 2021 17:07:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259951 Bug ID: 259951 Summary: net/shadowsocks: fix build error on 14.0-CURRENT Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: xiaoding+freebsd@xiaoding.org CC: delphij@FreeBSD.org Flags: maintainer-feedback+ Created attachment 229614 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229614&action=edit remove the clearenv() definition in libcork on 14.0-CURRENT The library "libcork" included with shadowsocks-libev failed to build on 14.0-CURRENT. ---------------------------- libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../libcork/include -DCORK_API=CORK_LOCAL -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DPCRE_STATIC -pthread -fstack-protector -MT src/libcork/posix/libcork_la-env.lo -MD -MP -MF src/libcork/posix/.deps/libcork_la-env.Tpo -c src/libcork/posix/env.c -fPIC -DPIC -o src/libcork/posix/.libs/libcork_la-env.o src/libcork/posix/env.c:198:1: error: static declaration of 'clearenv' follows non-static declaration clearenv(void) ^ /usr/include/stdlib.h:286:6: note: previous declaration is here int clearenv(void); ^ 1 error generated. ---------------------------- After investigation, it was found that a new clearenv(3) function was added to the stdlib. [1] In order to continue the build, we need to remove the clearenv() definition in libcork on 14.0-CURRENT. [1] https://github.com/freebsd/freebsd-src/commit/597b02675751e48dd04777f1e91fee382bf3a966 -- You are receiving this mail because: You are the assignee for the bug.