I want to migrate my varnish server from Linux to Solaris.<br><br>I'm trying to compile varnish on a Solaris 10u5 x86 system. I'm using gcc provided by Sun with the installation cd...<br><br>[root@varnish-pub-0-151 /]# which gcc<br>
/usr/sfw/bin/gcc<br>[root@varnish-pub-0-151 /]# gcc -v<br>Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs<br>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<br>
Thread model: posix<br>gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)<br><br>...and dependencies installed from <a href="http://sunfreeware.com">sunfreeware.com</a> (make-3.81, automake-1.10.1, autoconf-2.63, libtool-1.5.24)...<br>
<br>[root@varnish-pub-0-151 /]# which make automake autoconf libtool <br>/usr/local/bin/make<br>/usr/local/bin/automake<br>/usr/local/bin/autoconf<br>/usr/local/bin/libtool<br>[root@varnish-pub-0-151 /]# make -v<br>GNU Make 3.81<br>
Copyright (C) 2006 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.<br>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<br>PARTICULAR PURPOSE.<br>This program built for i386-pc-solaris2.10<br>
<br>... and when I execute make, I have this error:<br><br>(...)<br>Making all in bin<br>make[2]: Entering directory `/usr/share/src/varnish-2.0.1/bin'<br>Making all in varnishadm<br>make[3]: Entering directory `/usr/share/src/varnish-2.0.1/bin/varnishadm'<br>
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -g -O2 -MT varnishadm.o -MD -MP -MF .deps/varnishadm.Tpo -c -o varnishadm.o varnishadm.c<br>mv -f .deps/varnishadm.Tpo .deps/varnishadm.Po<br>/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -o varnishadm varnishadm.o ../../lib/libvarnish/<a href="http://libvarnish.la">libvarnish.la</a> ../../lib/libvarnishcompat/<a href="http://libvarnishcompat.la">libvarnishcompat.la</a> -lnsl -lsocket -lumem -lsendfile <br>
mkdir .libs<br>gcc -g -O2 -o .libs/varnishadm varnishadm.o ../../lib/libvarnish/.libs/libvarnish.so -lrt -lm ../../lib/libvarnishcompat/.libs/libvarnishcompat.so -lnsl -lsocket -lumem -lsendfile -R/opt/varnish-sfw/lib<br>
Undefined first referenced<br> symbol in file<br>isfinite ../../lib/libvarnish/.libs/libvarnish.so<br>ld: fatal: Symbol referencing errors. No output written to .libs/varnishadm<br>
collect2: ld returned 1 exit status<br>make[3]: *** [varnishadm] Error 1<br>make[3]: Leaving directory `/usr/share/src/varnish-2.0.1/bin/varnishadm'<br>make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory `/usr/share/src/varnish-2.0.1/bin'<br>
make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/usr/share/src/varnish-2.0.1'<br>make: *** [all] Error 2<br><br>What am I missing? Any help from you guys?<br><br>config.log is in the attachment. Any other informations I can provide?<br>
<br>Best regards,<br>Bartek.<br>