Mantis - Resin
Viewing Issue Advanced Details
1924 minor always 08-02-07 11:48 08-28-07 15:33
engberg  
ferg  
normal  
closed 3.1.2  
fixed  
none    
none 3.1.3  
0001924: Resin JNI doesn't build cleanly on Ubuntu (Debian) Linux
On a vanilla installation of Ubuntu Linux (I tried 6.10 and 7.04), the Resin Pro JNI lib compiles using the quickstart instructions ("./configure; make; make install"), but it is missing linkage information which is necessary to use it.

There are two problems here:

First, the libresin.so library will fail to load due to a missing "__stack_chk_fail" symbol. This can be solved by adding "-fno-stack-protector" to every cc.

Second, the configure script doesn't think that this OS needs an explicit LibC for the linker, but it does. This can be solved by adding "-lc" to each linker step.

Altogether, I got it to work correctly like this:

  ./configure "CFLAGS=-fno-stack-protector";
  make "PROXY_LIBS=-lpthread -lc";
  make install

This is a pretty common Linux server platform these days, so you may want to consider rolling this into the distribution, since many Java/PHP folks wouldn't be able to get this working on their own.

There are no notes attached to this issue.