This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITP] varnish-2.1.4-1 and varnish-r5665


On Thu, Dec 30, 2010 at 06:52:32PM +0100, Jorge Díaz wrote:
> I have prepared two packages:
>   * Current: varnish 2.1.4-1   => last released version, 2.1.4
>   * Test: varnish r5665          => subversion trunk r5665 version
> 
> The packages can be downloaded from sourceforge:
> 
> wget http://downloads.sourceforge.net/project/cygvarnish/cygwin-varnish%20package/varnish-2.1.4-1-src.tar.bz2
> 
> Varnish cygwin patched source version can be compiled succesfully in
> Linux and Solaris.

Hello,

I have tested the package listed above in a 

CYGWIN_NT-6.1 win7 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin

Varnish fails to compile due to curses.h not being found:

checking for library containing initscr... -lcurses
varnishhist.c:39:20: error: curses.h: No such file or
directory

Also, many tests failed:

Assert error in main(), vtc.c line 682:
  Condition((system(cmd)) == 0) not true.
/bin/sh: line 5:  3368 Aborted                 (core dumped)
./varnishtest ${dir}$tst
FAIL: ./tests/b00027.vtc
---- v1   FAIL VCL does not compile

> Varnish need GCC in runtime because its VCL configuration file is
> translated to C and compiled in "so" file in order to better
> performance.
> 
> Varnish also needs Libpcre and Libncurses.

All dependencies (both for building and runtime) seem to be installed:

Cygwin Package Information
Package              Version        Status
libncurses-devel     5.7-18         OK
libncurses10         5.7-18         OK
libncursesw-devel    5.7-18         OK
libncursesw10        5.7-18         OK
ncurses              5.7-18         OK
ncursesw             5.7-18         OK
libpcre-devel        8.02-1         OK
libpcre0             8.02-1         OK
libpcrecpp-devel     8.02-1         OK
libpcrecpp0          8.02-1         OK
gcc                  3.4.4-999      OK

In addition to the patch provided in the src package, I included the
attached changes. The build succeeded, but tests are failing anyway.

Regards.

-- 
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB
diff -Nrup varnish-2.1.4.patched.orig/Makefile.am varnish-2.1.4.patched.new/Makefile.am
--- varnish-2.1.4.patched.orig/Makefile.am	2010-10-21 10:57:22.000000000 +0200
+++ varnish-2.1.4.patched.new/Makefile.am	2010-12-30 03:06:32.000000000 +0100
@@ -3,7 +3,7 @@
 SUBDIRS = include lib bin man etc doc
 
 SUBDIRS += redhat
-
+ACLOCAL_AMFLAGS = -I m4
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = varnishapi.pc
 
diff -Nrup varnish-2.1.4.patched.orig/bin/varnishhist/varnishhist.c varnish-2.1.4.patched.new/bin/varnishhist/varnishhist.c
--- varnish-2.1.4.patched.orig/bin/varnishhist/varnishhist.c	2010-10-21 10:57:22.000000000 +0200
+++ varnish-2.1.4.patched.new/bin/varnishhist/varnishhist.c	2010-12-31 13:34:30.093200000 +0100
@@ -36,7 +36,7 @@
 SVNID("$Id: varnishhist.c 4093 2009-06-06 15:56:17Z des $")
 
 #include <sys/types.h>
-#include <curses.h>
+#include <ncursesw/curses.h>
 #include <errno.h>
 #include <limits.h>
 #include <math.h>
diff -Nrup varnish-2.1.4.patched.orig/bin/varnishsizes/varnishsizes.c varnish-2.1.4.patched.new/bin/varnishsizes/varnishsizes.c
--- varnish-2.1.4.patched.orig/bin/varnishsizes/varnishsizes.c	2010-10-21 10:57:22.000000000 +0200
+++ varnish-2.1.4.patched.new/bin/varnishsizes/varnishsizes.c	2010-12-31 13:34:30.093200000 +0100
@@ -36,7 +36,7 @@
 SVNID("$Id: varnishsizes.c 4709 2010-04-21 10:40:27Z tfheen $")
 
 #include <sys/types.h>
-#include <curses.h>
+#include <ncursesw/curses.h>
 #include <errno.h>
 #include <limits.h>
 #include <math.h>
diff -Nrup varnish-2.1.4.patched.orig/bin/varnishstat/varnishstat.c varnish-2.1.4.patched.new/bin/varnishstat/varnishstat.c
--- varnish-2.1.4.patched.orig/bin/varnishstat/varnishstat.c	2010-10-21 10:57:22.000000000 +0200
+++ varnish-2.1.4.patched.new/bin/varnishstat/varnishstat.c	2010-12-31 13:34:30.093200000 +0100
@@ -37,7 +37,7 @@ SVNID("$Id: varnishstat.c 4553 2010-02-1
 
 #include <sys/time.h>
 
-#include <curses.h>
+#include <ncursesw/curses.h>
 #include <errno.h>
 #include <limits.h>
 #include <signal.h>
diff -Nrup varnish-2.1.4.patched.orig/bin/varnishtop/varnishtop.c varnish-2.1.4.patched.new/bin/varnishtop/varnishtop.c
--- varnish-2.1.4.patched.orig/bin/varnishtop/varnishtop.c	2010-10-21 10:57:22.000000000 +0200
+++ varnish-2.1.4.patched.new/bin/varnishtop/varnishtop.c	2010-12-31 13:34:30.093200000 +0100
@@ -36,7 +36,7 @@
 SVNID("$Id: varnishtop.c 5150 2010-08-30 12:01:05Z tfheen $")
 
 #include <ctype.h>
-#include <curses.h>
+#include <ncursesw/curses.h>
 #include <errno.h>
 #include <pthread.h>
 #include <signal.h>
diff -Nrup varnish-2.1.4.patched.orig/configure.ac varnish-2.1.4.patched.new/configure.ac
--- varnish-2.1.4.patched.orig/configure.ac	2010-12-30 13:33:44.000000000 +0100
+++ varnish-2.1.4.patched.new/configure.ac	2010-12-30 13:33:44.000000000 +0100
@@ -8,7 +8,7 @@ AC_REVISION([$Id: configure.ac 5443 2010
 AC_INIT([Varnish], [2.1.4], [varnish-dev@varnish-cache.org])
 AC_CONFIG_SRCDIR(include/varnishapi.h)
 AM_CONFIG_HEADER(config.h)
-
+AC_CONFIG_MACRO_DIR([m4])
 AC_CANONICAL_SYSTEM
 AC_LANG(C)
 

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]