[Varnish] #1446: Varnish and PIC, failing tests, varnish-4.0.0-tp2+2014-03-06 on Fedora 19/x86_64

Varnish varnish-bugs at varnish-cache.org
Tue Mar 11 12:54:42 CET 2014


#1446: Varnish and PIC, failing tests, varnish-4.0.0-tp2+2014-03-06 on Fedora
19/x86_64
--------------------+----------------------------------------
 Reporter:  ingvar  |      Owner:
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:  Varnish 4.0-TP2
Component:  build   |    Version:  unknown
 Severity:  normal  |   Keywords:  PIC PIE hardened_build f19
--------------------+----------------------------------------
 Another bug on varnish-4.0.0-tp2+2014-03-06 on Fedora 19/x86_64

 When packaging Varnish for Fedora, we are encouraged to use the
 "_hardened_build" macro globally, which implies compiling with the PIC/PIE
 flags. For details, have a look at
 https://fedoraproject.org/wiki/Packaging:Guidelines#PIE

 In practice, this means that at least the following will be added to
 CFLAGS and LDFLAGS:

 {{{
 CFLAGS="$CFLAGS -fPIC -Wp,-D_FORTIFY_SOURCE=2"
 LDFLAGS="$LDFLAGS -z"
 }}}

 Varnish compiles fine with this, but the following tests fail:

 {{{
 FAIL: tests/a00009.vtc (exit: 2)
 FAIL: tests/b00041.vtc (exit: 2)
 FAIL: tests/c00013.vtc (exit: 2)
 }}}

 Attached bin/varnishtest/test-suite.log

 Ingvar

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1446>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list