[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#808493: kinput2: FTBFS: cconv.c:793:15: error: conflicting types for ‘getline’



Source: kinput2
Version: 3.1-12
Severity: serious
Justification: fails to build from source
Tags: sid 
User: reproducible-builds@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org

Dear Maintainer,

The package fails to build:

rm -f cconv.o
gcc -c -g -O2 -fno-strict-aliasing    -I../include -Iimlib -I/usr/include/wnn        -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO   -DCCDEFPATH=\"/etc/kinput2/\"                     -DWNN6 -DLIBDIR=\"/usr/share/wnn\"     cconv.c
In file included from /usr/include/stdio.h:27:0,
                 from cconv.c:606:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
cconv.c:793:15: error: conflicting types for ‘getline’
 static uchar *getline(uchar *, int, Files *, void (*)());
               ^
In file included from cconv.c:606:0:
/usr/include/stdio.h:678:20: note: previous declaration of ‘getline’ was here
 extern _IO_ssize_t getline (char **__restrict __lineptr,
                    ^
cconv.c: In function ‘registMode’:
cconv.c:619:34: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
 #define Free(p)   { if (p) (void)free((char *)(p)); }
                                  ^
cconv.c:1210:4: note: in expansion of macro ‘Free’
    Free(modes);
    ^
cconv.c:619:34: warning: incompatible implicit declaration of built-in function ‘free’
 #define Free(p)   { if (p) (void)free((char *)(p)); }
                                  ^
cconv.c:1210:4: note: in expansion of macro ‘Free’
    Free(modes);
    ^
cconv.c:619:34: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
 #define Free(p)   { if (p) (void)free((char *)(p)); }
                                  ^
cconv.c:1210:4: note: in expansion of macro ‘Free’
    Free(modes);
    ^

...

Makefile:1124: recipe for target 'cconv.o' failed
make[2]: *** [cconv.o] Error 1
make[2]: Leaving directory '/kinput2-3.1/lib'
Makefile:1099: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/kinput2-3.1'

Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/kinput2.html

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)


Reply to: