[Freeswitch-users] Freeswitch on OpenBSD
Michael Jerris
mike at jerris.com
Mon Jul 14 10:15:10 PDT 2008
Open bsd does not support static linking? thats the problem... its
not properly linking the modules.. in foact, it should not even need
to link that in here... just to the core
Mike
*** Warning: This system can not link to static lib archive /usr/src/
freeswitch-snapshot/libs/apr/libapr-1.la.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** But as you try to build a module library, libtool will still create
*** a static module, that should work as long as the dlopening
application
*** is linked with the -dlopen flag to resolve symbols at runtime.
On Jul 14, 2008, at 1:11 PM, Mucker wrote:
> Hi Brian,
>
> FreeBSD 7.0 from the CD set.
>
> www# uname -a
> FreeBSD foo.my.domain 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24
> 19:59:52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/
> sys/GENERIC i386
>
> looks like the src is there.
>
> # ls -al /usr/src/freeswitch-snapshot/src/mod/endpoints/mod_sofia
> total 3528
> drwxr-xr-x 5 root wsrc 1024 Jul 14 11:02 .
> drwxr-xr-x 11 root wsrc 512 May 3 06:17 ..
> drwxr-xr-x 2 root wsrc 512 Jul 12 18:47 .deps
> drwxr-xr-x 2 root wsrc 512 Jul 14 11:02 .libs
> drwxr-xr-x 6 root wsrc 512 Jul 12 06:17 .svn
> -rw-r--r-- 1 root wsrc 25929 Jul 12 18:42 Makefile
> -rw-r--r-- 1 root wsrc 2696 Feb 19 06:17 Makefile.am
> -rw-r--r-- 1 root wsrc 25852 Jul 12 13:52 Makefile.in
> -rw-r--r-- 1 root wsrc 5447 Dec 13 2007 mod_sofia.2008.vcproj
> -rw-r--r-- 1 root wsrc 74014 Jul 9 06:17 mod_sofia.c
> -rw-r--r-- 1 root wsrc 22678 Jul 9 06:17 mod_sofia.h
> -rw-r--r-- 1 root wsrc 1936 Jul 14 11:02 mod_sofia.la
> -rw-r--r-- 1 root wsrc 9801 Jul 12 18:47 mod_sofia.log
> -rw-r--r-- 1 root wsrc 5405 Mar 20 05:17 mod_sofia.vcproj
> -rw-r--r-- 1 root wsrc 357 Jul 12 18:46 mod_sofia_la-
> mod_sofia.lo
> -rw-r--r-- 1 root wsrc 222784 Jul 12 18:46 mod_sofia_la-
> mod_sofia.o
> -rw-r--r-- 1 root wsrc 345 Jul 12 18:46 mod_sofia_la-sofia.lo
> -rw-r--r-- 1 root wsrc 291184 Jul 12 18:46 mod_sofia_la-sofia.o
> -rw-r--r-- 1 root wsrc 360 Jul 12 18:46 mod_sofia_la-
> sofia_glue.lo
> -rw-r--r-- 1 root wsrc 245536 Jul 12 18:46 mod_sofia_la-
> sofia_glue.o
> -rw-r--r-- 1 root wsrc 372 Jul 12 18:46 mod_sofia_la-
> sofia_presence.lo
> -rw-r--r-- 1 root wsrc 212700 Jul 12 18:46 mod_sofia_la-
> sofia_presence.o
> -rw-r--r-- 1 root wsrc 357 Jul 12 18:47 mod_sofia_la-
> sofia_reg.lo
> -rw-r--r-- 1 root wsrc 202980 Jul 12 18:47 mod_sofia_la-
> sofia_reg.o
> -rw-r--r-- 1 root wsrc 127116 Jul 9 06:17 sofia.c
> -rw-r--r-- 1 root wsrc 95362 Jul 9 06:17 sofia_glue.c
> -rw-r--r-- 1 root wsrc 53080 Jul 4 06:17 sofia_presence.c
> -rw-r--r-- 1 root wsrc 46626 Jul 10 06:17 sofia_reg.c
>
> # gmake
> gmake `test -n "" || echo -s` all-am
> Creating mod_sofia_la-mod_sofia.lo
> mkdir .libs
> Compiling mod_sofia.c ...
> Creating mod_sofia_la-sofia.lo
> Compiling sofia.c ...
> Creating mod_sofia_la-sofia_glue.lo
> Compiling sofia_glue.c ...
> Creating mod_sofia_la-sofia_presence.lo
> Compiling sofia_presence.c ...
> Creating mod_sofia_la-sofia_reg.lo
> Compiling sofia_reg.c ...
> Creating mod_sofia.la
> # gmake install
> gmake `test -n "" || echo -s` install-am
> echo ;/bin/sh /usr/src/freeswitch-snapshot/quiet_libtool --
> mode=install /usr/bin/install -c 'mod_sofia.la' '/usr/local/
> freeswitch/mod/mod_sofia.la'
>
> quiet_libtool: install: warning: relinking `mod_sofia.la'
> (cd /usr/src/freeswitch-snapshot/src/mod/endpoints/mod_sofia; /bin/
> sh /usr/src/freeswitch-snapshot/quiet_libtool --tag=CC --
> mode=relink gcc -I/usr/src/freeswitch-snapshot/src/include -I/usr/
> src/freeswitch-snapshot/libs/libteletone/src -fPIC -Werror -g -ggdb -
> I/usr/local/include -g -O2 -Wall -std=c99 -pedantic -o mod_sofia.la -
> rpath /usr/local/freeswitch/mod -avoid-version -module -no-undefined
> mod_sofia_la-mod_sofia.lo mod_sofia_la-sofia.lo mod_sofia_la-
> sofia_glue.lo mod_sofia_la-sofia_presence.lo mod_sofia_la-
> sofia_reg.lo /usr/src/freeswitch-snapshot/libfreeswitch.la /usr/src/
> freeswitch-snapshot/libs/sofia-sip/libsofia-sip-ua/libsofia-sip-
> ua.la -lncurses )
>
> *** Warning: This system can not link to static lib archive /usr/src/
> freeswitch-snapshot/libs/apr/libapr-1.la.
> *** I have the capability to make that library automatically link in
> when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
> *** But as you try to build a module library, libtool will still
> create
> *** a static module, that should work as long as the dlopening
> application
> *** is linked with the -dlopen flag to resolve symbols at runtime.
> rm -fr .libs/mod_sofia.lax
> mkdir .libs/mod_sofia.lax
> rm -fr .libs/mod_sofia.lax/libsofia-sip-ua.a
> mkdir .libs/mod_sofia.lax/libsofia-sip-ua.a
>
> Oh.....
>
>
>
> 2008/7/14 Brian West <brian at freeswitch.org>:
> Can you tell me which version of FreeBSD you installed on? Someone
> on IRC is reporting that the configure fails on libsndfile.
>
> btw looks like the .so didn't install... can you see if the .so is
> in the src tree in the src/mod/endpoings/mod_sofia/.libs/
> mod_sofia.so? and manually install it? If thats the case then we
> need to find out why it didn't install.
>
> /b
>
> On Jul 14, 2008, at 11:38 AM, Mucker wrote:
>
>> Hi All,
>>
>> Anybody else trying to get Freeswitch up and running on OpenBSD?
>>
>> Following the install instructions for FreeBSD "seems" to work.
>>
>> But, when I start freeswitch I see a critical error:
>>
>> 2008-07-14 16:56:02 [CRIT] switch_loadable_module.c:751
>> switch_loadable_module_load_file() Error Loading module /usr/local/
>> freeswitch/mod/mod_sofia.so
>> **File not found**
>>
>>
>> # ls -al /usr/local/freeswitch/mod/ | grep sofia
>> -rw-r--r-- 1 root wheel 7907294 Jul 14 11:02 mod_sofia.a
>> -rw-r--r-- 1 root wheel 1142 Jul 14 11:02 mod_sofia.la
>> #
>>
>>
>> ____
>
> Brian West
> sip:brian at freeswitch.org
>
>
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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/20080714/c379e667/attachment-0002.html
More information about the FreeSWITCH-users
mailing list