From: Laurent Sansonetti Date: 2007-11-12T05:54:39+09:00 Subject: Re: Link errors for trunk on Mac OS X On Nov 11, 2007 8:41 PM, Ryan Davis wrote: > > > On Nov 10, 2007, at 13:43 , Lyle Johnson wrote: > > > Apologies in advance if this is a FAQ, but I'm trying to build the > > trunk (for Ruby 1.9) on Mac OS X and it's failing to link miniruby: > > > > /usr/bin/ld: multiple definitions of symbol _dln_find_exe > > dmydln.o definition of _dln_find_exe in section (__TEXT,__text) > > dln.o definition of _dln_find_exe in section (__TEXT,__text) > > .... > > > > I can see that both "dmydln.o" and "dln.o" are in the list of object > > files passed to to the linker. Looking at the code, I think I see what > > the author was going for and can probably work up a patch, but wanted > > to confirm first that I wasn't just doing something wrong while trying > > to build it. > > I just built trunk from clean yesterday on leopard and it seems to > have worked fine. > > 508 % ./ruby19 -v > ruby 1.9.0 (2007-11-09 patchlevel 0) [i686-darwin9.0.0] > > Just make sure you do a make realclean first. > I also reproduce on my Leopard box, even after a clean. It seems that miniruby links against both mydln.o and dln.o, which contain the same symbols. Maybe the linker is less sensible on other platforms. This seems to have been introduced by a recent Makefile.in change (maybe the prelude stuff?). Laurent