[Bug 6812] New: chg fails to build after cf4d2f31660d

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue Apr 18 13:27:47 UTC 2023


https://bz.mercurial-scm.org/show_bug.cgi?id=6812

            Bug ID: 6812
           Summary: chg fails to build after cf4d2f31660d
           Product: Mercurial
           Version: 6.4.2
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: chg
          Assignee: bugzilla at mercurial-scm.org
          Reporter: jcristau at debian.org
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

https://www.mercurial-scm.org/repo/hg/rev/cf4d2f31660d uses environ without
declaring it, causing:

/usr/bin/make build-chg
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make -C contrib/chg
make[3]: Entering directory '/<<PKGBUILDDIR>>/contrib/chg'
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-Wformat -Werror=format-security -std=gnu99 -Wdate-time -D_FORTIFY_SOURCE=2  -c
-o chg.o chg.c
chg.c: In function 'main':
chg.c:535:54: error: 'environ' undeclared (first use in this function)
  535 |                 hgc_setenv(hgc, (const char *const *)environ);
      |                                                      ^~~~~~~
chg.c:535:54: note: each undeclared identifier is reported only once for each
function it appears in
make[3]: *** [<builtin>: chg.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/contrib/chg'
make[2]: *** [Makefile:72: build-chg] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list