Jump to content

Photo

ziproxy 3.3.1-r1 compile failure

- - - - -

1 reply to this topic

#1
pascalbrax

pascalbrax

    Newbie

  • Members
  • Pip
  • 5 posts
[...]
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/tools/Makefile
config.status: creating man/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1 ...
make -j7
Making all in .
make[1]: Entering directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1'
Making all in src
make[1]: Entering directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1/src'
make  all-recursive
make[2]: Entering directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1/src'
Making all in tools
make[3]: Entering directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1/src/tools'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../src     -march=native -O2 -pipe -c -o ziproxylogtool.o ziproxylogtool.c
ziproxylogtool.c: In function ‘stats_general_loop’:
ziproxylogtool.c:418:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
   fgets (log_line, LINE_BUFFER - 1, goptions->in_file);
   ^
ziproxylogtool.c: In function ‘stats_max_hosts’:
ziproxylogtool.c:453:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
   fgets (log_line, LINE_BUFFER - 1, goptions->in_file);
   ^
ziproxylogtool.c: In function ‘stats_filter_mode’:
ziproxylogtool.c:476:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
   fgets (log_line, LINE_BUFFER - 1, goptions->in_file);
   ^
x86_64-pc-linux-gnu-gcc  -march=native -O2 -pipe  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o ziproxylogtool ziproxylogtool.o  -lpthread -lpng -ljpeg -lgif -lm -lz
make[3]: Leaving directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1/src/tools'
make[3]: Entering directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=native -O2 -pipe -c -o ziproxy.o ziproxy.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=native -O2 -pipe -c -o http.o http.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=native -O2 -pipe -c -o log.o log.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=native -O2 -pipe -c -o text.o text.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=native -O2 -pipe -c -o image.o image.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=native -O2 -pipe -c -o cfgfile.o cfgfile.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=native -O2 -pipe -c -o preemptdns.o preemptdns.c
text.c: In function ‘gunzip’:
text.c:229:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
    fread(*outbuf, *outlen, 1, file_unpack);
    ^
http.c: In function ‘send_error’:
http.c:721:6: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
      fread (txtfilebuf, 1, txtfilesize, txtfile);
      ^
preemptdns.c: In function ‘preempt_dns_from_html’:
preemptdns.c:201:25: warning: ignoring return value of ‘daemon’, declared with attribute warn_unused_result [-Wunused-result]
                         daemon (0, 0);
                         ^
http.c: In function ‘read_content’:
http.c:1273:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
     fscanf (from, "%x", &pending_chunk_len);
     ^
http.c:1286:5: warning: ignoring return value of ‘feof’, declared with attribute warn_unused_result [-Wunused-result]
     feof (from);
     ^
http.c: In function ‘get_response_headers’:
http.c:1392:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
  fgets(line, 5, sockrfp);
  ^
http.c:1414:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
  fgets(line+n, sizeof(line), sockrfp);
  ^
image.c: In function ‘mem_to_png’:
image.c:505:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
  memcpy(data, desc->buf + desc->x.pos,length);
  ^
image.c: In function ‘png_to_mem’:
image.c:703:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
  memcpy(desc->buf + desc->x.pos, data ,length);
  ^
image.c: In function ‘gif_mem_input’:
image.c:858:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
  memcpy(data,desc->buf + desc->x.pos,copied);
  ^
image.c: In function ‘gif2bitmap’:
image.c:908:17: error: too few arguments to function ‘DGifOpen’
  if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input)) == NULL)
                 ^
In file included from image.c:61:0:
/usr/include/gif_lib.h:182:14: note: declared here
 GifFileType *DGifOpen(void *userPtr, InputFunc readFunc, int *Error);    /* new one (TVT) */
              ^
image.c:948:3: warning: incompatible implicit declaration of built-in function ‘memcpy’
   memcpy(Raster, LastImg->RasterBits, bmp->width*bmp->height);
   ^
image.c:1086:2: error: too few arguments to function ‘DGifCloseFile’
  DGifCloseFile(GifFile);
  ^
In file included from image.c:61:0:
/usr/include/gif_lib.h:183:9: note: declared here
     int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
         ^
image.c: In function ‘optimize_palette’:
image.c:2201:3: warning: incompatible implicit declaration of built-in function ‘memcpy’
   memcpy (bmp->palette, new_palette, sizeof (unsigned char) * bmp->pal_bpp * used_colors);
   ^
image.c:2271:5: warning: incompatible implicit declaration of built-in function ‘memcpy’
     memcpy (bmp->palette, new_palette, sizeof (unsigned char) * bmp->pal_bpp * used_colors);
     ^
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -march=native -O2 -pipe -c -o netd.o netd.c
Makefile:456: recipe for target 'image.o' failed
make[3]: *** [image.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1/src'
Makefile:472: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1/src'
Makefile:325: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1/src'
Makefile:329: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 * ERROR: net-proxy/ziproxy-3.3.1-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-proxy/ziproxy-3.3.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-proxy/ziproxy-3.3.1-r1::gentoo'`.
 * The complete build log is located at '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/temp/environment'.
 * Working directory: '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1'
 * S: '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1'

>>> Failed to emerge net-proxy/ziproxy-3.3.1-r1, Log file:

>>>  '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/temp/build.log'

 * Messages for package net-proxy/ziproxy-3.3.1-r1:

 * ERROR: net-proxy/ziproxy-3.3.1-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-proxy/ziproxy-3.3.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-proxy/ziproxy-3.3.1-r1::gentoo'`.
 * The complete build log is located at '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/temp/environment'.
 * Working directory: '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1'
 * S: '/home/tmp/portage/net-proxy/ziproxy-3.3.1-r1/work/ziproxy-3.3.1'
pascal@xxx ~ $

These are my make.conf vars:

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j7"

So far, I have this package masked while ziproxy 3.3.1 emerged normally and it's working without any issues. I wonder what changed in that "-r1" release that breaks my emerge.



#2
cardinal

cardinal

    Advanced Member

  • Members
  • PipPipPip
  • 224 posts
Download debian patch to fix the build:
http://sources.debia...03_giflib5.diff
funtoo rj # mkdir -p /etc/portage/patches/net-proxy/ziproxy
funtoo rj # cp 03_giflib5.diff  /etc/portage/patches/net-proxy/ziproxy
funtoo rj # emerge -av ziproxy

ziproxy-3.3.1-r1 build log



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users