Source: libsearpc
Version: 3.3.0+really3.3+git20230527.783141f-3.1
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=libsearpc&arch=armhf&ver=3.3.0%2Breally3.3%2Bgit20230527.783141f-3.1&stamp=1709152397&raw=0

gcc -DHAVE_CONFIG_H -I. -I..   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/glib-2.0 
-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I../lib -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -Wall -pedantic -c -o demo-async-client.o 
demo-async-client.c
test-object.c:3:55: warning: ISO C does not allow extra ‘;’ outside of a 
function [-Wpedantic]
    3 | G_DEFINE_TYPE (TestObject, test_object, G_TYPE_OBJECT);
      |                                                       ^
In file included from searpc-demo-client.c:13:
searpc-demo-packet.h:22:10: warning: ISO C forbids zero-size array ‘data’ 
[-Wpedantic]
   22 |     char data[0];
      |          ^~~~
searpc-demo-packet.h: In function ‘writen’:
searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; 
did you mean ‘writen’? [-Werror=implicit-function-declaration]
   40 |                 if ( (nwritten = write(fd, ptr, nleft)) <= 0) {
      |                                  ^~~~~
      |                                  writen
searpc-demo-packet.h: In function ‘readn’:
searpc-demo-packet.h:65:31: error: implicit declaration of function ‘read’; did 
you mean ‘readn’? [-Werror=implicit-function-declaration]
   65 |                 if ( (nread = read(fd, buf, nleft)) < 0) {
      |                               ^~~~
      |                               readn
searpc-demo-client.c: In function ‘transport_callback’:
searpc-demo-client.c:34:13: warning: unused variable ‘ret’ [-Wunused-variable]
   34 |     int fd, ret;
      |             ^~~
searpc-demo-client.c: In function ‘rpc_string_test’:
searpc-demo-client.c:124:5: error: implicit declaration of function ‘close’; 
did you mean ‘pclose’? [-Werror=implicit-function-declaration]
  124 |     close(sockfd);
      |     ^~~~~
      |     pclose
In file included from demo-async-client.c:10:
searpc-demo-packet.h:22:10: warning: ISO C forbids zero-size array ‘data’ 
[-Wpedantic]
   22 |     char data[0];
      |          ^~~~
searpc-demo-packet.h: In function ‘writen’:
searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; 
did you mean ‘writen’? [-Werror=implicit-function-declaration]
   40 |                 if ( (nwritten = write(fd, ptr, nleft)) <= 0) {
      |                                  ^~~~~
      |                                  writen
In file included from searpc-demo-client.c:14:
searpc-demo-client.c: In function ‘rpc_glist_test’:
test-object.h:7:38: error: implicit declaration of function 
‘test_object_get_type’; did you mean ‘g_object_get_type’? 
[-Werror=implicit-function-declaration]
    7 | #define TEST_OBJECT_TYPE            (test_object_get_type())
      |                                      ^~~~~~~~~~~~~~~~~~~~
searpc-demo-client.c:133:44: note: in expansion of macro ‘TEST_OBJECT_TYPE’
  133 |                                            TEST_OBJECT_TYPE, &error, 3,
      |                                            ^~~~~~~~~~~~~~~~
searpc-demo-packet.h: In function ‘readn’:
searpc-demo-packet.h:65:31: error: implicit declaration of function ‘read’; did 
you mean ‘readn’? [-Werror=implicit-function-declaration]
   65 |                 if ( (nread = read(fd, buf, nleft)) < 0) {
      |                               ^~~~
      |                               readn
demo-async-client.c: In function ‘transport_send’:
searpc-demo-client.c: In function ‘main’:
demo-async-client.c:39:19: warning: unused variable ‘pac_ret’ 
[-Wunused-variable]
   39 |     packet *pac, *pac_ret;
      |                   ^~~~~~~
demo-async-client.c:37:13: warning: unused variable ‘ret’ [-Wunused-variable]
   37 |     int fd, ret;
      |             ^~~
demo-async-client.c:37:9: warning: unused variable ‘fd’ [-Wunused-variable]
   37 |     int fd, ret;
      |         ^~
searpc-demo-client.c:178:11: warning: unused variable ‘ret_str’ 
[-Wunused-variable]
  178 |     char *ret_str;
      |           ^~~~~~~
demo-async-client.c: In function ‘main’:
demo-async-client.c:149:5: error: implicit declaration of function ‘close’; did 
you mean ‘pclose’? [-Werror=implicit-function-declaration]
  149 |     close(sockfd);
      |     ^~~~~
      |     pclose
demo-async-client.c:92:11: warning: unused variable ‘ret_str’ 
[-Wunused-variable]
   92 |     char *ret_str;
      |           ^~~~~~~
In file included from searpc-demo-server.c:13:
searpc-demo-packet.h:22:10: warning: ISO C forbids zero-size array ‘data’ 
[-Wpedantic]
   22 |     char data[0];
      |          ^~~~
In file included from searpc-demo-server.c:12:
searpc-demo-server.c: In function ‘searpc_objlisttest’:
test-object.h:7:38: error: implicit declaration of function 
‘test_object_get_type’; did you mean ‘g_object_get_type’? 
[-Werror=implicit-function-declaration]
    7 | #define TEST_OBJECT_TYPE            (test_object_get_type())
      |                                      ^~~~~~~~~~~~~~~~~~~~
searpc-demo-server.c:43:39: note: in expansion of macro ‘TEST_OBJECT_TYPE’
   43 |         TestObject *obj=g_object_new (TEST_OBJECT_TYPE, NULL);
      |                                       ^~~~~~~~~~~~~~~~
In file included from searpc-demo-server.c:55:
searpc-marshal.h: In function ‘marshal_int__string’:
searpc-marshal.h:8:16: warning: ISO C forbids conversion of object pointer to 
function pointer type [-Wpedantic]
    8 |     int ret = ((int (*)(const char*, GError **))func) (param1, &error);
      |                ^
searpc-marshal.h: In function ‘marshal_objlist__int_int_string’:
searpc-marshal.h:24:19: warning: ISO C forbids conversion of object pointer to 
function pointer type [-Wpedantic]
   24 |     GList* ret = ((GList* (*)(int, int, const char*, GError **))func) 
(param1, param2, param3, &error);
      |                   ^
searpc-demo-server.c: In function ‘start_rpc_service’:
searpc-demo-server.c:69:37: warning: ISO C forbids passing argument 2 of 
‘searpc_server_register_function’ between function pointer and ‘void *’ 
[-Wpedantic]
   69 |                                     searpc_strlen,
      |                                     ^~~~~~~~~~~~~
In file included from ../lib/searpc.h:7,
                 from searpc-demo-server.c:10:
../lib/searpc-server.h:113:49: note: expected ‘void *’ but argument is of type 
‘int (*)(const char *)’
  113 |                                           void* func,
      |                                           ~~~~~~^~~~
searpc-demo-server.c:73:37: warning: ISO C forbids passing argument 2 of 
‘searpc_server_register_function’ between function pointer and ‘void *’ 
[-Wpedantic]
   73 |                                     searpc_objlisttest,
      |                                     ^~~~~~~~~~~~~~~~~~
../lib/searpc-server.h:113:49: note: expected ‘void *’ but argument is of type 
‘GList * (*)(int,  int,  const char *)’ {aka ‘struct _GList * (*)(int,  int,  
const char *)’}
  113 |                                           void* func,
      |                                           ~~~~~~^~~~
searpc-demo-server.c: In function ‘main’:
searpc-demo-server.c:132:17: warning: unused variable ‘error’ 
[-Wunused-variable]
  132 |         GError *error = NULL;
      |                 ^~~~~
cc1: some warnings being treated as errors
make[4]: *** [Makefile:428: demo-async-client.o] Error 1

Cheers
-- 
Sebastian Ramacher

Reply via email to