[Magic-dev] Re: further problems building on OS X
R. Timothy Edwards
tim at opencircuitdesign.com
Sat Apr 26 11:05:01 EDT 2008
Dear Andrea,
> I've added "libutils.o" to the exttosim.dylib build command, this way
> the ArgStr symbol is defined into the library, but I got an error for a
> symbol defined into libcmwind, I understand there's something wront at
> the very base.
This would *not* be the proper approach, since the dynamic libraries
should not be duplicating routines of other libraries that will be
present when they are linked; and since libutils will use variables
and routines from other libraries in tclmagic.dylib, you will eventually
have to link to everything at the same time (i.e., a static library)
to get it to work. The solution is giving the right options to the
linker, but I don't know enough about OS-X to know what changes are
needed to the options, or why it doesn't work now.
> I noticed symbol.map contents has a "MAGIC_7.3" section, is that correct?
This is clearly wrong and should be changed. On the other hand, I've
never seen it have any effect on the compilation under Linux.
Regards,
Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: tim at opencircuitdesign.com |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-9364 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
More information about the magic-dev
mailing list