Date: Sat, 13 Sep 2014 12:40:09 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 193604] New: [PATCH] www/cadaver build failure without NLS Message-ID: <bug-193604-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193604 Bug ID: 193604 Summary: [PATCH] www/cadaver build failure without NLS Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: jpaetzel@FreeBSD.org Reporter: aehlig@linta.de Assignee: jpaetzel@FreeBSD.org Flags: maintainer-feedback?(jpaetzel@FreeBSD.org) Created attachment 147269 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147269&action=edit Patch of src/cadaver.c ensuring that locale.h is included if setlocale(3) is used; to be placed in the files subdirectory To reproduce: cd /usr/ports/www/cdaver make config # disable NLS make build This fails with the following message [...] ===> Building for cadaver-0.23.3_2 for d in lib/neon lib/intl; do (cd $d; /usr/bin/make); done cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/cadaver.o -c src/cadaver.c cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/common.o -c src/common.c cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/commands.o -c src/commands.c cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/ls.o -c src/ls.c cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/cmdline.o -c src/cmdline.c cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/options.o -c src/options.c cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/utils.o -c src/utils.c Bundled neon build not being used. cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/edit.o -c src/edit.c cc -DHAVE_CONFIG_H -I. -I./lib -I/usr/local/include -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -O2 -pipe -fno-strict-aliasing -I/usr/local/include/neon -o src/version.o -c src/version.c src/cadaver.c: In function 'main': src/cadaver.c:859: error: 'LC_ALL' undeclared (first use in this function) src/cadaver.c:859: error: (Each undeclared identifier is reported only once src/cadaver.c:859: error: for each function it appears in.) *** [src/cadaver.o] Error code 1 1 error ===> Compilation failed unexpectedly. [...] How to fix: put the attached patch in the files subdirectory. It ensures that locale.h is included whenever setlocale(3) is used. --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Auto-assigned to maintainer jpaetzel@FreeBSD.org -- 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-193604-13>