Solaris x86_64 with SunStudio
Kamil Radziszewski
kradziszewski at gmail.com
Mon Oct 20 13:34:57 CEST 2008
Hi,
I compiled varnish-2.0.1 under SunStudio 12 on Solaris 10u5 in 64bit.
1. LDFLAGS=-m64 CFLAGS=-m64 ./configure --prefix=/opt/varnish-2.0.1
2. make && make install
When I try to run varnishd I get this error:
mgt_run_cc(): failed to load compiled VCL program:
ld.so.1: varnishd: fatal: ./vcl.ORk8t3RP.so: wrong ELF class: ELFCLASS32
VCL compilation failed.
I modified the config.h file after ./configure process :
from:
/* C compiler command line for VCL code */
#define VCC_CC "cc -Kpic -G -o %o %s"
to:
/* C compiler command line for VCL code */
#define VCC_CC "cc -m64 -Kpic -G -o %o %s"
After this, varnishd starts without any errors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-bugs/attachments/20081020/46473bca/attachment.html>
More information about the varnish-bugs
mailing list