[Bug 193604] New: [PATCH] www/cadaver build failure without NLS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Sep 13 12:40:09 UTC 2014


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 at FreeBSD.org
          Reporter: aehlig at linta.de
          Assignee: jpaetzel at FreeBSD.org
             Flags: maintainer-feedback?(jpaetzel at 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 at FreeBSD.org> ---
Auto-assigned to maintainer jpaetzel at FreeBSD.org

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


More information about the freebsd-ports-bugs mailing list