[Bug 223259] archivers/arj: build error: Invalid token
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Oct 26 09:45:23 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223259
Bug ID: 223259
Summary: archivers/arj: build error: Invalid token
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: garga at FreeBSD.org
Reporter: fsbruva at yahoo.com
Flags: maintainer-feedback?(garga at FreeBSD.org)
Assignee: garga at FreeBSD.org
Created attachment 187494
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187494&action=edit
Patch to specify language support.
On FreeBSD 11.1-RELEASE-p1 #0 r322430M on amd, the port fails to build due to
the Makefile's mechanism for specifying the LOCALE variable as a MAKE_ARG. If
the LANGUAGE environmental variable is set to anything other than an ISO 639-1
language code (en_US.UTF-8, for example), the build fails. Additionally, arj
only has language support for {en,de,ru}.
The error is shown below:
===> Building for arj-3.10.22_5
gmake[2]: Entering directory '/usr/ports/archivers/arj/work/arj-3.10.22'
mkdir -p ./freebsd11.1/en_US.UTF-8/rs
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/tools
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/arjcrypt
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/sfxstub
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/arjsfxv
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/arjsfx
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/arjsfxjr
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/arj
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/rearj
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/register
mkdir -p ./freebsd11.1/en_US.UTF-8/rs/arjdisp
gmake msg-headers
gmake[3]: Entering directory '/usr/ports/archivers/arj/work/arj-3.10.22'
cc -DARJUTIL -c -Ifreebsd11.1 -I./freebsd11.1/en_US.UTF-8/rs -I. -O2 -pipe
-fPIC -fstack-protector -fno-strict-aliasing -DLOCALE=LANG_en_US.UTF-8 -DL
OCALE_DESC="\"en_US.UTF-8\"" -DPKGLIBDIR="\"/usr/local/lib/arj\"" -D_UNIX -
O2 -pipe -fPIC -fstack-protector -fno-strict-aliasing -ofreebsd11.1/en_US.
UTF-8/rs/tools/filemode.o filemode.c
cc -DARJUTIL -c -Ifreebsd11.1 -I./freebsd11.1/en_US.UTF-8/rs -I. -O2 -pipe
-fPIC -fstack-protector -fno-strict-aliasing -DLOCALE=LANG_en_US.UTF-8 -DL
OCALE_DESC="\"en_US.UTF-8\"" -DPKGLIBDIR="\"/usr/local/lib/arj\"" -D_UNIX -
O2 -pipe -fPIC -fstack-protector -fno-strict-aliasing -ofreebsd11.1/en_US.
UTF-8/rs/tools/msgbind.o msgbind.c
cc -DARJUTIL -c -Ifreebsd11.1 -I./freebsd11.1/en_US.UTF-8/rs -I. -O2 -pipe
-fPIC -fstack-protector -fno-strict-aliasing -DLOCALE=LANG_en_US.UTF-8 -DL
OCALE_DESC="\"en_US.UTF-8\"" -DPKGLIBDIR="\"/usr/local/lib/arj\"" -D_UNIX -
O2 -pipe -fPIC -fstack-protector -fno-strict-aliasing -ofreebsd11.1/en_US.
UTF-8/rs/tools/arjdata.o arjdata.c
cc -DARJUTIL -c -Ifreebsd11.1 -I./freebsd11.1/en_US.UTF-8/rs -I. -O2 -pipe
-fPIC -fstack-protector -fno-strict-aliasing -DLOCALE=LANG_en_US.UTF-8 -DL
OCALE_DESC="\"en_US.UTF-8\"" -DPKGLIBDIR="\"/usr/local/lib/arj\"" -D_UNIX -
O2 -pipe -fPIC -fstack-protector -fno-strict-aliasing -ofreebsd11.1/en_US.
UTF-8/rs/tools/crc32.o crc32.c
msgbind.c:452:50: warning: if statement has empty body [-Wempty-body]
if(argv[6][strlen(argv[6])-1]!=PATHSEP_DEFAULT);
^
msgbind.c:452:50: note: put the semicolon on a separate line to silence thi
s warning
1 warning generated.
arjdata.c:116:8: error: token is not a valid binary operator in a
preprocessor subexpression
#if LOCALE==LANG_en
^~~~~~
<command line>:2:26: note: expanded from here
#define LOCALE LANG_en_US.UTF-8
~~~~~~~~~~^
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list