On 7 July 2010 03:46, Jacques <[email protected]> wrote: > Hello, > I'm trying to setup Solaris on OpenSolaris b134. I'm doing a setup in a > brand new zone. I have reviewed the instructions > on http://www.varnish-cache.org/wiki/Installation#OpenSolaris and am having > problems. > With a brand new zone, I've found that in addition to installing the list of > packages provided, I also need to install: SUNWpcre & SUNWlibm. > Once installed, I can configure & build correctly with: > ---- > > VCC_CC="cc -Kpic -G -m64 -o %o %s" CC=/usr/bin/gcc CFLAGS="-O3 > -L/opt/extra/lib/amd64 \ > -pthreads -m64 -fomit-frame-pointer" LDFLAGS="-lumem -pthreads" > ./configure --prefix=/opt/extra > > make && make install > > ---- > I start by running: > # /opt/extra/sbin/varnishd -d -a:80 -b 87.238.47.204:80 >>Compiled VCL program failed to load: >> ld.so.1: varnishd: fatal: relocation error: R_AMD64_PC32: file >> ./vcl.ORk8t3RP.so: symbol main: value 0x2800dcfbd44 does not fit >>VCL compilation failed > Not unexpected, I run: > # /opt/extra/sbin/varnishd -d -a:80 -b 87.238.47.204:80 -p cc_command='gcc > -G -m64 -o %o %s' >>Compiled VCL program failed to load: >> ld.so.1: varnishd: fatal: relocation error: R_AMD64_PC32: file >> ./vcl.ORk8t3RP.so: symbol main: value 0x2800dcdbd44 does not fit >>VCL compilation failed
Hi Jacques, We're running r4516 on OpenSolaris snv_111b, I freely admit to cargo-culting here, my configure command similarly looks like this: CC=/usr/bin/gcc CFLAGS="-O3 -L/lib/amd64 -pthreads -m64 -fomit-frame-pointer" LDFLAGS="-lumem -pthreads" ./configure --prefix=/opt And then to run I pass through this option to varnishd when starting: -p 'cc_command=/usr/bin/gcc -fpic -shared -m64 -o %o %s' (I think the -fpic argument is what you're missing.) That mostly works for us with just gcc installed - I've tried later varnish revisions but the varnish tools segfault with "Cannot open" errors and it's not been a priority to investigate the cause. Hope that helps, Paul. _______________________________________________ varnish-misc mailing list [email protected] http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
