I'm trying to get APE version 1.0 to work on one of my Gentoo servers.
It is running hardened kernel, though no problems related into that is
printed in logs, so that isn't problem.

uname -a:
Linux madeuphost.fi 2.6.28-hardened-r7 #11 SMP Tue Feb 16 20:46:17 EET
2010 x86_64 Intel(R) Xeon(TM) CPU 3.00GHz GenuineIntel GNU/Linux

Server is having MySQL 5.1 installed, which provide
libmysqlclient_r.so.16 instead of .so.15 APE expect to be found. Below
is description of my attempts to get APE server up'n'running, and how
each of those are failing.

If I take APE version 1.0, and try using precompiled binary backage,
server start gives this error:

-snip-
Version : 1.00
Build   : Dec 10 2009 20:26:31
Author  : Weelya ([email protected])

[Module] Failed to load ../modules/libmod_spidermonkey.so [Invalid
library] (libmysqlclient_r.so.15: cannot open shared object file: No
such file or directory)

-/snip-

I can run /Tools/Check/ which gives then this output. Everything
before that passes fine.

-snip-

Running test : Checking APE.Config.baseUrl
APE JSF Version 1.0
Running test : Contacting APE Server
Connection etablished but something went wrong. Server response is

[{"time":"1301761419","raw":"ERR","data":
{"code":"003","value":"BAD_CMD"}}]

Something went wrong. If you can't fix it by yourself post a message
on the newsgroups with the output below or join our IRC channel

-/snip-


Ok, so next step I took was compiling own from source. While doing "sh
build.sh", it ends up with bunch of warnings... no errors, so I
suppose compile goes ok:

-snip-

src/entry.c: In function ‘ape_daemon’:
src/entry.c:87: warning: ignoring return value of ‘write’, declared
with attribute warn_unused_result
src/entry.c: In function ‘main’:
src/entry.c:149: warning: ignoring return value of ‘read’, declared
with attribute warn_unused_result
src/log.c: In function ‘ape_log’:
src/log.c:71: warning: format ‘%i’ expects type ‘int’, but argument 4
has type ‘long unsigned int’
src/log.c:67: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result
src/log.c:72: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result
src/log.c:75: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result
src/log.c:76: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result
gcc -D_GNU_SOURCE -Wall -O2 -shared -fPIC -rdynamic -Wl,-
soname,libmod_spidermonkey.so -o lib/libmod_spidermonkey.so libape-
spidermonkey.c -I../deps/js/src/dist/include/ -L../deps/js/src/
-ljs_static -lstdc++ -L./deps/mysac/ -I./deps/mysac/ -lmysac
-lmysqlclient_r
libape-spidermonkey.c: In function ‘ape_sm_echo’:
libape-spidermonkey.c:2075: warning: ignoring return value of
‘fwrite’, declared with attribute warn_unused_result
libape-spidermonkey.c:2076: warning: ignoring return value of
‘fwrite’, declared with attribute warn_unused_result

-/snip-

So, I take that is good then. I'll try to start aped, which gives me
following error:

-snip-

Version : 1.00
Build   : Apr  3 2011 12:58:39
Author  : Weelya ([email protected])

[Module] Failed to load ../modules/lib/libmod_spidermonkey.so [Invalid
library] (../modules/lib/libmod_spidermonkey.so: undefined symbol:
memcpy_fixed)

-/snip-


If running /Tools/Check/ everything seems to be fine until that
connection part, same BAD_CMD error.


I have then noticed that there is new version released from mysac,
only few days ago. As that module failure is related to mysac, I
decided to try update only that. There has been btw earlier same
problem, but then solution was more or less 'cheated', and not
something I can do (as I don't have older machine where this works.)
That other thread can be found here:
http://groups.google.com/group/ape-project/browse_thread/thread/82fd45dd51a9eab7/06da56c554f5af49

So after I downloaded mysac-0.7b and replaced modules/deps/mysac
(which is version 0.4b) with it, I ran make under it and created
symbolic link for static library file (easier this way than start
fixing all Makefiles):
ln -s libmysac-static.a libmysac.a

then I ran make in modules/ so I was able to check
libmod_spidermonkey.so got updated, which it did. To be sure, I ran
whole sh build.sh again at this point.

When trying to start aped, it gets right away killed:

-snip-

Version : 1.00
Build   : Apr  3 2011 13:18:31
Author  : Weelya ([email protected])

[Module] [spidermonkey] Loading module : Javascript embeded (0.01) -
Anthony Catel
[JS] Loading script ../scripts/framework/mootools.js
Killed

-/snip-

If I edit scripts/main.ape.js and comment that mootools line, then try
to start, all goes well:

-snip-

Version : 1.00
Build   : Apr  3 2011 13:18:31
Author  : Weelya ([email protected])

[Module] [spidermonkey] Loading module : Javascript embeded (0.01) -
Anthony Catel
[JS] Loading script ../scripts/framework/Http.js
[JS] Loading script ../scripts/framework/userslist.js
[JS] Loading script ../scripts/utils/utils.js
[JS] Loading script ../scripts/commands/proxy.js
[JS] Loading script ../scripts/commands/inlinepush.js
[JS] Loading script ../scripts/examples/nickname.js
[JS] Loading script ../scripts/examples/move.js
[JS] Loading script ../scripts/utils/checkTool.js

-/snip-

If at this point I try to use /Tools/Check/ at tells me "All test
done. Now you can play with your APE \o/". However it writes into
daemon screen:

../scripts/commands/proxy.js:78:ReferenceError: $H is not defined

That doesn't get written into ape.log however. But that mootools.js
problem makes me think that all isn't that well now.

Any ideas what to do with this?

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to