Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ef72 opened this issue Jan 15, 2016 · 7 comments

Comments

@ef72
Copy link

ef72 commented Jan 15, 2016

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) x86_64 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
Copy link
Collaborator

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
Copy link
Author

ef72 commented Jan 19, 2016

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
Copy link

getting same error

i have centos installed

@SiddiqueAhmad
Copy link

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

@bjoern-tantau
Copy link

@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
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants