<div>Yes,<br></div><div>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" </div>
<div><br></div><div>For instance, the symbol _switch_api_execute or _switch_log_printf are given as undefined but </div><div><br></div><div> otool -v -S -a libfreeswitch.a | grep _switch_api_execute<br>libfreeswitch_la-switch_loadable_module.o _switch_api_execute<br>
</div><div><br></div><div> otool -v -S -a libfreeswitch.a | grep _switch_log_printf<br>libfreeswitch_la-switch_log.o _switch_log_printf<br></div><div><br></div><div>I also got this warning from the linker:</div><div>ld warning: in /freeswitch/.libs/libfreeswitch.a, file is not of required architecture</div>
<div>but</div><div>lipo -info libfreeswitch.a <br>input file libfreeswitch.a is not a fat file<br>Non-fat file: libfreeswitch.a is architecture: i386<br></div><div><br></div><div>as expected </div><div><br></div><div>/r</div>
<div><br></div><div class="gmail_quote">On Wed, Jun 9, 2010 at 6:18 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You would use glibtool to accomplish this and us the .la file as far as I know.<br>
<font color="#888888"><br>
/b<br>
</font><div><div class="h5"><br>
On Jun 9, 2010, at 4:08 PM, Paulo Vicentini wrote:<br>
<br>
> Hi,<br>
> 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.<br>
> Have you faced such issue on Mac? Is -static linking with libfreeswitch.a a problem?<br>
><br>
> Thanks<br>
<br>
<br>
</div></div><div><div class="h5">_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>