Source: w3m
Version: 0.5.3-21
Severity: normal

>From my build log using -Pstage1 (without libimlib2-dev installed):

...
gcc -Wall -g -DDEBIAN -I. -I. -g -O2 -fPIE -fstack-protector-strong -Wformat 
-Werror=format-security   -I./libwc  -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H 
-DAUXBIN_DIR=\"/usr/lib/w3m\" -DCGIBIN_DIR=\"/usr/lib/w3m/cgi-bin\" 
-DHELP_DIR=\"/usr/share/w3m\" -DETC_DIR=\"/etc\" -DCONF_DIR=\"/etc/w3m\" 
-DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2  -c 
-o terms.o terms.c
terms.c: In function 'save_first_animation_frame':
terms.c:526:29: warning: passing argument 1 of 'Strnew_charp' discards 'const' 
qualifier from pointer target type [-Wdiscarded-qualifiers]
     new_path = Strnew_charp(path);
                             ^
In file included from textlist.h:4:0,
                 from history.h:5,
                 from fm.h:26,
                 from terms.c:52:
Str.h:33:5: note: expected 'char *' but argument is of type 'const char *'
 Str Strnew_charp(char *);
     ^
In file included from /usr/include/string.h:634:0,
                 from terms.c:14:
terms.c:546:38: warning: pointer targets in passing argument 1 of 'strlen' 
differ in signedness [-Wpointer-sign]
     if (len != st.st_size || strncmp(header, "GIF89a", 6) != 0) {
                                      ^
In file included from terms.c:14:0:
/usr/include/string.h:398:15: note: expected 'const char *' but argument is of 
type 'u_char * {aka unsigned char *}'
 extern size_t strlen (const char *__s)
               ^
In file included from /usr/include/string.h:634:0,
                 from terms.c:14:
terms.c:546:38: warning: pointer targets in passing argument 1 of 
'__builtin_strlen' differ in signedness [-Wpointer-sign]
     if (len != st.st_size || strncmp(header, "GIF89a", 6) != 0) {
                                      ^
terms.c:546:38: note: expected 'const char *' but argument is of type 'u_char * 
{aka unsigned char *}'
terms.c:546:38: warning: pointer targets in passing argument 1 of 
'__builtin_strcmp' differ in signedness [-Wpointer-sign]
     if (len != st.st_size || strncmp(header, "GIF89a", 6) != 0) {
                                      ^
terms.c:546:38: note: expected 'const char *' but argument is of type 'u_char * 
{aka unsigned char *}'
terms.c:546:38: warning: pointer targets in passing argument 1 of 
'__builtin_strlen' differ in signedness [-Wpointer-sign]
     if (len != st.st_size || strncmp(header, "GIF89a", 6) != 0) {
                                      ^
terms.c:546:38: note: expected 'const char *' but argument is of type 'u_char * 
{aka unsigned char *}'
terms.c:546:38: warning: pointer targets in passing argument 1 of 
'__builtin_strcmp' differ in signedness [-Wpointer-sign]
     if (len != st.st_size || strncmp(header, "GIF89a", 6) != 0) {
                                      ^
terms.c:546:38: note: expected 'const char *' but argument is of type 'u_char * 
{aka unsigned char *}'
terms.c:546:38: warning: pointer targets in passing argument 1 of 
'__builtin_strcmp' differ in signedness [-Wpointer-sign]
     if (len != st.st_size || strncmp(header, "GIF89a", 6) != 0) {
                                      ^
terms.c:546:38: note: expected 'const char *' but argument is of type 'u_char * 
{aka unsigned char *}'
terms.c:546:38: warning: pointer targets in passing argument 1 of 
'__builtin_strcmp' differ in signedness [-Wpointer-sign]
     if (len != st.st_size || strncmp(header, "GIF89a", 6) != 0) {
                                      ^
terms.c:546:38: note: expected 'const char *' but argument is of type 'u_char * 
{aka unsigned char *}'
terms.c:546:38: warning: pointer targets in passing argument 1 of 'strncmp' 
differ in signedness [-Wpointer-sign]
     if (len != st.st_size || strncmp(header, "GIF89a", 6) != 0) {
                                      ^
In file included from terms.c:14:0:
/usr/include/string.h:147:12: note: expected 'const char *' but argument is of 
type 'u_char * {aka unsigned char *}'
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
            ^
terms.c: In function 'put_image_sixel':
terms.c:639:28: error: 'pixel_per_line_i' undeclared (first use in this 
function)
  sprintf(digit[1], "%d", h*pixel_per_line_i);
                            ^
terms.c:639:28: note: each undeclared identifier is reported only once for each 
function it appears in
terms.c: In function 'addmch':
terms.c:1215:12: warning: variable 'dirty' set but not used 
[-Wunused-but-set-variable]
     short *dirty;
            ^
terms.c: In function 'save_gif':
terms.c:493:2: warning: ignoring return value of 'write', declared with 
attribute warn_unused_result [-Wunused-result]
  write(fd, header, header_size) ;
  ^
terms.c:494:2: warning: ignoring return value of 'write', declared with 
attribute warn_unused_result [-Wunused-result]
  write(fd, body, body_size) ;
  ^
terms.c:495:2: warning: ignoring return value of 'write', declared with 
attribute warn_unused_result [-Wunused-result]
  write(fd, "\x3b" , 1) ;
  ^
<builtin>: recipe for target 'terms.o' failed
make[1]: *** [terms.o] Error 1
make[1]: Leaving directory '/tmp/w3m/w3m-0.5.3'
debian/rules:37: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2

If I wrap the large block added by 020-debian.patch in terms.c in a block
#ifdef USE_IMAGE / #endif, that seems to fix the stage1 build.
-- 
Daniel Schepler


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to