Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool problems linking libraries on Xcode 2.5, Leopard



Hi all,

I have two projects, one of which builds libraries (libcrypto, libssl)
which are used by the other project's targets as dependencies.  Both
projects use the $(DEVELOPER_SDK_DIR)/MacOSX10.2.8sdk for ppc builds and
$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk for i386 builds, and have 10.2 as the
deployment target.  They use gcc 3.3 on ppc and gcc 4.0 on i386.  The same
projects built successfully on Xcode 2.4.1, albeit with /Developer/SDKs
instead of $(DEVELOPER_SDK_DIR).

The "master" project now cannot link against the subproject's libraries
when building with the Release configuration.  The library search paths
include the build products locations for the subproject, and it definitely
sees this project's library before any system libraries of the same name
(e.g. LIBRARY_SEARCH_PATHS=../../Security\ Libraries/build/Release
build/Release).  The errors I get are:
/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/libtool: for
architecture ppc object: ../../Security
Libraries/build/Release/libcrypto.dylib malformed object (unknown load
command 9)
/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/libtool: for
architecture: (null) file: -lcrypto is not an object file (not allowed in
a
library)/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/libtool:
for architecture i386 object: ../../Security
Libraries/build/Release/libcrypto.dylib malformed object (unknown load
command 10)

I can perform some simple tasks with otool on that file (../../Security
Libraries/build/Release/libcrypto.dylib) without any reported problems, it
seems that there's some mismatch between what the subproject has provided
and what the linker needs to link against the main project... but what is
that mismatch? :-)

Thanks,
Graham.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.