Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Nov 2021 17:07:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 259951] net/shadowsocks: fix build error on 14.0-CURRENT
Message-ID:  <bug-259951-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259951

            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=3D229614&action=
=3Dedit
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=3DCORK_LOCAL -O2 -pipe -fstack-protector-strong -fno-strict-alia=
sing
-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' foll=
ows
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/597b02675751e48dd04777f1e91fe=
e382bf3a966

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259951-7788>