[Varnish] #486: link failure with --as-needed

Varnish varnish-bugs at projects.linpro.no
Thu Apr 9 22:06:02 CEST 2009


#486: link failure with --as-needed
--------------------------+-------------------------------------------------
 Reporter:  thilobangert  |        Type:  enhancement
   Status:  new           |    Priority:  low        
Milestone:                |   Component:  build      
  Version:  2.0           |    Severity:  minor      
 Keywords:                |  
--------------------------+-------------------------------------------------
 when building varnish with the --as-needed linker option (LDFLAGS="-Wl
 ,--as-needed") the build process fails with the following error:

 {{{
 i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wl,--as-needed -o
 .libs/varnishadm varnishadm.o  ../../lib/libvarnish/.libs/libvarnish.so
 ../../lib/libvarnishcompat/.libs/libvarnishcompat.so -lpthread -lnsl
 ../../lib/libvarnish/.libs/libvarnish.so: undefined reference to `strlcpy'
 }}}

 for more info about linking with --as-needed refert to
 http://www.gentoo.org/proj/en/qa/asneeded.xml

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/486>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list