First note: There seem to be several existing threads on this general subject. However, I looked them over and they all seem to be of the "unmet dependencies"/can't install variety. My problem is different; it installs; but fails to run.
I did the usual apt-get update; apt-get install lighttpd
and during the install, the following error was displayed onscreen:
/usr/sbin/lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking
/usr/sbin/lighttpd: symbol lookup error: /usr/sbin/lighttpd: undefined symbol: FAMNoExists
Along with a message to the effect that lighttpd
could not be started.
I've done a fair amount of other research trying to get this working, all to no avail. Note: I even downloaded a .deb on a different Ubuntu system, where the binary does work, but when I take the .deb and unpack it on the 18.04 system, it fails. I've tried to compile the source, but the source package is weird; it does not have a ./configure script (just configure.ac, which I tried, unsuccessfully, to convert to "configure" using "autoconf")
Anyway, I ended up installing something called "h2static", which seems to be a pretty good replacement, but I'm still curious why "lighttpd" doesn't work.
Update: Somebody requested further information. Note that I have long since uninstalled the package, so anything related to its running as an installed package is gone, but here is the "ldd" output:
linux-vdso.so.1 (0x00007ffcc8f43000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fbd9246a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbd92266000)
libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007fbd92061000)
libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fbd91dd4000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fbd91909000)
libfam.so.0 => /usr/lib/x86_64-linux-gnu/libfam.so.0 (0x00007fbd91700000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbd9130f000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbd910f0000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbd9291b000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbd90d67000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbd90b4f000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbd907b1000)
And here is the error message that any attempt to run the binary generates (This is the same as posted above, but here it is again for clarity):
/usr/sbin/lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking
/usr/sbin/lighttpd: symbol lookup error: usr/sbin/lighttpd: undefined symbol: FAMNoExists
This appears to be a known bug which has been reported eg. at https://bugs.launchpad.net/ubuntu/+source/lighttpd/+bug/1067315 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478291.
For me this was solved by installing the
libgamin0
package. Due to package conflicts this also meant that I had to uninstall thelibfam0
package, butlibgamin0
replaces that package, so no functionality was lost.