libape-spidermonkey on ARM

131 views
Skip to first unread message

Jeremy Mitts

unread,
Aug 29, 2011, 7:23:45 PM8/29/11
to ape-project
Here's the latest, anyone know anything about this? :)

I got the headers installed, and the build.sh fails after it goes into modules and tries to make.

I ran make from there (APE-Project-APE_Server-7368a9c/modules) and output 2> to a log file, and it was complaining about there not being a ../deps/js/src/dist/include folder with a jsapi.h file in it. That file was in ../deps/js/src (there is no dist or dist/include in deps/js/src) so I changed the build line* to specify deps/js/src instead of deps/js/src/dist/include. 

The next errors are about it not being able to find js-configure.h, which I've surmised is a file that is supposed to be generated as an earlier part of the build process. It also wants jsautocfg.h, which also appears to be something that is automatically generated at build. But I don't think I even have whatever it was that was supposed to build those?

I'm obviously missing something. The problem is likely between the chair and keyboard.

To recap, I'm trying to figure out how to build APE on an ARM processor, specifically a global scale technologies dreamplug running deb lenny 2.6.33. I have all the pre-reqs installed and I'm using gnu make. I'm not cross compiling, but actually working on the dreamplug directly. I'd really like to get it running APE.


Thanks for any insight anyone out there may have.


Jeremy


* -- to clarify: make ran this

gcc -D_GNU_SOURCE -Wall -g -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

and I told it to do this

gcc -D_GNU_SOURCE -Wall -g -shared -fPIC -rdynamic -Wl,-soname,libmod_spidermonkey.so -o lib/libmod_spidermonkey.so libape-spidermonkey.c -I../deps/js/src/ -L../deps/js/src/ -ljs_static -lstdc++ -L./deps/mysac/ -I./deps/mysac/ -lmysac -lmysqlclient_r

instead.

Jacobus brogly.decap

unread,
Aug 30, 2011, 6:16:52 AM8/30/11
to ape-p...@googlegroups.com
Hi Guys,

I am compiling from source and I get this,..., this is weird or what  (look at the strange characters).

libape-spidermonkey.c: In function âape_cb_allocateuserâ:
libape-spidermonkey.c:3056: warning: dereferencing type-punned pointer will break strict-aliasing rules
libape-spidermonkey.c: In function âape_cb_del_userâ:
libape-spidermonkey.c:3085: warning: dereferencing type-punned pointer will break strict-aliasing rules
libape-spidermonkey.c: In function âape_cb_mkchanâ:
libape-spidermonkey.c:3112: warning: dereferencing type-punned pointer will break strict-aliasing rules
libape-spidermonkey.c: In function âape_cb_rmchanâ:
libape-spidermonkey.c:3141: warning: dereferencing type-punned pointer will break strict-aliasing rules
libape-spidermonkey.c: In function âape_cb_addsubuserâ:
libape-spidermonkey.c:3190: warning: dereferencing type-punned pointer will break strict-aliasing rules
libape-spidermonkey.c: In function âape_cb_delsubuserâ:
libape-spidermonkey.c:3204: warning: dereferencing type-punned pointer will break strict-aliasing rules


Jacob


2011/8/30 Jeremy Mitts <jerm...@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
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/

Jeremy Mitts

unread,
Aug 30, 2011, 6:28:10 AM8/30/11
to ape-p...@googlegroups.com

I get the same chars. I assumed some kind of curly quote or color-change code that my ssh client doesn't know about. Its always a funny a though.

Jeremy

Wes Garland

unread,
Aug 30, 2011, 8:13:39 AM8/30/11
to ape-p...@googlegroups.com
On 30 August 2011 06:28, Jeremy Mitts <jerm...@gmail.com> wrote:

I get the same chars. I assumed some kind of curly quote or color-change code that my ssh client doesn't know about. Its always a funny a though.


Your terminal program does not understand UTF-8.


> libape-spidermonkey.c:3056: warning: dereferencing type-punned pointer will
> break strict-aliasing rules

This can be ignored, although upgrading your compiler is probably warranted.

Wes

--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102

Jacobus brogly.decap

unread,
Aug 30, 2011, 8:14:19 AM8/30/11
to ape-p...@googlegroups.com
Hi Jeremy

I solved it by going to my PUTTY configuration menu

[root]->Window->Translation

Then in the section "Character Translation and received data" 
  , I select UTF-8

Normally there is some Western ISO-bladibla-stuff there.

Jacobus brogly.decap

unread,
Aug 30, 2011, 8:16:07 AM8/30/11
to ape-p...@googlegroups.com
Hi
I use,

>cc --version
cc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.




2011/8/30 Wes Garland <w...@page.ca>

--

Jeremy Mitts

unread,
Aug 30, 2011, 8:17:06 AM8/30/11
to ape-p...@googlegroups.com
UTF-8! Yeah, that. :)

Got it, thanks all.

Jeremy

Jacobus brogly.decap

unread,
Aug 30, 2011, 12:51:13 PM8/30/11
to ape-p...@googlegroups.com
Would it be a good idea to have APE use the APR runtime?

Wes Garland

unread,
Aug 30, 2011, 1:21:27 PM8/30/11
to ape-p...@googlegroups.com
> Would it be a good idea to have APE use the APR runtime?

IMHO, no - and I have done LOTS of hacking with JSAPI and APR. In fact, I've used them together in another project.

The big problem is that JS GC lifetime does not map cleanly onto APR pools, and you wind up defeating APRs main strength, which is hierarchical pool management.

What benefit did you think you would achieve?

Wes

Jacobus brogly.decap

unread,
Aug 30, 2011, 1:45:43 PM8/30/11
to ape-p...@googlegroups.com
Actually

Exactly that, ....,Apache 2.0 uses APR (actually APR is a spinoff, of the project but thats another story)

Seems strange that Apache 2.0 could use APR, but a server like APE would have problems. but anyway.....!

Jacob

2011/8/30 Wes Garland <w...@page.ca>

Wes Garland

unread,
Aug 30, 2011, 2:14:43 PM8/30/11
to ape-p...@googlegroups.com
> Seems strange that Apache 2.0 could use APR, but a server like APE would have problems.

Not really.

APE is not a general purpose web server -- you can't serve up, say, web pages, with it. Apache is not a stateful application engine.  "They both speak http" is not a similarity, any more than saying that gas wells are like cows because they both emit methane.

If you can enunciate what benefits you expect to get from APR in APE, however, maybe I can suggest alternative methods to achieve them.

Wes

Jacobus brogly.decap

unread,
Aug 30, 2011, 2:29:15 PM8/30/11
to ape-p...@googlegroups.com
bullshit

In Apache you can make filters (like mod_ssl)

I am pretty sure SSL is not HTTP

2011/8/30 Wes Garland <w...@page.ca>
--

Wes Garland

unread,
Aug 30, 2011, 2:31:14 PM8/30/11
to ape-p...@googlegroups.com
On 30 August 2011 14:29, Jacobus brogly.decap <jacobu...@gmail.com> wrote:
bullshit

In Apache you can make filters (like mod_ssl)

I am pretty sure SSL is not HTTP

You go right ahead and port APE to APR.    I won't bother trying to assist you in any way again in the future, since you are clearly much more experienced in these matters than I. In fact, I don't understand why you even bother posting to this newsgroup, since you clearly know everything already.

Wes

Jacobus brogly.decap

unread,
Aug 30, 2011, 2:36:23 PM8/30/11
to ape-p...@googlegroups.com
I am crying already

Chuss baby


Jacob



2011/8/30 Wes Garland <w...@page.ca>
On 30 August 2011 14:29, Jacobus brogly.decap <jacobu...@gmail.com> wrote:
--

Jacobus brogly.decap

unread,
Aug 30, 2011, 2:47:40 PM8/30/11
to ape-p...@googlegroups.com
By the book dude

http://bit.ly/oIEa1X

2011/8/30 Wes Garland <w...@page.ca>
--
Message has been deleted

Jon Francis

unread,
Dec 9, 2014, 12:01:33 AM12/9/14
to ape-p...@googlegroups.com, jerm...@gmail.com
Host: PandaBoard
Environment: Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-1456-omap4 armv7l), armhf

----

cd

sudo apt-get install build-essential libmysqlclient-dev zip unzip g++ gcc git vim

sudo apt-get install libmozjs185-1.0

sudo apt-get install libmozjs185-dev

wget http://ape-project.org/download/stable/APE_Server-1.1.2.zip

unzip APE_Server-1.1.2.zip

cd APE_Server-1.1.2.zip/

vim --> src/js/http.c: set architecture -- #define __arm 1

vim --> modules/Makefle: add "-lmozjs185-1.0", remove "-js_static" (was deprecated), change search link dir to "-I/usr/include/js/" 

vim --> Makefile: add "-Wno-unused-but-set-variable", remove "-minline-all-stringops", remove "-m64" (architecture-specific flags)

vim --> /etc/apt/source.list: deb http://security.debian.org/debian-security wheezy/updates main
    // (I know.. I felt dirty about this for a few seconds)

sudo apt-get update
    // (which will probably fail due to unverified public key -- copy the key that's outputted and paste it in place of "{KEY}" below)

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv {KEY}
gpg --export --armor {KEY} | sudo apt-key add -

    // source/info: http://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey

wget http://ftp.us.debian.org/debian/pool/main/libf/libffi/libffi5_3.0.10-3+b1_armhf.deb
    // source/info: https://packages.debian.org/wheezy/libffi5

sudo dpkg -i libffi5_3.0.10-3+b1_armhf.deb

sudo apt-get install spidermonkey-bin

    // source/info: https://packages.debian.org/wheezy/armhf/spidermonkey-bin/download (can also just download the *.deb from here -- sudo dpkg -i {deb pkg})

js --help
    // (just to make sure spidermonkey was installed)

./build.sh > makelog 2>&1

    // (browse makelog if there's an error..)

cd bin/

sudo ./aped

Peter Benicky

unread,
Jan 3, 2016, 8:00:24 AM1/3/16
to APE Project, jerm...@gmail.com
Hi Jon

I am trying to build APE on Raspberry Pi2.
I did all the steps except 
vim --> modules/Makefle: add "-lmozjs185-1.0", remove "-js_static" (was deprecated), change search link dir to "-I/usr/include/js/" 
i just could not find the string js_static, so i continue doing the next steps
then:
js --help 
I see that spidermonkey was not installed
And
./build.sh > makelog 2>&1
returns error, the error log is in attachement.

Can you advice what is worng?
Thanks
Regards Peter
*************************************************************************************

Dňa utorok, 9. decembra 2014 6:01:33 UTC+1 Jon Francis napísal(-a):
makelog
Reply all
Reply to author
Forward
0 new messages