Well, it looks like the new libmod_spidermonkey.so wasn't compiled
with mysql support at all:
# ldd libmod_spidermonkey.so
linux-gate.so.1 => (0x00eac000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00b5f000)
libc.so.6 => /lib/libc.so.6 (0x006b1000)
libm.so.6 => /lib/libm.so.6 (0x0043b000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00de6000)
/lib/ld-linux.so.2 (0x0036b000)
Trying to build it manually works (after much pain) but it is not
working due to the above problem.
I even tried to update mysac library to the latest code, but it didn't
help either.
At this point, it doesn't look like mysql will be supported in APE, so
my next step is either to use PHP to remote sql queries or move away
from APE.