Should SilkJS Work on Ubuntu 10.04?

47 views
Skip to first unread message

Derek Gransaull

unread,
Mar 11, 2013, 9:24:06 PM3/11/13
to sil...@googlegroups.com
In another thread, Mike seems to allude to some Linux kernel sensitivity for SilkJS. So, should it also compile/work in Ubuntu 10.04. The Install instructions say:

"These instructions are for Ubuntu Oneiric, though they will work for other versions of Ubuntu as well.".

So, I tried to install on my Ubuntu 10.04 server and make throws the following errors at the end:

memcached.cpp: In function ‘v8::Handle<v8::Value> _memcached_error(const v8::Arguments&)’:
memcached.cpp:114: error: ‘memcached_return_t’ was not declared in this scope
memcached.cpp:114: error: expected ‘;’ before ‘rc’
memcached.cpp:115: error: ‘rc’ was not declared in this scope
memcached.cpp: In function ‘v8::Handle<v8::Value> _memcached_get(const v8::Arguments&)’:
memcached.cpp:136: error: ‘memcached_return_t’ was not declared in this scope
memcached.cpp:136: error: expected ‘;’ before ‘rc’
memcached.cpp:137: error: ‘rc’ was not declared in this scope
memcached.cpp: In function ‘v8::Handle<v8::Value> _memcached_mget(const v8::Arguments&)’:
memcached.cpp:177: error: ‘memcached_return_t’ was not declared in this scope
memcached.cpp:177: error: expected ‘;’ before ‘rc’
memcached.cpp:178: error: ‘rc’ was not declared in this scope
memcached.cpp:187: error: ‘rc’ was not declared in this scope
memcached.cpp: At global scope:
memcached.cpp:424: error: ‘memcached_return_t’ does not name a type
memcached.cpp: In function ‘v8::Handle<v8::Value> _memcached_keys(const v8::Arguments&)’:
memcached.cpp:435: error: ‘memcached_dump_fn’ was not declared in this scope
memcached.cpp:435: error: expected ‘;’ before ‘callbacks’
memcached.cpp:436: error: ‘callbacks’ was not declared in this scope
memcached.cpp:436: error: ‘dump_fn’ was not declared in this scope

These are the only errors thrown. So does anyone have SilkJS working on any Ubuntu 10.04 systems?

Thanks,

Derek

On Monday, March 11, 2013 9:19:42 AM UTC-7, mschwartz wrote:
What kernel version does 12.04 use?

Michael Schwartz

unread,
Mar 11, 2013, 9:44:48 PM3/11/13
to sil...@googlegroups.com
At the command line, type: 

lsb_release -sr

And send me the output.    I get:

mschwartz@presto:~$ lsb_release -sr
12.04

I'll commit a fix to compile for 10.04 once I see the output of the command :)

The Kernel 3.5 issue is a non-issue as far as I can tell.

Regards



--
You received this message because you are subscribed to the Google Groups "SilkJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silkjs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Derek Gransaull

unread,
Mar 11, 2013, 10:13:51 PM3/11/13
to sil...@googlegroups.com
Sounds like a reasonable proposition :-)

derek@sirius:~$ lsb_release -sr
10.04

That's all I get.

Thanks,

Derek

On Monday, March 11, 2013 6:44:48 PM UTC-7, mschwartz wrote:
At the command line, type: 

lsb_release -sr

And send me the output.    I get:

mschwartz@presto:~$ lsb_release -sr
12.04

I'll commit a fix to compile for 10.04 once I see the output of the command :)

The Kernel 3.5 issue is a non-issue as far as I can tell.

Regards

...

Michael Schwartz

unread,
Mar 11, 2013, 10:35:02 PM3/11/13
to sil...@googlegroups.com
Actually, 

In the src/Makefile, you can remove -DNEW_MEMCACHED from the CFLAGS line

$ grep NEW Makefile*
Makefile:CFLAGS = -fexceptions -fomit-frame-pointer -fdata-sections -ffunction-sections -fno-strict-aliasing -fvisibility=hidden -Wall -W -Wno-ignored-qualifiers -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -m$(ARCH) -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-strict-aliasing -DNEW_MEMCACHED

I don't know that will work, but it might :)

On Mar 11, 2013, at 6:24 PM, Derek Gransaull <de...@dgtlife.com> wrote:

Derek Gransaull

unread,
Mar 12, 2013, 1:05:24 AM3/12/13
to sil...@googlegroups.com
OK, I'll hack around it :-)

Derek Gransaull

unread,
Mar 12, 2013, 6:07:14 AM3/12/13
to sil...@googlegroups.com
So, removing the flag for NEW_MEMCACHED allows make to complete without errors. The make install and server test also proceed without errors.

For anyone with Ubuntu 10.04 Lucid who's been getting (or wants to avoid getting) make errors, (on a fresh clone of the SilkJS repo) I edited the .../SilkJS/Makefile to add:

ifeq ($(RELEASE),10.04)
MAKEFILE = Makefile.lucid
endif

then I removed the flag from .../SilkJS/src/Makefile and saved it as Makefile.lucid. After those changes make and make install are happy.

Thanks again Mike!

Derek

Michael Schwartz

unread,
Mar 12, 2013, 9:21:50 AM3/12/13
to sil...@googlegroups.com
The real fix is to do that ifeq test in the src/Makefile and to add -DNEW_MEMCACHED to CFLAGS conditionally.

I'm on it.
Reply all
Reply to author
Forward
0 new messages