Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2014 19:47:19 +0100
From:      "Dr. Peter Voigt" <pvoigt@uos.de>
To:        freebsd-ports@freebsd.org
Subject:   archivers/arj fails to build
Message-ID:  <20141117194719.2588c191@kirk.drpetervoigt.private>

next in thread | raw e-mail | index | archive | help
I am in the process of rebuilding all ports.

I am using for this:

# portmaster --no-confirm --no-term-title -D -G archivers/arj

Unfortunately, archivers/arj fails to build:

cc -DSFL=4 -c -Ifreebsd10.1 -I./freebsd10.1/POSIX/rs -I. -O2 -pipe
-fPIC -fstack-protector -fno-strict-aliasing -DLOCALE=LANG_POSIX
-DLOCALE_DESC="\"POSIX\"" -DPKGLIBDIR="\"/usr/local/lib/arj\"" -D_UNIX
-O2 -pipe  -fPIC -fstack-protector -fno-strict-aliasing
-ofreebsd10.1/POSIX/rs/arj/integr.o integr.c cc -DSFL=4 -c
-Ifreebsd10.1 -I./freebsd10.1/POSIX/rs -I. -O2 -pipe  -fPIC
-fstack-protector -fno-strict-aliasing -DLOCALE=LANG_POSIX
-DLOCALE_DESC="\"POSIX\"" -DPKGLIBDIR="\"/usr/local/lib/arj\"" -D_UNIX
-O2 -pipe  -fPIC -fstack-protector -fno-strict-aliasing
-ofreebsd10.1/POSIX/rs/arj/file_reg.o file_reg.c file_reg.c:57:10:
warning: passing 'unsigned char *' to parameter of type 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign] alltrim(regdata+REG_KEY1_SHIFT);
^~~~~~~~~~~~~~~~~~~~~~ ./arj_proc.h:58:20: note: passing argument to
parameter 'cmd' here void alltrim(char *cmd); ^ 1 warning generated. cc
-DSFL=4 -c -Ifreebsd10.1 -I./freebsd10.1/POSIX/rs -I. -O2 -pipe  -fPIC
-fstack-protector -fno-strict-aliasing -DLOCALE=LANG_POSIX
-DLOCALE_DESC="\"POSIX\"" -DPKGLIBDIR="\"/usr/local/lib/arj\"" -D_UNIX
-O2 -pipe  -fPIC -fstack-protector -fno-strict-aliasing
-ofreebsd10.1/POSIX/rs/arj/decode.o decode.c decode.c:73:19: warning:
passing 'unsigned char *' to parameter of type 'char *' converts
between pointers to integer types with different sign [-Wpointer-sign]
garble_decode(&byte_buf, 1); ^~~~~~~~~ ./garble.h:15:26: note: passing
argument to parameter 'data' here void garble_decode(char *data, int
len); ^ decode.c:124:24: error: use of undeclared identifier
'M_BADTABLE_G' msg_cprintf(H_ERR, M_BADTABLE_G); ^ decode.c:131:24:
error: use of undeclared identifier 'M_BADTABLE' msg_cprintf(H_ERR,
M_BADTABLE); ^ decode.c:173:27: error: use of undeclared identifier
'M_BADTABLE_G' msg_cprintf(H_ERR, M_BADTABLE_G); ^
decode.c:180:27: error: use of undeclared identifier 'M_BADTABLE'
       msg_cprintf(H_ERR, M_BADTABLE);
                          ^
decode.c:395:10: error: use of undeclared identifier 'M_OUT_OF_MEMORY'
   error(M_OUT_OF_MEMORY);
         ^
decode.c:397:10: error: use of undeclared identifier 'M_OUT_OF_MEMORY'
   error(M_OUT_OF_MEMORY);
         ^
decode.c:445:25: warning: passing 'unsigned char *' to parameter of type
      'char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
     if(extraction_stub(dec_text, DICSIZ, action))
                        ^~~~~~~~
./arj_file.h:29:27: note: passing argument to parameter 'block' here
int extraction_stub(char *block, int block_len, int action);
                          ^
decode.c:470:27: warning: passing 'unsigned char *' to parameter of type
      'char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
       if(extraction_stub(dec_text, DICSIZ, action))
                          ^~~~~~~~
./arj_file.h:29:27: note: passing argument to parameter 'block' here
int extraction_stub(char *block, int block_len, int action);
                          ^
decode.c:483:19: warning: passing 'unsigned char *' to parameter of type
      'char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
  extraction_stub(dec_text, r, action);
                  ^~~~~~~~
./arj_file.h:29:27: note: passing argument to parameter 'block' here
int extraction_stub(char *block, int block_len, int action);
                          ^
decode.c:565:24: warning: passing 'unsigned char *' to parameter of type
      'char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
    if(extraction_stub(ntext, FDICSIZ, action))
                       ^~~~~
./arj_file.h:29:27: note: passing argument to parameter 'block' here
int extraction_stub(char *block, int block_len, int action);
                          ^
decode.c:582:25: warning: passing 'unsigned char *' to parameter of type
      'char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
     if(extraction_stub(ntext, FDICSIZ, action))
                        ^~~~~
./arj_file.h:29:27: note: passing argument to parameter 'block' here
int extraction_stub(char *block, int block_len, int action);
                          ^
decode.c:591:19: warning: passing 'unsigned char *' to parameter of type
      'char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
  extraction_stub(ntext, r, action);
                  ^~~~~
./arj_file.h:29:27: note: passing argument to parameter 'block' here
int extraction_stub(char *block, int block_len, int action);
                          ^
7 warnings and 6 errors generated.
GNUmakefile:132: recipe for target 'freebsd10.1/POSIX/rs/arj/decode.o'
failed gmake[2]: *** [freebsd10.1/POSIX/rs/arj/decode.o] Error 1
gmake[2]: Leaving directory '/usr/ports/archivers/arj/work/arj-3.10.22'
GNUmakefile:169: recipe for target 'all' failed
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory '/usr/ports/archivers/arj/work/arj-3.10.22'
*** Error code 1

Stop.
make: stopped in /usr/ports/archivers/arj

===>>> make build failed for archivers/arj
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> archivers/arj 

My questions are:

1.) Can this easily be solved? I have no idea.

2.) Can I skip this particular port with the above portmaster command?

3.) At this step I am not able to proceed with the build process. What
    do you recommend to proceed with rebuilding all ports?

Some details about my system:

# uname -a
FreeBSD spock 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274587: Sun Nov 16
22:38:43 CET 2014     root@spock:/usr/obj/usr/src/sys/GENERIC  amd64

# pkg version |grep arj
arj-3.10.22_4

So arj is still installed and up to date.

Regards,
Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141117194719.2588c191>