Source: c2esp
Version: 27-2
Severity: serious
Tags: stretch sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20160930 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 --pedantic 
> -Wall -std=c99 -O2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -c c2espC.c
> In file included from c2espC.c:49:0:
> c2espcommon.h:41:46: error: unknown type name 'FILE'
>  time_t KeepAwake(time_t Start, int Interval, FILE *PrintFile);
>                                               ^~~~
> c2espcommon.h:55:15: error: unknown type name 'FILE'
>  void DoOutJob(FILE *OutFile, char *PrintFormat, int I1, int I2);
>                ^~~~
> c2espcommon.h:65:18: error: unknown type name 'FILE'
>  int GoodExchange(FILE *PrintFile, char *Command, char *Expect, int DoBack,  
> unsigned int SleepTime, float ReplyTime);
>                   ^~~~
> c2espC.c:74:1: error: unknown type name 'FILE'
>  FILE   *PrintFile = NULL; //file descriptor for debug file
>  ^~~~
> c2espC.c:75:1: error: unknown type name 'FILE'
>  FILE   *UncompressedFile = NULL; //file descriptor for file of uncompressed 
> page data
>  ^~~~
> c2espC.c: In function 'SetupPrinter':
> c2espC.c:102:6: warning: implicit declaration of function 'GoodExchange' 
> [-Wimplicit-function-declaration]
>    if(GoodExchange(PrintFile, "LockPrinterWait?", "0002, OK, Locked for 
> printing;", DoBack, 1,  3.0) >= 0) break;
>       ^~~~~~~~~~~~
> c2espC.c:105:2: warning: implicit declaration of function 'DoOutJob' 
> [-Wimplicit-function-declaration]
>   DoOutJob(PrintFile, "Event=StartOfJob;",0,0); //printer command
>   ^~~~~~~~
> c2espC.c:117:7: warning: implicit declaration of function 'fprintf' 
> [-Wimplicit-function-declaration]
>        fprintf(stderr,"ATTR: 
> marker-levels=%d,%d\n",BlackPercent,ColourPercent); // sets the levels 
> displayed
>        ^~~~~~~
> c2espC.c:117:7: warning: incompatible implicit declaration of built-in 
> function 'fprintf'
> c2espC.c:117:7: note: include '<stdio.h>' or provide a declaration of 
> 'fprintf'
> c2espC.c:117:15: error: 'stderr' undeclared (first use in this function)
>        fprintf(stderr,"ATTR: 
> marker-levels=%d,%d\n",BlackPercent,ColourPercent); // sets the levels 
> displayed
>                ^~~~~~
> c2espC.c:117:15: note: each undeclared identifier is reported only once for 
> each function it appears in
> c2espC.c: In function 'EndPage':
> c2espC.c:271:16: warning: implicit declaration of function 'fflush' 
> [-Wimplicit-function-declaration]
>   if(PrintFile) fflush(PrintFile);
>                 ^~~~~~
> c2espC.c: In function 'main':
> c2espC.c:320:2: error: unknown type name 'FILE'
>   FILE *CompData; //stores the compressed data of a page
>   ^~~~
> c2espC.c:337:6: warning: incompatible implicit declaration of built-in 
> function 'fprintf'
>       fprintf(stderr, ("Usage: %s job-id user title copies options 
> [file]\n"), "rastertoek");
>       ^~~~~~~
> c2espC.c:337:6: note: include '<stdio.h>' or provide a declaration of 
> 'fprintf'
> c2espC.c:337:14: error: 'stderr' undeclared (first use in this function)
>       fprintf(stderr, ("Usage: %s job-id user title copies options 
> [file]\n"), "rastertoek");
>               ^~~~~~
> c2espC.c:368:4: warning: implicit declaration of function 'setbuf' 
> [-Wimplicit-function-declaration]
>     setbuf(stderr, NULL);
>     ^~~~~~
> c2espC.c:369:2: warning: incompatible implicit declaration of built-in 
> function 'fprintf'
>   fprintf(stderr, ("DEBUG:  ================= %s 
> ===================================\n"),Version);
>   ^~~~~~~
> c2espC.c:369:2: note: include '<stdio.h>' or provide a declaration of 
> 'fprintf'
> c2espC.c:451:23: warning: implicit declaration of function 'tmpfile' 
> [-Wimplicit-function-declaration]
>        if ( !(CompData=tmpfile()) )
>                        ^~~~~~~
> c2espC.c:451:22: warning: assignment makes pointer from integer without a 
> cast [-Wint-conversion]
>        if ( !(CompData=tmpfile()) )
>                       ^
> c2espC.c:453:11: warning: implicit declaration of function 'perror' 
> [-Wimplicit-function-declaration]
>            perror("opening compressed page temp file");
>            ^~~~~~
> c2espC.c:463:5: warning: implicit declaration of function 'sprintf' 
> [-Wimplicit-function-declaration]
>      sprintf(RasFileName,"/tmp/RasForComp.ppm");
>      ^~~~~~~
> c2espC.c:463:5: warning: incompatible implicit declaration of built-in 
> function 'sprintf'
> c2espC.c:463:5: note: include '<stdio.h>' or provide a declaration of 
> 'sprintf'
> c2espC.c:469:5: warning: incompatible implicit declaration of built-in 
> function 'sprintf'
>      sprintf(RasFileName,"/tmp/RasForComp.pbm");
>      ^~~~~~~
> c2espC.c:469:5: note: include '<stdio.h>' or provide a declaration of 
> 'sprintf'
> c2espC.c:522:34: warning: implicit declaration of function 'KeepAwake' 
> [-Wimplicit-function-declaration]
>      if (DoBack) KeepAwakeStart = KeepAwake(KeepAwakeStart,10, PrintFile);
>                                   ^~~~~~~~~
> c2espC.c:600:26: warning: implicit declaration of function 'fwrite' 
> [-Wimplicit-function-declaration]
>      if(UncompressedFile) fwrite(DataLineBuffer, 1, DataLength, 
> UncompressedFile);
>                           ^~~~~~
> c2espC.c:600:26: warning: incompatible implicit declaration of built-in 
> function 'fwrite'
> c2espC.c:600:26: note: include '<stdio.h>' or provide a declaration of 
> 'fwrite'
> c2espC.c:618:19: warning: incompatible implicit declaration of built-in 
> function 'fwrite'
>                if (fwrite(out, 1, have, CompData) != have || ferror(CompData))
>                    ^~~~~~
> c2espC.c:618:19: note: include '<stdio.h>' or provide a declaration of 
> 'fwrite'
> c2espC.c:618:61: warning: implicit declaration of function 'ferror' 
> [-Wimplicit-function-declaration]
>                if (fwrite(out, 1, have, CompData) != have || ferror(CompData))
>                                                              ^~~~~~
> c2espC.c:644:4: warning: implicit declaration of function 'rewind' 
> [-Wimplicit-function-declaration]
>     rewind(CompData);
>     ^~~~~~
> c2espC.c:682:8: warning: implicit declaration of function 'fgetc' 
> [-Wimplicit-function-declaration]
>       c=fgetc(CompData);
>         ^~~~~
> c2espC.c:687:6: warning: implicit declaration of function 'fputc' 
> [-Wimplicit-function-declaration]
>       fputc(c,stdout);
>       ^~~~~
> c2espC.c:687:14: error: 'stdout' undeclared (first use in this function)
>       fputc(c,stdout);
>               ^~~~~~
> c2espC.c:737:25: warning: implicit declaration of function 'fclose' 
> [-Wimplicit-function-declaration]
>    if(PrintFile != NULL) fclose(PrintFile);
>                          ^~~~~~
> Makefile:406: recipe for target 'c2espC.o' failed
> make[3]: *** [c2espC.o] Error 1

If the failure looks somehow time/timezone related:
Note that this rebuild was performed without the 'tzdata' package
installed in the chroot. tzdata used be (transitively) part of
build-essential, but it no longer is. If this package requires it to
build, it should be added to build-depends. For the release team's
opinion on this, see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836940#185

The full build log is available from:
   http://aws-logs.debian.net/2016/09/30/c2esp_27-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

Reply via email to