duff icon indicating copy to clipboard operation
duff copied to clipboard

make: build failure regarding gettext

Open Narrat opened this issue 1 year ago • 0 comments

Running make after successfully running configure fails with this:

Making all in lib
make[1]: Entering directory '/tmp/makepkg/duff-git/src/duff/lib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/tmp/makepkg/duff-git/src/duff/lib'
Making all in src
make[1]: Entering directory '/tmp/makepkg/duff-git/src/duff/src'
make  all-am
make[2]: Entering directory '/tmp/makepkg/duff-git/src/duff/src'
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT duff.o -MD -MP -MF .deps/duff.Tpo -c -o duff.o duff.c
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT duffdriver.o -MD -MP -MF .deps/duffdriver.Tpo -c -o duffdriver.o duffdriver.c
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT dufffile.o -MD -MP -MF .deps/dufffile.Tpo -c -o dufffile.o dufffile.c
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT duffstring.o -MD -MP -MF .deps/duffstring.Tpo -c -o duffstring.o duffstring.c
mv -f .deps/duffstring.Tpo .deps/duffstring.Po
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT duffutil.o -MD -MP -MF .deps/duffutil.Tpo -c -o duffutil.o duffutil.c
mv -f .deps/duff.Tpo .deps/duff.Po
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT sha1.o -MD -MP -MF .deps/sha1.Tpo -c -o sha1.o sha1.c
mv -f .deps/dufffile.Tpo .deps/dufffile.Po
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT sha256.o -MD -MP -MF .deps/sha256.Tpo -c -o sha256.o sha256.c
mv -f .deps/duffdriver.Tpo .deps/duffdriver.Po
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT sha384.o -MD -MP -MF .deps/sha384.Tpo -c -o sha384.o sha384.c
mv -f .deps/duffutil.Tpo .deps/duffutil.Po
gcc -DHAVE_CONFIG_H -I.  -I../lib -DLOCALEDIR=\"/usr/share/locale\"   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT sha512.o -MD -MP -MF .deps/sha512.Tpo -c -o sha512.o sha512.c
mv -f .deps/sha256.Tpo .deps/sha256.Po
mv -f .deps/sha384.Tpo .deps/sha384.Po
mv -f .deps/sha512.Tpo .deps/sha512.Po
mv -f .deps/sha1.Tpo .deps/sha1.Po
gcc  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto -o duff duff.o duffdriver.o dufffile.o duffstring.o duffutil.o sha1.o sha256.o sha384.o sha512.o  
make[2]: Leaving directory '/tmp/makepkg/duff-git/src/duff/src'
make[1]: Leaving directory '/tmp/makepkg/duff-git/src/duff/src'
Making all in po
make[1]: Entering directory '/tmp/makepkg/duff-git/src/duff/po'
make duff.pot-update
make[2]: Entering directory '/tmp/makepkg/duff-git/src/duff/po'
package_gnu="no"; \
test -n "$package_gnu" || { \
  if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
         LC_ALL=C find -L .. -maxdepth 1 -type f -size -10000000c -exec grep -i 'GNU duff' /dev/null '{}' ';' 2>/dev/null; \
       else \
         LC_ALL=C grep -i 'GNU duff' ../* 2>/dev/null; \
       fi; \
     } | grep -v 'libtool:' >/dev/null; then \
     package_gnu=yes; \
   else \
     package_gnu=no; \
   fi; \
}; \
if test "$package_gnu" = "yes"; then \
  package_prefix='GNU '; \
else \
  package_prefix=''; \
fi; \
if test -n '[email protected]' || test '[email protected]' = '@'PACKAGE_BUGREPORT'@'; then \
  msgid_bugs_address='[email protected]'; \
else \
  msgid_bugs_address='[email protected]'; \
fi; \
case `/usr/bin/xgettext --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
  '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
    /usr/bin/xgettext --default-domain=duff --directory=.. \
      --add-comments=TRANSLATORS: \
      --files-from=./POTFILES.in \
      --copyright-holder='Camilla Löwy' \
      --msgid-bugs-address="$msgid_bugs_address" \
      --keyword=_ --keyword=N_  \
    ;; \
  *) \
    /usr/bin/xgettext --default-domain=duff --directory=.. \
      --add-comments=TRANSLATORS: \
      --files-from=./POTFILES.in \
      --copyright-holder='Camilla Löwy' \
      --package-name="${package_prefix}duff" \
      --package-version='0.6' \
      --msgid-bugs-address="$msgid_bugs_address" \
      --keyword=_ --keyword=N_  \
    ;; \
esac
/usr/bin/xgettext: Non-ASCII string at src/duff.c:153.
                   Please specify the source encoding through --from-code.
make[2]: *** [Makefile:221: duff.pot-update] Error 1
make[2]: Leaving directory '/tmp/makepkg/duff-git/src/duff/po'
make[1]: *** [Makefile:289: duff.pot] Error 2
make[1]: Leaving directory '/tmp/makepkg/duff-git/src/duff/po'
make: *** [Makefile:464: all-recursive] Error 1

https://github.com/elmindreda/duff/blob/master/src/duff.c#L153 It chokes on the Umlaut?

Narrat avatar Mar 13 '25 22:03 Narrat