[jadmin] building AIM-transport on Mac OS X 10.4.2
Billy Gray
billy.zophar at gmail.com
Thu Jul 21 21:40:09 CDT 2005
Michael,
GCC on Mac OS X does not support the -shared option, which is why you
see this line in the make output:
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option `-shared'
Usually, on Linux, gcc passed the -shared flag on to the linker ld,
which then produces a .so shared library. On Mac OS X, you would
instead use the Mac OS X libtool binary (not to be confused with the
GNU libtool) to produce a dynamic shared library (.dylib).
This usually requires some hacking of the Makefile, so you're going to
want to probably consult with whoever penned the Aim-Transport.
Somewhere in the Makefile, there will be a target that attempts to
call gcc with the -shared flag to produce a .so file, and you'll want
to change that line to pass compiled libraries (.o files) to libtool,
for example:
libtool -dynamic $(LIBOBJS) -o $(LIBNAME_DYLIB)
The relevant documentation for creating dynamic shared libraries in
Mac OS X using libtool can be found in the developer tools
documentation on your mac (/Developer/Documentation) under 'Mac OS X
Runtime Architecture'
(file:///Developer/Documentation/DeveloperTools/Conceptual/MachORuntime/index.html).
I hope that helps you, please let us know how you make out! You may
also be able to get some decent help on the internal Mac OS X Server
list on Apple's website.
Billy
On 7/21/05, Michael Bartosh <mbartosh at 4am-media.com> wrote:
> I'm building AIM-Transport (http://aim-transport.jabberstudio.org/)
> on Mac OS X 10.4.2. I'm assuming that I'm running into some
> eccentricity in Apple's linker.. there is a tremendous number of
> undefined symbols. configure seems to go OK. make gets a good ways
> then dies here as indicated below.
>
> jabberd builds properly and runs. I'm using jabberd 1.4.3.1 to
> reflect as closely as feasible Apple's distro. Ideally I'd like to
> get this running on Mac OS X Server's jabberd.
>
> Anyway, if anyone has a clue, I'd love to hear it.
>
> Thanks:
>
> gcc -DAIM_BUILDDATE=\"20050721\" -DAIM_BUILDTIME=\"174948\" -g -o
> aimtrans.so -fPIC -shared admin.o adverts.o auth.o bos.o buddies.o
> buddylist.o charset.o chat.o chatnav.o conn.o ft.o icq.o im.o info.o
> init.o invite.o iq.o iq_cb.o jabber_auth.o md5.o messages.o meta.o
> misc.o msgcookie.o msgconv.o parser.o popups.o pres.o register.o
> rxhandlers.o rxqueue.o s10n.o search.o service.o sessions.o snac.o
> ssi.o stats.o tlv.o translate.o txqueue.o util.o utils.o utf8.o
> powerpc-apple-darwin8-gcc-4.0.0: unrecognized option `-shared'
> /usr/bin/ld: Undefined symbols:
> _main
> __pool_new
> _ap_snprintf
> _debug_flag
> _debug_log
> _deliver
> _dpacket_new
> _jid_full
> _jid_new
> _jid_set
> _jid_user
> _jpacket_new
> _jutil_presnew
> _jutil_timestamp
> _pmalloco
> _pool_free
> _pth_mutex_acquire
> _pth_mutex_release
> _register_beat
> _spool_new
> _spool_print
> _spooler
> _spools
> _xhash_get
> _xhash_put
> _xhash_zap
> _xmlnode2str
> _xmlnode_dup
> _xmlnode_free
> _xmlnode_get_attrib
> _xmlnode_get_firstchild
> _xmlnode_get_nextsibling
> _xmlnode_hide_attrib
> _xmlnode_insert_cdata
> _xmlnode_insert_tag
> _xmlnode_new_tag
> _xmlnode_new_tag_pool
> _xmlnode_pool
> _xmlnode_put_attrib
> _zonestr
> _libiconv
> _log_notice
> _pmalloc
> _jpacket_subtype
> _libiconv_close
> _libiconv_open
> _log_alert
> _mtq_send
> _pool_cleanup
> _pstrdup
> _pth_mutex_init
> _register_phandler
> _xdb_cache
> _xdb_get
> _xhash_free
> _xhash_new
> _xhash_walk
> _xmlnode_get_tag
> _xmlnode_get_tag_data
> _xmlnode_insert_node
> _jutil_error
> _jutil_iqresult
> _log_warn
> _pth_wait
> _j_strcmp
> _ppdb_insert
> _ppdb_primary
> _jutil_regkey
> _jutil_tofrom
> _xmlnode_get_data
> _xmlnode_hide
> _ppdb_free
> _pth_attr_new
> _pth_event
> _pth_event_free
> _pth_event_occurred
> _pth_exit
> _pth_msgport_create
> _pth_msgport_destroy
> _pth_msgport_get
> _pth_select_ev
> _pth_spawn
> _pth_nap
> _pth_time
> _pth_msgport_put
> _shahash
> _xdb_set
> _xmlnode_wrap
> collect2: ld returned 1 exit status
> make[1]: *** [aimtrans.so] Error 1
> make: *** [all-recursive] Error 1
> _______________________________________________
> jadmin mailing list
> jadmin at jabber.org
> http://mail.jabber.org/mailman/listinfo/jadmin
> FAQ: http://www.jabber.org/about/jadminfaq.shtml
> _______________________________________________
>
More information about the JAdmin
mailing list