<div dir="ltr">I got an esl.jar to build successfully on the same machine as I was using for the failed build in my original post, on a clean master by doing - <div><br></div><div>- ./bootstrap -j</div><div>- ./configure (with no options this time)</div><div>- make</div><div>- cd libs/esl</div><div>- make</div><div>- edit java/Makefile to manually correct the includes for my java installation. it now reads - </div><div>LOCAL_CFLAGS=-I../src/include -I/usr/lib/jvm/java-6-openjdk-amd64/include/ -I/usr/lib/jvm/java-6-openjdk-amd64/include/linux/</div><div>- make javamod</div><div><br></div><div>I'm going to work back from here and see if I can get it building on 1.6...</div><div><br></div><div>Cheers,</div><div><br>Dan</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 December 2016 at 00:04, Daniel Wilson <span dir="ltr"><<a href="mailto:daniel.a.wilson@gmail.com" target="_blank">daniel.a.wilson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I'm having trouble getting the ESL "javamod" to build - </div><div><br></div><div><div>:/usr/src/fs/v1.6/freeswitch/<wbr>libs/esl# make javamod</div><div>make MYLIB=".././.libs/libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/usr/src/fs/v1.6/<wbr>freeswitch/libs/esl/src/<wbr>include -I/usr/include/uuid -I/usr/src/fs/v1.6/<wbr>freeswitch/src/include -I/usr/src/fs/v1.6/freeswitch/<wbr>src/include -I/usr/src/fs/v1.6/freeswitch/<wbr>libs/libteletone/src -fPIC -Werror -Wno-unused-result -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL" CXXFLAGS="-I/usr/src/fs/v1.6/<wbr>freeswitch/libs/esl/src/<wbr>include -I/usr/include/postgresql -I/usr/src/fs/v1.6/<wbr>freeswitch/src/include -I/usr/src/fs/v1.6/freeswitch/<wbr>src/include -I/usr/src/fs/v1.6/freeswitch/<wbr>libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1" CXX_CFLAGS="" -C java</div><div>make[1]: Entering directory '/usr/src/fs/v1.6/freeswitch/<wbr>libs/esl/java'</div><div>g++ -shared -Xlinker -x -o libesljni.so esl_wrap.o .././.libs/libesl.a</div><div>/usr/bin/ld: esl_wrap.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC</div><div>esl_wrap.o: error adding symbols: Bad value</div><div>collect2: error: ld returned 1 exit status</div><div>Makefile:14: recipe for target 'libesljni.so' failed</div><div>make[1]: *** [libesljni.so] Error 1</div><div>make[1]: Leaving directory '/usr/src/fs/v1.6/freeswitch/<wbr>libs/esl/java'</div><div>Makefile:1371: recipe for target 'javamod' failed</div><div>make: *** [javamod] Error 2</div><div><br></div><div><br></div></div><div>I'm building on a stock Debian 8 but with openjdk-6-jdk installed (have tried against openjdk-7-jdk but with same results). </div><div><br></div><div>I'm configuring the build as so - </div><div>./configure --enable-shared --enable-core-pgsql-support --with-java=/usr/lib/jvm/java-<wbr>6-openjdk-amd64/ <br></div><div><br></div><div>I've tried without --enable-shared also, to no avail. </div><div><br></div><div>Please can someone point me in the right direction to get this working ? </div><div><br></div><div>Thanks in advance,</div><div><br>Dan</div><div><br></div><div><br></div></div>
</blockquote></div><br></div>