Source: libauthen-smb-perl
Version: 0.91-7
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramac...@debian.org

https://buildd.debian.org/status/fetch.php?pkg=libauthen-smb-perl&arch=armhf&ver=0.91-7%2Bb3&stamp=1709806890&raw=0

valid.c: In function ‘Valid_User’:
valid.c:22:3: error: implicit declaration of function ‘SMB_Init’ 
[-Werror=implicit-function-declaration]
   22 |   SMB_Init();
      |   ^~~~~~~~
valid.c:30:7: error: implicit declaration of function ‘SMB_Negotiate’ 
[-Werror=implicit-function-declaration]
   30 |   if (SMB_Negotiate(con, SMB_Prots) < 0) { /* An error */
      |       ^~~~~~~~~~~~~
valid.c:31:5: error: implicit declaration of function ‘SMB_Discon’; did you 
mean ‘SMBtcon’? [-Werror=implicit-function-declaration]
   31 |     SMB_Discon(con,0);
      |     ^~~~~~~~~~
      |     SMBtcon
Please specify prototyping behavior for Smb.xs (see perlxs manual)
session.c: In function ‘RFCNB_Get_Error_Msg’:
session.c:360:40: error: implicit declaration of function ‘abs’ 
[-Werror=implicit-function-declaration]
  360 |   strncpy(msg_buf, RFCNB_Error_Strings[abs(code)], len);
      |                                        ^~~
session.c:38:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abs’
   37 | #include "rfcnb-io.h"
  +++ |+#include <stdlib.h>
   38 | 
mv Smb.xsc Smb.c
smblib-util.c: In function ‘SMB_AtrToStr’:
smblib-util.c:87:5: error: implicit declaration of function ‘strcat’ 
[-Werror=implicit-function-declaration]
   87 |     strcat(SMB_Attrib_Temp, (verbose?"Read Only ":"R"));
      |     ^~~~~~
smblib-util.c:30:1: note: include ‘<string.h>’ or provide a declaration of 
‘strcat’
   29 | #include "rfcnb.h"
  +++ |+#include <string.h>
   30 | 
smblib-util.c:87:5: warning: incompatible implicit declaration of built-in 
function ‘strcat’ [-Wbuiltin-declaration-mismatch]
   87 |     strcat(SMB_Attrib_Temp, (verbose?"Read Only ":"R"));
      |     ^~~~~~
smblib-util.c:87:5: note: include ‘<string.h>’ or provide a declaration of 
‘strcat’
smblib-util.c:90:5: warning: incompatible implicit declaration of built-in 
function ‘strcat’ [-Wbuiltin-declaration-mismatch]
   90 |     strcat(SMB_Attrib_Temp, (verbose?"Hidden ":"H"));
      |     ^~~~~~
smblib-util.c:90:5: note: include ‘<string.h>’ or provide a declaration of 
‘strcat’
smblib-util.c:93:5: warning: incompatible implicit declaration of built-in 
function ‘strcat’ [-Wbuiltin-declaration-mismatch]
   93 |     strcat(SMB_Attrib_Temp, (verbose?"System ":"S"));
      |     ^~~~~~
smblib-util.c:93:5: note: include ‘<string.h>’ or provide a declaration of 
‘strcat’
valid.c:42:7: error: implicit declaration of function ‘SMB_Logon_Server’; did 
you mean ‘SMB_Connect_Server’? [-Werror=implicit-function-declaration]
   42 |   if (SMB_Logon_Server(con, USERNAME, PASSWORD) < 0) {
      |       ^~~~~~~~~~~~~~~~
      |       SMB_Connect_Server
smblib-util.c:96:5: warning: incompatible implicit declaration of built-in 
function ‘strcat’ [-Wbuiltin-declaration-mismatch]
   96 |     strcat(SMB_Attrib_Temp, (verbose?"Volume ":"V"));
      |     ^~~~~~
smblib-util.c:96:5: note: include ‘<string.h>’ or provide a declaration of 
‘strcat’
smblib-util.c:99:5: warning: incompatible implicit declaration of built-in 
function ‘strcat’ [-Wbuiltin-declaration-mismatch]
   99 |     strcat(SMB_Attrib_Temp, (verbose?"Directory ":"D"));
      |     ^~~~~~
smblib-util.c:99:5: note: include ‘<string.h>’ or provide a declaration of 
‘strcat’
smblib-util.c:102:5: warning: incompatible implicit declaration of built-in 
function ‘strcat’ [-Wbuiltin-declaration-mismatch]
  102 |     strcat(SMB_Attrib_Temp, (verbose?"Archive ":"A"));
      |     ^~~~~~
smblib-util.c:102:5: note: include ‘<string.h>’ or provide a declaration of 
‘strcat’
smblib-util.c: In function ‘SMB_Figure_Protocol’:
smblib-util.c:178:11: error: implicit declaration of function ‘strcmp’ 
[-Werror=implicit-function-declaration]
  178 |       if (strcmp(dialects[prot_index], SMB_Prots[i]) == 0) { /* A match 
*/
      |           ^~~~~~
smblib-util.c:178:11: note: include ‘<string.h>’ or provide a declaration of 
‘strcmp’
smblib-util.c: In function ‘SMB_Negotiate’:
smblib-util.c:214:29: error: implicit declaration of function ‘strlen’ 
[-Werror=implicit-function-declaration]
  214 |     prots_len = prots_len + strlen(Prots[i]) + 2; /* Account for null 
etc */
      |                             ^~~~~~
smblib-util.c:214:29: note: include ‘<string.h>’ or provide a declaration of 
‘strlen’
smblib-util.c:214:29: warning: incompatible implicit declaration of built-in 
function ‘strlen’ [-Wbuiltin-declaration-mismatch]
smblib-util.c:214:29: note: include ‘<string.h>’ or provide a declaration of 
‘strlen’
arm-linux-gnueabihf-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2   
-DVERSION=\"0.91\" -DXS_VERSION=\"0.91\" -fPIC 
"-I/usr/lib/arm-linux-gnueabihf/perl/5.38/CORE"   Smb.c
smblib-util.c:266:5: error: implicit declaration of function ‘strcpy’ 
[-Werror=implicit-function-declaration]
  266 |     strcpy(p + 1, Prots[i]);
      |     ^~~~~~
smblib-util.c:266:5: note: include ‘<string.h>’ or provide a declaration of 
‘strcpy’
smblib-util.c:266:5: warning: incompatible implicit declaration of built-in 
function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
smblib-util.c:266:5: note: include ‘<string.h>’ or provide a declaration of 
‘strcpy’
smblib-util.c:267:13: warning: incompatible implicit declaration of built-in 
function ‘strlen’ [-Wbuiltin-declaration-mismatch]
  267 |     p = p + strlen(Prots[i]) + 2; /* Adjust len of p for null plus 
dialectID */
      |             ^~~~~~
smblib-util.c:267:13: note: include ‘<string.h>’ or provide a declaration of 
‘strlen’
smblib-util.c:362:23: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 3 has type ‘char *’ [-Wformat=]
  362 |     fprintf(stderr, "%d", (char *)(SMB_Hdr(pkt) + 
SMB_negrLM_buf_offset));
      |                      ~^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       |   |
      |                       int char *
      |                      %s
smblib-util.c:363:5: error: implicit declaration of function ‘memcpy’ 
[-Werror=implicit-function-declaration]
  363 |     memcpy(Con_Handle->Encrypt_Key, p, 8);
      |     ^~~~~~
smblib-util.c:363:5: note: include ‘<string.h>’ or provide a declaration of 
‘memcpy’
smblib-util.c:363:5: warning: incompatible implicit declaration of built-in 
function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
smblib-util.c:363:5: note: include ‘<string.h>’ or provide a declaration of 
‘memcpy’
smblib-util.c:367:5: error: implicit declaration of function ‘strncpy’ 
[-Werror=implicit-function-declaration]
  367 |     strncpy(p, Con_Handle -> Svr_PDom, sizeof(Con_Handle -> Svr_PDom) - 
1);
      |     ^~~~~~~
smblib-util.c:367:5: note: include ‘<string.h>’ or provide a declaration of 
‘strncpy’
smblib-util.c:367:5: warning: incompatible implicit declaration of built-in 
function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
smblib-util.c:367:5: note: include ‘<string.h>’ or provide a declaration of 
‘strncpy’
smblib-util.c: In function ‘SMB_Get_My_Name’:
smblib-util.c:421:5: warning: incompatible implicit declaration of built-in 
function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
  421 |     strncpy(name, "unknown", len);
      |     ^~~~~~~
smblib-util.c:421:5: note: include ‘<string.h>’ or provide a declaration of 
‘strncpy’
smblib-util.c: In function ‘SMB_TreeConnect’:
smblib-util.c:465:15: warning: incompatible implicit declaration of built-in 
function ‘strlen’ [-Wbuiltin-declaration-mismatch]
  465 |   param_len = strlen(path) + 2 + strlen(password) + 2 + strlen(device) 
+ 2;
      |               ^~~~~~
smblib-util.c:465:15: note: include ‘<string.h>’ or provide a declaration of 
‘strlen’
smblib-util.c:503:3: warning: incompatible implicit declaration of built-in 
function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
  503 |   strncpy(tree -> path, path, sizeof(tree -> path));
      |   ^~~~~~~
smblib-util.c:503:3: note: include ‘<string.h>’ or provide a declaration of 
‘strncpy’
smblib-util.c:523:3: warning: incompatible implicit declaration of built-in 
function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
  523 |   strcpy(p + 1, path);
      |   ^~~~~~
smblib-util.c:523:3: note: include ‘<string.h>’ or provide a declaration of 
‘strcpy’
smblib-util.c: In function ‘SMB_Get_Error_Msg’:
smblib-util.c:765:5: warning: incompatible implicit declaration of built-in 
function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
  765 |     strncpy(msgbuf,
      |     ^~~~~~~
smblib-util.c:765:5: note: include ‘<string.h>’ or provide a declaration of 
‘strncpy’
smblib-util.c:776:5: warning: incompatible implicit declaration of built-in 
function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
  776 |     strncpy(msgbuf,
      |     ^~~~~~~
smblib-util.c:776:5: note: include ‘<string.h>’ or provide a declaration of 
‘strncpy’
smblib-util.c:782:9: warning: incompatible implicit declaration of built-in 
function ‘strlen’ [-Wbuiltin-declaration-mismatch]
  782 |     if (strlen(msgbuf) < len) { /* If there is space, put rest in */
      |         ^~~~~~
smblib-util.c:782:9: note: include ‘<string.h>’ or provide a declaration of 
‘strlen’
smblib-util.c:784:7: error: implicit declaration of function ‘strncat’ 
[-Werror=implicit-function-declaration]
  784 |       strncat(msgbuf, "\n\t", len - strlen(msgbuf));
      |       ^~~~~~~
smblib-util.c:784:7: note: include ‘<string.h>’ or provide a declaration of 
‘strncat’
smblib-util.c:784:7: warning: incompatible implicit declaration of built-in 
function ‘strncat’ [-Wbuiltin-declaration-mismatch]
smblib-util.c:784:7: note: include ‘<string.h>’ or provide a declaration of 
‘strncat’
smblib.c: In function ‘SMBlib_Set_Sock_NoDelay’:
smblib.c:94:7: error: implicit declaration of function 
‘RFCNB_Set_Sock_NoDelay’; did you mean ‘SMBlib_Set_Sock_NoDelay’? 
[-Werror=implicit-function-declaration]
   94 |   if (RFCNB_Set_Sock_NoDelay(Con_Handle -> Trans_Connect, yn) < 0) {
      |       ^~~~~~~~~~~~~~~~~~~~~~
      |       SMBlib_Set_Sock_NoDelay
smblib.c: In function ‘SMB_Connect_Server’:
smblib.c:145:3: error: implicit declaration of function ‘SMB_Get_My_Name’ 
[-Werror=implicit-function-declaration]
  145 |   SMB_Get_My_Name(con -> myname, sizeof(con -> myname));
      |   ^~~~~~~~~~~~~~~
smblib.c:160:17: error: implicit declaration of function ‘toupper’ 
[-Werror=implicit-function-declaration]
  160 |     called[i] = toupper(server[i]);
      |                 ^~~~~~~
smblib.c:37:1: note: include ‘<ctype.h>’ or provide a declaration of ‘toupper’
   36 | #include "rfcnb.h"
  +++ |+#include <ctype.h>
   37 | 
cc1: some warnings being treated as errors
make[2]: *** [Makefile:343: valid.o] Error 1
make[2]: *** Waiting for unfinished jobs....
smblib.c: In function ‘SMB_Connect’:
smblib.c:296:7: error: implicit declaration of function ‘SMB_Negotiate’ 
[-Werror=implicit-function-declaration]
  296 |   if (SMB_Negotiate(con, SMB_Prots_Restrict) < 0) {
      |       ^~~~~~~~~~~~~
smblib.c: In function ‘SMB_Logon_Server’:
smblib.c:343:5: error: implicit declaration of function ‘SMBencrypt’ 
[-Werror=implicit-function-declaration]
  343 |     SMBencrypt((uchar *) PassWord, (uchar *)Con_Handle -> 
Encrypt_Key,(uchar *)pword);
      |     ^~~~~~~~~~
smblib.c:494:5: error: implicit declaration of function ‘RFCNB_Free_Pkt’; did 
you mean ‘RFCNB_Alloc_Pkt’? [-Werror=implicit-function-declaration]
  494 |     RFCNB_Free_Pkt(pkt);
      |     ^~~~~~~~~~~~~~
      |     RFCNB_Alloc_Pkt
cc1: some warnings being treated as errors
make[2]: *** [Makefile:343: session.o] Error 1
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make[2]: *** [Makefile:343: smblib.o] Error 1
make[2]: *** [Makefile:343: smblib-util.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/smbval'
make[1]: *** [Makefile:1068: smbval/smbvalid.a] Error 2
make[1]: *** Waiting for unfinished jobs....
Smb.c: In function ‘XS_Authen__Smb_Valid_User’:
Smb.c:309:18: error: implicit declaration of function ‘Valid_User’ 
[-Werror=implicit-function-declaration]
  309 |         RETVAL = Valid_User(username, password, server, backup, domain);
      |                  ^~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [Makefile:339: Smb.o] Error 1

Cheers
-- 
Sebastian Ramacher

Reply via email to