[Freeswitch-users] mod_gsmopen requires spandsp

Chris Mylonas chris at opencsta.org
Mon May 14 19:16:38 MSD 2012


Excellent!  That worked - thanks heaps!

Some note in the wiki could be attached to that section re: DEBUG=1 creates ctbd.  Is it editable by anyone registered or is there JIRA for documentation stuff?


[root at space build]# make DEBUG=0 GPIB=0
[root at space build]# make DEBUG=0 GPIB=0 install
[root at space build]# cd ..
[root at space libctb-0.16]# cd ..
[root at space mod_gsmopen]# make clean
[root at space mod_gsmopen]# make install
Compiling gsmopen_protocol.cpp...
Compiling /usr/src/freeswitch/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp...
mkdir .libs
Compiling /usr/src/freeswitch/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp ...
Creating mod_gsmopen.so...
installing mod_gsmopen.so






On 15/05/2012, at 12:51 AM, Brian Foster wrote:

> if you compile libctb with debug it's actually libctbd, not libctb.
> 
> On Mon, May 14, 2012 at 7:53 AM, Chris Mylonas <chris at opencsta.org> wrote:
> Thanks for the reply Giovanni.  I have done the steps on the wiki.
> 
> tl;dr; should i put a prefix when i'm making the dependent mods so they don't go into /usr/local/lib, or this is why ldconfig is run - to tell the system where the libs are.
> 
> All the relevant stuff is below
> 
> Hope you can see something wrong,
> Cheers
> Chris
> 
> e.g.
> here is my bash history
> 
>  1050  cd freeswitch/
>  1051  ls
>  1052  find . -name gsmlib
>  1053  cd src/mod/endpoints/mod_gsmopen/
>  1054  ls
>  1055  cd gsmlib/
>  1056  ls
>  1057  cd gsmlib-1.10-patched-13ubuntu/
>  1058  ls
>  1059  ./configure
>  1060  make
>  1061  make install
>  1062  ldconfig 
>  1063  cd /usr/src/freeswitch/src/mod/endpoints/mod_gsmopen/libctb-0.16/build
>  1064  make DEBUG=1 GPIB=0
>  1065  make DEBUG=1 GPIB=0 install
>  1066  ldconfig
>  1067  cd /usr/src/freeswitch/src/mod/endpoints/mod_gsmopen/
>  1068  make clean
>  1069  make install
> 
> Just to repeat the compilation error
> Creating mod_gsmopen.so...
> /usr/bin/ld: cannot find -lctb-0.16
> collect2: ld returned 1 exit status
> g++ -I../../../../libs/spandsp/src -I../../../..//libs/tiff-3.8.2/libtiff -DGSMOPEN_C_VER=\"44fd0de\" -DMODGSMOPEN_C_VER=\"44fd0de\" -I/usr/src/freeswitch/libs/curl/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE -shared -o .libs/mod_gsmopen.so -shared -Wl,-x .libs/mod_gsmopen.o gsmopen_protocol.o  /usr/src/freeswitch/.libs/libfreeswitch.so -L/usr/src/freeswitch/libs/apr-util/xml/expat/lib /usr/src/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/src/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lpthread -L/usr/src/freeswitch/libs/srtp -L/usr/kerberos/lib -lcrypt -lrt -lssl -lcrypto -ldl -lncurses -L/usr/src/freeswitch/libs/spandsp/src /usr/src/freeswitch/libs/spandsp/src/.libs/libspandsp.a -L/usr/src/freeswitch/libs/tiff-3.8.2/libtiff /usr/src/freeswitch/libs/tiff-3.8.2/libtiff/.libs/libtiff.a -ljpeg -lz -lm -lc -lctb-0.16 -lgsmme   -Wl,--rpath -Wl,/usr/local/freeswitch/lib -Wl,--rpath -Wl,/usr/local/freeswitch/mod
> make[1]: *** [mod_gsmopen.so] Error 1
> make: *** [install] Error 1
> 
> 
> 
> 
> All the gsmlib stuff that is NOT in the freeswitch src dir is here
> 
> [root at space mod_gsmopen]# locate gsmlib | grep -v src
> /usr/local/include/gsmlib
> /usr/local/include/gsmlib/gsm_at.h
> /usr/local/include/gsmlib/gsm_cb.h
> /usr/local/include/gsmlib/gsm_error.h
> /usr/local/include/gsmlib/gsm_event.h
> /usr/local/include/gsmlib/gsm_map_key.h
> /usr/local/include/gsmlib/gsm_me_ta.h
> /usr/local/include/gsmlib/gsm_parser.h
> /usr/local/include/gsmlib/gsm_phonebook.h
> /usr/local/include/gsmlib/gsm_port.h
> /usr/local/include/gsmlib/gsm_sie_me.h
> /usr/local/include/gsmlib/gsm_sms.h
> /usr/local/include/gsmlib/gsm_sms_codec.h
> /usr/local/include/gsmlib/gsm_sms_store.h
> /usr/local/include/gsmlib/gsm_sorted_phonebook.h
> /usr/local/include/gsmlib/gsm_sorted_phonebook_base.h
> /usr/local/include/gsmlib/gsm_sorted_sms_store.h
> /usr/local/include/gsmlib/gsm_unix_serial.h
> /usr/local/include/gsmlib/gsm_util.h
> /usr/local/share/locale/de/LC_MESSAGES/gsmlib.mo
> 
> 
> And the ctb stuff is in /usr/local/lib
> 
> /usr/local/include/ctb-0.16
> /usr/local/include/ctb-0.16/ctb.h
> /usr/local/include/ctb-0.16/fifo.h
> /usr/local/include/ctb-0.16/getopt.h
> /usr/local/include/ctb-0.16/iobase.h
> /usr/local/include/ctb-0.16/linux
> /usr/local/include/ctb-0.16/portscan.h
> /usr/local/include/ctb-0.16/serport.h
> /usr/local/include/ctb-0.16/serportx.h
> /usr/local/include/ctb-0.16/timer.h
> /usr/local/include/ctb-0.16/linux/serport.h
> /usr/local/include/ctb-0.16/linux/timer.h
> /usr/local/lib/libctbd-0.16.a
> /usr/local/lib/libctbd-0.16.so
> 
> 
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)
> GNU Make 3.81
> CentOS release 5.8 (Final)
> 
> 
> 
> 
> On 14/05/2012, at 9:38 PM, Giovanni Maruzzelli wrote:
> 
>> you must first compile and install libctb, as per the wiki page (
>> http://wiki.freeswitch.org/wiki/gsmopen )
>> then, after installation of libctb and gsmlib (as per wiki), be sure
>> to update your dinamic link cache, or compiler will not find then.
>> 
>> Eg: ldconfig
>> 
>> 
>> On 5/14/12, Chris Mylonas <chris at opencsta.org> wrote:
>>> All good GM, no inconvenience, just a minor gotcha  ;)
>>> I am unable to compile mod_gsmopen though.
>>> 
>>> It complains about not being able to find ctb-0.16
>>> The actual filename is libctbd-0.16.so in /usr/local/lib as you can see from
>>> the 2nd lot of stuff.
>>> 
>>> How do I fix this?
>>> 
>>> 
>>> [root at space mod_gsmopen]# make install
>>> Creating mod_gsmopen.so...
>>> /usr/bin/ld: cannot find -lctb-0.16
>>> collect2: ld returned 1 exit status
>>> g++ -I../../../../libs/spandsp/src -I../../../..//libs/tiff-3.8.2/libtiff
>>> -DGSMOPEN_C_VER=\"44fd0de\" -DMODGSMOPEN_C_VER=\"44fd0de\"
>>> -I/usr/src/freeswitch/libs/curl/include -I/usr/src/freeswitch/src/include
>>> -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src
>>> -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g
>>> -O2 -D_GNU_SOURCE -shared -o .libs/mod_gsmopen.so -shared -Wl,-x
>>> .libs/mod_gsmopen.o gsmopen_protocol.o
>>> /usr/src/freeswitch/.libs/libfreeswitch.so
>>> -L/usr/src/freeswitch/libs/apr-util/xml/expat/lib
>>> /usr/src/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a
>>> /usr/src/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lpthread
>>> -L/usr/src/freeswitch/libs/srtp -L/usr/kerberos/lib -lcrypt -lrt -lssl
>>> -lcrypto -ldl -lncurses -L/usr/src/freeswitch/libs/spandsp/src
>>> /usr/src/freeswitch/libs/spandsp/src/.libs/libspandsp.a
>>> -L/usr/src/freeswitch/libs/tiff-3.8.2/libtiff
>>> /usr/src/freeswitch/libs/tiff-3.8.2/libtiff/.libs/libtiff.a -ljpeg -lz -lm
>>> -lc -lctb-0.16 -lgsmme   -Wl,--rpath -Wl,/usr/local/freeswitch/lib
>>> -Wl,--rpath -Wl,/usr/local/freeswitch/mod
>>> make[1]: *** [mod_gsmopen.so] Error 1
>>> make: *** [install] Error 1
>>> 
>>> 
>>> 
>>> [root at space mod_gsmopen]# ldd /usr/local/lib/libctbd-0.16.so
>>> 	linux-gate.so.1 =>  (0x00754000)
>>> 	libpthread.so.0 => /lib/libpthread.so.0 (0x00e83000)
>>> 	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00d28000)
>>> 	libm.so.6 => /lib/libm.so.6 (0x00964000)
>>> 	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00e1f000)
>>> 	libc.so.6 => /lib/libc.so.6 (0x00110000)
>>> 	/lib/ld-linux.so.2 (0x003ea000)
>>> 
>>> 
>>> 
>>> On 14/05/2012, at 6:44 PM, Giovanni Maruzzelli wrote:
>>> 
>>>> yes, it requires libspandsp, maybe the Makefile it's not yet tweaked
>>>> to build the library automatically.
>>>> 
>>>> So, please first build mod_spandsp, then mod_gsmopen.
>>>> 
>>>> We'll fixx the Makefile soon, sorry for the inconvenience.
>>>> 
>>>> -giovanni
>>>> 
>>>> On Mon, May 14, 2012 at 9:30 AM, Chris Mylonas <chris at opencsta.org>
>>>> wrote:
>>>>> Hi FS List,
>>>>> 
>>>>> FYI - as a shortcut to building my freeswitch, I skip spandsp - but it
>>>>> looks
>>>>> like this mod_gsmopen wants it in there.
>>>>> 
>>>>> 
>>>>> [root at space build]# cd
>>>>> /usr/src/freeswitch/src/mod/endpoints/mod_gsmopen/
>>>>> [root at space mod_gsmopen]# make clean
>>>>> [root at space mod_gsmopen]# make install
>>>>> Compiling gsmopen_protocol.cpp...
>>>>> Compiling
>>>>> /usr/src/freeswitch/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp...
>>>>> mkdir .libs
>>>>> Compiling
>>>>> /usr/src/freeswitch/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp
>>>>> ...
>>>>> Creating mod_gsmopen.so...
>>>>> /usr/bin/ld: cannot find -lspandsp
>>>>> collect2: ld returned 1 exit status
>>>>> g++ -I../../../../libs/spandsp/src
>>>>> -I../../../..//libs/tiff-3.8.2/libtiff
>>>>> -DGSMOPEN_C_VER=\"44fd0de\" -DMODGSMOPEN_C_VER=\"44fd0de\"
>>>>> -I/usr/src/freeswitch/libs/curl/include
>>>>> -I/usr/src/freeswitch/src/include
>>>>> -I/usr/src/freeswitch/src/include
>>>>> -I/usr/src/freeswitch/libs/libteletone/src
>>>>> -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1
>>>>> -g
>>>>> -O2 -D_GNU_SOURCE -shared -o .libs/mod_gsmopen.so -shared -Wl,-x
>>>>> .libs/mod_gsmopen.o gsmopen_protocol.o  -lm
>>>>> /usr/src/freeswitch/.libs/libfreeswitch.so
>>>>> -L/usr/src/freeswitch/libs/apr-util/xml/expat/lib
>>>>> /usr/src/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a
>>>>> /usr/src/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lpthread
>>>>> -L/usr/src/freeswitch/libs/srtp -L/usr/kerberos/lib -lcrypt -lrt -lssl
>>>>> -lcrypto -ldl -lz -lncurses -ljpeg
>>>>> -L/usr/src/freeswitch/libs/spandsp/src
>>>>> -lspandsp -lctb-0.16 -lgsmme   -Wl,--rpath -Wl,/usr/local/freeswitch/lib
>>>>> -Wl,--rpath -Wl,/usr/local/freeswitch/mod
>>>>> make[1]: *** [mod_gsmopen.so] Error 1
>>>>> make: *** [install] Error 1
>>>>> 
>>>>> 
>>>>> 
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://wiki.freeswitch.org
>>>>> http://www.cluecon.com
>>>>> 
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Sincerely,
>>>> 
>>>> Giovanni Maruzzelli
>>>> Cell : +39-347-2665618
>>>> 
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>> 
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>> 
>>> 
>> 
>> 
>> -- 
>> Sincerely,
>> 
>> Giovanni Maruzzelli
>> Cell : +39-347-2665618
>> 
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> 
>> 
>> 
>> 
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>> 
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 
> 
> 
> -- 
> Brian D. Foster
> Endigo Computer LLC
> Email: bdfoster at endigotech.com
> Phone: 317-800-7876
> Indianapolis, Indiana, USA
> 
> This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120515/d5269e90/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list