[Varnish] #852: need to define NO_VIZ for platforms without visibility attribute support

Varnish varnish-bugs at varnish-cache.org
Fri Jan 28 12:51:42 CET 2011


#852: need to define NO_VIZ for platforms without visibility attribute support
--------------------+-------------------------------------------------------
 Reporter:  slink   |       Owner:  slink
     Type:  defect  |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  build   |     Version:  trunk
 Severity:  normal  |    Keywords:       
--------------------+-------------------------------------------------------
 (initially noted by geoff at uplex dot de)

 On Solaris, compiling with gcc reults in the following warnings:

 {{{
 zutil.c: In function `vgz_zcalloc':
 zutil.c:308: warning: visibility attribute not supported in this
 configuration; ignored
 zutil.c: In function `vgz_zcfree':
 zutil.c:316: warning: visibility attribute not supported in this
 configuration; ignored
 }}}

 and linking fails with:

 {{{
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz_zcalloc: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz_zcfree: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__length_code: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__dist_code: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__dist_code: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__length_code: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__dist_code: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__dist_code: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__length_code: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__dist_code: a GOT relative relocation must reference a local symbol
 ld: fatal: relocation error: R_386_GOTOFF: file .libs/deflate.o: symbol
 vgz__dist_code: a GOT relative relocation must reference a local symbol
 }}}

 the zlib configure script contains a test for the visibility attribute and
 sets NO_VIZ if that fails.

 I will prepare a patch

-- 
Ticket URL: <http://varnish-cache.org/trac/ticket/852>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list