Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-11 Thread Paulo Vicentini
 I think those symbols at http://pastebin.freeswitch.org/13169 should not be
undefined within libfreeswitch.a itself

/br



On Thu, Jun 10, 2010 at 12:10 AM, Brian West  wrote:

> It could also be some -framework lines missing in the linking.
>
> /b
>
> On Jun 9, 2010, at 9:15 PM, Anthony Minessale wrote:
>
> It may not work static due to external dependancies
>
> On Jun 9, 2010 7:25 PM, "Paulo Vicentini" 
> wrote:
>
> I use apple tool chain, I don`t like to use fink or darwin ports...
> /r
>
>
>
>
> ___
> FreeSWITCH-dev mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Brian West
It could also be some -framework lines missing in the linking.

/b

On Jun 9, 2010, at 9:15 PM, Anthony Minessale wrote:

>> It may not work static due to external dependancies
>> 
>> 
>>> On Jun 9, 2010 7:25 PM, "Paulo Vicentini"  wrote:
>>> 
>>> I use apple tool chain, I don`t like to use fink or darwin ports...
>>> /r
>> 

___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Anthony Minessale
It may not work static due to external dependancies

On Jun 9, 2010 7:25 PM, "Paulo Vicentini"  wrote:

I use apple tool chain, I don`t like to use fink or darwin ports...
/r



On Wed, Jun 9, 2010 at 9:06 PM, Brian West  wrote:
>
> Are you using the def...

___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Paulo Vicentini
I use apple tool chain, I don`t like to use fink or darwin ports...
/r

On Wed, Jun 9, 2010 at 9:06 PM, Brian West  wrote:

> Are you using the default apple tool chain or have you installed Fink and
> or Darwin ports?
>
> /b
>
> On Jun 9, 2010, at 6:57 PM, Paulo Vicentini wrote:
>
> > No Snow,
> > I am using Leopard (32)
> >
> > /r
>
>
> ___
> FreeSWITCH-dev mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Brian West
Are you using the default apple tool chain or have you installed Fink and or 
Darwin ports?

/b

On Jun 9, 2010, at 6:57 PM, Paulo Vicentini wrote:

> No Snow,
> I am using Leopard (32)
> 
> /r


___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Paulo Vicentini
No Snow,
I am using Leopard (32)

/r

On Wed, Jun 9, 2010 at 8:36 PM, Brian West  wrote:

> I'm going to guess you're on Snom Leopard?
>
> /b
>
> On Jun 9, 2010, at 6:29 PM, Paulo Vicentini wrote:
>
> > Yes,
> > I am using autotools.. I run ./configure --disable shared or even
> modifying Makefile.am... in all these ways the static library is built
> (libfreeswitch.a)  but when linking with freeswitch (bin) I got "undefined
> symbols"
> >
> > For instance, the symbol _switch_api_execute or _switch_log_printf are
> given as undefined  but
> >
> > otool -v -S -a libfreeswitch.a | grep _switch_api_execute
> > libfreeswitch_la-switch_loadable_module.o _switch_api_execute
> >
> > otool -v -S -a libfreeswitch.a | grep _switch_log_printf
> > libfreeswitch_la-switch_log.o _switch_log_printf
> >
> > I also got this warning from the linker:
> > ld warning: in /freeswitch/.libs/libfreeswitch.a, file is not of required
> architecture
> > but
> > lipo -info libfreeswitch.a
> > input file libfreeswitch.a is not a fat file
> > Non-fat file: libfreeswitch.a is architecture: i386
> >
> > as expected
> >
> > /r
>
>
> ___
> FreeSWITCH-dev mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Brian West
I'm going to guess you're on Snom Leopard?

/b

On Jun 9, 2010, at 6:29 PM, Paulo Vicentini wrote:

> Yes,
> I am using autotools.. I run ./configure --disable shared or even modifying 
> Makefile.am... in all these ways the static library is built 
> (libfreeswitch.a)  but when linking with freeswitch (bin) I got "undefined 
> symbols" 
> 
> For instance, the symbol _switch_api_execute or _switch_log_printf are given 
> as undefined  but 
> 
> otool -v -S -a libfreeswitch.a | grep _switch_api_execute
> libfreeswitch_la-switch_loadable_module.o _switch_api_execute
> 
> otool -v -S -a libfreeswitch.a | grep _switch_log_printf
> libfreeswitch_la-switch_log.o _switch_log_printf
> 
> I also got this warning from the linker:
> ld warning: in /freeswitch/.libs/libfreeswitch.a, file is not of required 
> architecture
> but
> lipo -info libfreeswitch.a 
> input file libfreeswitch.a is not a fat file
> Non-fat file: libfreeswitch.a is architecture: i386
> 
> as expected 
> 
> /r


___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Paulo Vicentini
Yes,
I am using autotools.. I run ./configure --disable shared or even modifying
Makefile.am... in all these ways the static library is built
(libfreeswitch.a)  but when linking with freeswitch (bin) I got "undefined
symbols"

For instance, the symbol _switch_api_execute or _switch_log_printf are given
as undefined  but

otool -v -S -a libfreeswitch.a | grep _switch_api_execute
libfreeswitch_la-switch_loadable_module.o _switch_api_execute

otool -v -S -a libfreeswitch.a | grep _switch_log_printf
libfreeswitch_la-switch_log.o _switch_log_printf

I also got this warning from the linker:
ld warning: in /freeswitch/.libs/libfreeswitch.a, file is not of required
architecture
but
lipo -info libfreeswitch.a
input file libfreeswitch.a is not a fat file
Non-fat file: libfreeswitch.a is architecture: i386

as expected

/r

On Wed, Jun 9, 2010 at 6:18 PM, Brian West  wrote:

> You would use glibtool to accomplish this and us the .la file as far as I
> know.
>
> /b
>
> On Jun 9, 2010, at 4:08 PM, Paulo Vicentini wrote:
>
> > Hi,
> > I am trying to link my application against libfreeswitch.a (statically)
>  on mac os x but I am getting undefined symbols  (it happens even with
> freeswitch ). If I use libfreeswitch  as a shared lib..it does work.
> > Have you faced such issue on Mac? Is -static linking with libfreeswitch.a
> a problem?
> >
> > Thanks
>
>
> ___
> FreeSWITCH-dev mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


Re: [Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Brian West
You would use glibtool to accomplish this and us the .la file as far as I know.

/b

On Jun 9, 2010, at 4:08 PM, Paulo Vicentini wrote:

> Hi,
> I am trying to link my application against libfreeswitch.a (statically)  on 
> mac os x but I am getting undefined symbols  (it happens even with freeswitch 
> ). If I use libfreeswitch  as a shared lib..it does work.
> Have you faced such issue on Mac? Is -static linking with libfreeswitch.a a 
> problem?
> 
> Thanks


___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


[Freeswitch-dev] static libfreeswitch.a OSX

2010-06-09 Thread Paulo Vicentini
Hi,
I am trying to link my application against libfreeswitch.a (statically)  on
mac os x but I am getting undefined symbols  (it happens even with
freeswitch ). If I use libfreeswitch  as a shared lib..it does work.
Have you faced such issue on Mac? Is -static linking with libfreeswitch.a a
problem?

Thanks
___
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org