Lighty compiled OK for Tomato before?

Discussion in 'Tomato Firmware' started by rhester72, Apr 8, 2010.

  1. rhester72

    rhester72 Network Guru Member

    I've used the latest git K26 SDK to cleanly compile lighttpd 1.4.26 (with pcre, zlib, bzip2, and openssl), no issues. Server comes up with no problem, but segfaults as soon as you try to actually retrieve a web page. Nothing of interest in /var/log/messages or /var/log/lighttpd/error.log (access.log is empty, so we're segfaulting before it gets to write there), and I obviously don't have strace :/

    I've tried a static binary compile just to ensure that it's not a missing libc dependency or the like, and a) the binary came out _smaller_ (!) and b) that compile segfaults on startup, so clearly something isn't right there.

    Anyone ever had luck with this?

  2. rhester72

    rhester72 Network Guru Member

    Update: I also segfault on startup (not on first access) if I compile lighty with --disable-ipv6. Very odd!
  3. mstombs

    mstombs Network Guru Member

    I wonder if something is using your system headers or libraries and not properly cross-compiling?

    Have you checked to see what an OpenWRT build would use for configure options?
  4. rhester72

    rhester72 Network Guru Member

    OpenWRT gets lucky because they get to use full uClibc for dynamic linking - so far, we don't. (Either that, or as of Kamikaze, they have one -hell- of a whitelist...)

    The good news is that we now have strace. :)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice