[Freeswitch-users] Building FS with mod_java support

Victor Medina vittico at gmail.com
Fri Dec 5 15:59:01 MSK 2014


More on the same issue...

root at ubuntu:/home/administrador/freeswitch# make mod_java-install
make[1]: Entering directory `/home/administrador/freeswitch'
 /bin/mkdir -p '/opt/CloudVoice-vPBX/fs/lib'
 /bin/bash /home/administrador/freeswitch/libtool   --mode=install
/usr/bin/install -c   libfreeswitch.la '/opt/CloudVoice-vPBX/fs/lib'
libtool: install: /usr/bin/install -c .libs/libfreeswitch.so.1.0.0
/opt/CloudVoice-vPBX/fs/lib/libfreeswitch.so.1.0.0
libtool: install: (cd /opt/CloudVoice-vPBX/fs/lib && { ln -s -f
libfreeswitch.so.1.0.0 libfreeswitch.so.1 || { rm -f
libfreeswitch.so.1 && ln -s libfreeswitch.so.1.0.0 libfreeswitch.so.1;
}; })
libtool: install: (cd /opt/CloudVoice-vPBX/fs/lib && { ln -s -f
libfreeswitch.so.1.0.0 libfreeswitch.so || { rm -f libfreeswitch.so &&
ln -s libfreeswitch.so.1.0.0 libfreeswitch.so; }; })
libtool: install: /usr/bin/install -c .libs/libfreeswitch.lai
/opt/CloudVoice-vPBX/fs/lib/libfreeswitch.la
libtool: install: /usr/bin/install -c .libs/libfreeswitch.a
/opt/CloudVoice-vPBX/fs/lib/libfreeswitch.a
libtool: install: chmod 644 /opt/CloudVoice-vPBX/fs/lib/libfreeswitch.a
libtool: install: ranlib /opt/CloudVoice-vPBX/fs/lib/libfreeswitch.a
libtool: finish:
PATH="/opt/CloudVoice-vPBX/jdk/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin"
ldconfig -n /opt/CloudVoice-vPBX/fs/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /opt/CloudVoice-vPBX/fs/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Leaving directory `/home/administrador/freeswitch'
make[1]: Entering directory `/home/administrador/freeswitch/src/mod'

making install mod_java
make[2]: Entering directory
`/home/administrador/freeswitch/src/mod/languages/mod_java'
make  install-am
make[3]: Entering directory
`/home/administrador/freeswitch/src/mod/languages/mod_java'
  CXX      mod_java_la-mod_java.lo
  CXX      mod_java_la-freeswitch_java.lo
freeswitch_java.cpp: In function 'void setOriginateStateHandler(jobject)':
freeswitch_java.cpp:17:85: warning: format not a string literal and no
format arguments [-Wformat-security]
                 switch_log_printf(SWITCH_CHANNEL_LOG,
SWITCH_LOG_ERROR, errorMessage);

              ^
freeswitch_java.cpp:27:93: warning: format not a string literal and no
format arguments [-Wformat-security]
                         switch_log_printf(SWITCH_CHANNEL_LOG,
SWITCH_LOG_ERROR, errorMessage);

                      ^
  CXX      mod_java_la-switch_swig_wrap.lo
  CC       mod_java_la-modjava.lo
  CXXLD    mod_java.la
make[4]: Entering directory
`/home/administrador/freeswitch/src/mod/languages/mod_java'
make[4]: Nothing to be done for `install-exec-am'.
cp freeswitch.jar /opt/CloudVoice-vPBX/fs/scripts
cp: cannot stat ‘freeswitch.jar’: No such file or directory
make[4]: *** [install-data-local] Error 1
make[4]: Leaving directory
`/home/administrador/freeswitch/src/mod/languages/mod_java'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory
`/home/administrador/freeswitch/src/mod/languages/mod_java'
make[2]: *** [install] Error 2
make[2]: Leaving directory
`/home/administrador/freeswitch/src/mod/languages/mod_java'
make[1]: *** [mod_java-install] Error 1
make[1]: Leaving directory `/home/administrador/freeswitch/src/mod'
make: *** [mod_java-install] Error 2
root at ubuntu:/home/administrador/freeswitch#

Sin mas a que hacer referencia,

Victor Medina


On Fri, Dec 5, 2014 at 8:16 AM, Victor Medina <vittico at gmail.com> wrote:
> Hi all!
>
> I´ve been trying to build Freeswitch 1.4 with Java support. It
> compiles just fine, installation fails with:
>
> making install mod_java
> make[4]: Entering directory
> `/home/administrador/freeswitch/src/mod/languages/mod_java'
> make  install-am
> make[5]: Entering directory
> `/home/administrador/freeswitch/src/mod/languages/mod_java'
> make[6]: Entering directory
> `/home/administrador/freeswitch/src/mod/languages/mod_java'
> make[6]: Nothing to be done for `install-exec-am'.
> cp freeswitch.jar /opt/CloudVoice-vPBX/fs/scripts
> cp: cannot stat ‘freeswitch.jar’: No such file or directory
> make[6]: *** [install-data-local] Error 1
> make[6]: Leaving directory
> `/home/administrador/freeswitch/src/mod/languages/mod_java'
> make[5]: *** [install-am] Error 2
> make[5]: Leaving directory
> `/home/administrador/freeswitch/src/mod/languages/mod_java'
> make[4]: *** [install] Error 2
> make[4]: Leaving directory
> `/home/administrador/freeswitch/src/mod/languages/mod_java'
> make[3]: *** [mod_java-install] Error 1
> make[3]: Leaving directory `/home/administrador/freeswitch/src/mod'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory `/home/administrador/freeswitch/src'
>
> Can someone help?
>
> Sin mas a que hacer referencia,
>
> Victor Medina



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list