PHOENIX-MEDIA / Magento-PageCache-powered-by-Varnish

Community version which is available on Magento Connect (http://www.magentocommerce.com/magento-connect/pagecache-powered-by-varnish.html)
89 stars 49 forks source link

Compiling of default_4.1.vcl fails with Cannot create .eh_frame_hdr section [...] #44

Open ef72 opened 8 years ago

ef72 commented 8 years ago
What am I missing here? Thank you.

@lima /etc/systemd/system # service varnish start Job for varnish.service failed. See 'systemctl status varnish.service' and 'journalctl -xn' for details. @lima /etc/systemd/system # systemctl status -l varnish.service ● varnish.service - Varnish Cache, a high-performance HTTP accelerator Loaded: loaded (/etc/systemd/system/varnish.service; disabled) Active: failed (Result: exit-code) since Fri 2016-01-15 16:26:31 CET; 14s ago Process: 17994 ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/magento.vcl -S /etc/varnish/secret -p feature=+esi_disable_xml_check,+esi_ignore_other_elements -p vsl_reclen=4084 -p vcc_allow_inline_c=on -p cc_command=exec cc -fpic -shared -Wl,-x -o %o %s -lcrypto -lssl -s malloc,1G (code=exited, status=2)

Jan 15 16:26:31 lima varnishd[17994]: /usr/bin/ld: warning: Cannot create .eh_frame_hdr section, --eh-frame-hdr ignored. Jan 15 16:26:31 lima varnishd[17994]: /usr/bin/ld: error in /bin/sh(.eh_frame); no .eh_frame_hdr table will be created. Jan 15 16:26:31 lima varnishd[17994]: Message from dlopen: Jan 15 16:26:31 lima varnishd[17994]: Could not load compiled VCL. Jan 15 16:26:31 lima varnishd[17994]: dlopen(vcl_boot/vgc.so) = vcl_boot/vgc.so: symbol lxstat, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference Jan 15 16:26:31 lima varnishd[17994]: Running dlopen failed, exited with 1 Jan 15 16:26:31 lima varnishd[17994]: VCL compilation failed Jan 15 16:26:31 lima systemd[1]: varnish.service: control process exited, code=exited status=2 Jan 15 16:26:31 lima systemd[1]: Failed to start Varnish Cache, a high-performance HTTP accelerator. Jan 15 16:26:31 lima systemd[1]: Unit varnish.service entered failed state.

<config>
    <modules>
        <Phoenix_VarnishCache>
            <version>4.4.0</version>
        </Phoenix_VarnishCache>
    </modules>

@lima /etc/systemd/system # varnishd -V varnishd (varnish-4.1.0 revision 3041728) Copyright (c) 2006 Verdens Gang AS Copyright (c) 2006-2015 Varnish Software AS @lima /etc/systemd/system # uname -a Linux lima 3.16.0-4-amd64 # 1 SMP Debian 3.16.7-ckt20-1+deb8u2 (2016-01-02) x8664 GNU/Linux @lima /etc/systemd/system # dpkg -s libc6 | grep ^Version Version: 2.19-18+deb8u1 @lima /etc/systemd/system # dpkg -s openssl | grep ^Version Version: 1.0.1k-3+deb8u2 @lima /etc/systemd/system # dpkg -s libssl-dev | grep ^Version Version: 1.0.1k-3+deb8u2

niels-phoenix commented 8 years ago

comparing the start parameters the only difference I could find is that -p cc_command=exec cc -fpic -shared -Wl,-x -o %o %s -lcrypto -lssl should be -p 'cc_command=exec cc -fpic -shared -Wl,-x -o %o %s -lcrypto -lssl' let me know if that helps

ef72 commented 8 years ago

The quotes are set correctly in the service daemon start script. They just get filtered by the output. If the quotes are missing Varnish will complain like "unknown store engine hared" because of -shared.

SiddiqueAhmad commented 8 years ago

getting same error

i have centos installed

SiddiqueAhmad commented 8 years ago

it was mulitline issue, i put all on same line and it worked

bjoern-tantau commented 8 years ago

@SiddiqueAhmad What exactly did you put on the same line? I've got the same problem and can't get it resolved. My whole ExecStart parameter is on one line.

bjoern-tantau commented 8 years ago

OK, for anyone wondering, I set up my service file (or whatever it's called in systemd) like this: /etc/systemd/system/varnish.service.d/customexec.conf

[Service]
EnvironmentFile=/etc/default/varnish
ExecStart=
ExecStart=/usr/sbin/varnishd $DAEMON_OPTS
phoenix-bjoern commented 8 years ago

Seems you have some missing C library dependencies. Check if you have openssl-devel und glibc-devel installed.