Summary:ASTERISK-17612: [patch] Xcode4 doesn't support weak_import
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2011-03-28 18:29:01Date Closed:2011-09-19 15:33:38
Versions:Frequency of
Environment:Attachments:( 0) 20110328__issue19031.diff.txt
Description:Within our system of ensuring that optional components don't need to be loaded, we use the weak_import attribute in Mac OS X.  Starting in XCode 4, this attribute is no longer supported.  Instead, we will have to use the 'weak' attribute.
Comments:By: Terry Wilson (twilson) 2011-08-08 14:35:42.292-0500

This patch works for me. I'd give it a "Ship It". I would trim the extra changes from autoconfig.h.in, but that is just me. All of the openssl functions are deprecated in 10.7 as well. And the RONLY is deprecated in the snmp library. And doing 'make install' fails because of some change to install's arguments. Getting Asterisk compiled on Lion is a pain.

By: Olle Johansson (oej) 2011-09-19 14:26:02.094-0500

Good work. This removed all the weak link stuff on my system. Ship it.

Remaining work is Makefile and SSL support in ssl.c, tcptls.c and res_crypto.c

By: Olle Johansson (oej) 2011-09-19 14:48:35.515-0500

Just noticed:

[LD] abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o format.o format_cap.o format_pref.o frame.o framehook.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o message.o netsock.o netsock2.o pbx.o plc.o poll.o privacy.o rtp_engine.o say.o sched.o security_events.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadstorage.o timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a  -> asterisk
ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture x86_64

By: Tilghman Lesher (tilghman) 2011-09-19 15:33:38.208-0500

Fixed in revision 336733.