[Varnish] #711: 64bit Catch 22 on Solaris (gcc _builtin_xxx functions)

Varnish varnish-bugs at varnish-cache.org
Thu Jun 3 11:30:39 CEST 2010


#711: 64bit Catch 22 on Solaris (gcc _builtin_xxx functions)
------------------------------------------------------------------+---------
 Reporter:  tinl                                                  |        Type:  defect
   Status:  new                                                   |    Priority:  normal
Milestone:  After Varnish 2.1                                     |   Component:  build 
  Version:  trunk                                                 |    Severity:  major 
 Keywords:  __builtin_isfinite, link error, 64-bit, solaris, gcc  |  
------------------------------------------------------------------+---------
 Same issue as #577 for 2.1.2:

 Version 2.1.2 suffers in my case exactly from the same symptom:
 ---------------------------------------------------------------
 $ type gcc
 gcc is /usr/sfw/bin/gcc
 $ gcc -v
 Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
 Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
 --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-
 ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-
 shared
 Thread model: posix
 gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
 $ uname -a
 SunOS solo1 5.10 Generic_118855-33 i86pc i386 i86pc
 ---------------------------------------------------------------
 Configure cmd line:
 CFLAGS="-O3 -pthreads -m64 -fomit-frame-pointer -L/usr/sfw/lib/amd64"
 LDFLAGS="-R /usr/sfw/lib/amd64 -lumem -pthreads"
 PKG_CONFIG_PATH=/opt/local/pcre-8.02/lib/pkgconfig VCC_CC="gcc -fPIC -G -o
 %o %s" CC=/usr/sfw/bin/gcc ./configure --prefix=/opt/local/varnish-2.1.2

 and finally the link error:
 Undefined                       first referenced
  symbol                             in file
 !__builtin_isfinite
 ../../lib/libvarnish/.libs/libvarnish.so
 ld: fatal: Symbol referencing errors. No output written to
 .libs/varnishadm
 collect2: ld returned 1 exit status
 make: Fatal error: Command failed for target `varnishadm'

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




More information about the varnish-bugs mailing list