<div dir="ltr">Hi all,<div><br></div><div>I&#39;m having trouble getting the ESL &quot;javamod&quot; to build - </div><div><br></div><div><div>:/usr/src/fs/v1.6/freeswitch/libs/esl# make javamod</div><div>make MYLIB=&quot;.././.libs/libesl.a&quot; SOLINK=&quot;-shared -Xlinker -x&quot; CFLAGS=&quot;-I/usr/src/fs/v1.6/freeswitch/libs/esl/src/include -I/usr/include/uuid  -I/usr/src/fs/v1.6/freeswitch/src/include -I/usr/src/fs/v1.6/freeswitch/src/include -I/usr/src/fs/v1.6/freeswitch/libs/libteletone/src -fPIC -Werror -Wno-unused-result -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL&quot; CXXFLAGS=&quot;-I/usr/src/fs/v1.6/freeswitch/libs/esl/src/include -I/usr/include/postgresql  -I/usr/src/fs/v1.6/freeswitch/src/include -I/usr/src/fs/v1.6/freeswitch/src/include -I/usr/src/fs/v1.6/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1&quot; CXX_CFLAGS=&quot;&quot; -C java</div><div>make[1]: Entering directory &#39;/usr/src/fs/v1.6/freeswitch/libs/esl/java&#39;</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&#39; 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 &#39;libesljni.so&#39; failed</div><div>make[1]: *** [libesljni.so] Error 1</div><div>make[1]: Leaving directory &#39;/usr/src/fs/v1.6/freeswitch/libs/esl/java&#39;</div><div>Makefile:1371: recipe for target &#39;javamod&#39; failed</div><div>make: *** [javamod] Error 2</div><div><br></div><div><br></div></div><div>I&#39;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&#39;m configuring the build as so - </div><div>./configure --enable-shared --enable-core-pgsql-support --with-java=/usr/lib/jvm/java-6-openjdk-amd64/ <br></div><div><br></div><div>I&#39;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>