Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666108 - dev-util/indent-2.2.12 USE=-nls - indent.c:1062:15: error: 'LC_ALL' undeclared (first use in this function); did you mean '__WALL'?
Summary: dev-util/indent-2.2.12 USE=-nls - indent.c:1062:15: error: 'LC_ALL' undeclare...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-12 20:04 UTC by Preston Crow
Modified: 2020-01-13 14:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Preston Crow 2018-09-12 20:04:50 UTC
dev-util/indent-2.2.12 is fine if you have 'nls' set, but if the flag is turned off, the build fails:

...
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating intl/Makefile
config.status: creating po/Makefile.in
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing default commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12 ...
make -j12 
 cd . && /bin/sh ./config.status Makefile 
config.status: creating Makefile
make  all-recursive
make[1]: Entering directory '/var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12'
Making all in intl
make[2]: Entering directory '/var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12/intl'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12/intl'
Making all in src
make[2]: Entering directory '/var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12/src'
make  all-am
make[3]: Entering directory '/var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I..  -I. -I. -I../intl  -Wall -W  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wcomment -Wbad-function-cast -Wcast-align  -O3 -march=native -pipe -fomit-frame-pointer -fno-stack-protector -c -o indent.o indent.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I..  -I. -I. -I../intl  -Wall -W  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wcomment -Wbad-function-cast -Wcast-align  -O3 -march=native -pipe -fomit-frame-pointer -fno-stack-protector -c -o args.o args.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I..  -I. -I. -I../intl  -Wall -W  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wcomment -Wbad-function-cast -Wcast-align  -O3 -march=native -pipe -fomit-frame-pointer -fno-stack-protector -c -o backup.o backup.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I..  -I. -I. -I../intl  -Wall -W  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wcomment -Wbad-function-cast -Wcast-align  -O3 -march=native -pipe -fomit-frame-pointer -fno-stack-protector -c -o comments.o comments.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I..  -I. -I. -I../intl  -Wall -W  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wcomment -Wbad-function-cast -Wcast-align  -O3 -march=native -pipe -fomit-frame-pointer -fno-stack-protector -c -o lexi.o lexi.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I..  -I. -I. -I../intl  -Wall -W  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wcomment -Wbad-function-cast -Wcast-align  -O3 -march=native -pipe -fomit-frame-pointer -fno-stack-protector -c -o parse.o parse.c
indent.c: In function 'main':
indent.c:1062:5: warning: implicit declaration of function 'setlocale'; did you mean 'setstate'? [-Wimplicit-function-declaration]
     setlocale(LC_ALL, "");
     ^~~~~~~~~
     setstate
indent.c:1062:5: warning: nested extern declaration of 'setlocale' [-Wnested-externs]
indent.c:1062:15: error: 'LC_ALL' undeclared (first use in this function); did you mean '__WALL'?
     setlocale(LC_ALL, "");
               ^~~~~~
               __WALL
indent.c:1062:15: note: each undeclared identifier is reported only once for each function it appears in
In file included from indent.h:60:0,
                 from indent.c:77:
./libgettext.h:88:25: warning: statement with no effect [-Wunused-value]
     ((void) (Domainname), (const char *) (Dirname))
     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
indent.c:1064:5: note: in expansion of macro 'bindtextdomain'
     bindtextdomain(PACKAGE, LOCALEDIR);
     ^~~~~~~~~~~~~~
./libgettext.h:85:34: warning: statement with no effect [-Wunused-value]
 # define textdomain(Domainname) ((const char *) (Domainname))
                                 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
indent.c:1065:5: note: in expansion of macro 'textdomain'
     textdomain(PACKAGE);
     ^~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I..  -I. -I. -I../intl  -Wall -W  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wcomment -Wbad-function-cast -Wcast-align  -O3 -march=native -pipe -fomit-frame-pointer -fno-stack-protector -c -o globs.o globs.c
make[3]: *** [Makefile:485: indent.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12/src'
make[2]: *** [Makefile:360: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12/src'
make[1]: *** [Makefile:468: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-util/indent-2.2.12/work/indent-2.2.12'
make: *** [Makefile:407: all] Error 2
 * ERROR: dev-util/indent-2.2.12::gentoo failed (compile phase):
Comment 1 Larry the Git Cow gentoo-dev 2020-01-13 14:35:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98924e4fe01691f9244f52df913948f58b07c55a

commit 98924e4fe01691f9244f52df913948f58b07c55a
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-01-13 14:27:46 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-01-13 14:35:49 +0000

    dev-util/indent: Fix USE=-nls
    
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Closes: https://bugs.gentoo.org/666108
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 dev-util/indent/indent-2.2.12.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)