Bug 17816 - libWebCoreSQLite3.a is 2-architecture Universal Binary (not 4-architecture)
Summary: libWebCoreSQLite3.a is 2-architecture Universal Binary (not 4-architecture)
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Mark Rowe (bdash)
: 17951 (view as bug list)
Depends on:
Reported: 2008-03-12 20:56 PDT by Brent Fulgham
Modified: 2008-03-19 13:29 PDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2008-03-12 20:56:05 PDT
When attempting to build a 64-bit WebKit, I discovered that the copy of libWebCoreSQLite3.a installed with 'update-webkit' is missing 64-bit architectures:

    cd /Users/brent/Projects/WebKit/WebCore
    /Developer/usr/bin/g++-4.0 -arch x86_64 -dynamiclib -L/Users/brent/Projects/WebKit/WebKitBuild/Release -F/Users/brent/Projects/WebKit/WebKitBuild/Release -F/System/Library/Frameworks/Carbon.framework/Frameworks -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks -filelist /Users/brent/Projects/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/WebCore.LinkFileList -Wl,--no-demangle -exported_symbols_list /Users/brent/Projects/WebKit/WebKitBuild/Release/DerivedSources/WebCore/WebCore.LP64.exp -install_name /Users/brent/Projects/WebKit/WebKitBuild/Release/WebCore.framework/Versions/A/WebCore -mmacosx-version-min=10.5 -Wl,-dead_strip -lWebCoreSQLite3 -lobjc -sub_library libobjc -umbrella WebKit -framework ApplicationServices -framework Carbon -framework Cocoa -framework JavaScriptCore -framework QuartzCore -licucore -lobjc -lxml2 -Wl,-single_module -compatibility_version 1 -current_version 526.1 -o /Users/brent/Projects/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/WebCore
ld warning: in /Users/brent/Projects/WebKit/WebKitBuild/Release/libWebCoreSQLite3.a, missing required architecture x86_64 in file

This can be easily verified with the 'file' command:

Link:WebKitLibraries brent$ file libWebCoreSQLite3.a 
libWebCoreSQLite3.a: Mach-O universal binary with 2 architectures
libWebCoreSQLite3.a (for architecture ppc):	current ar archive random library
libWebCoreSQLite3.a (for architecture i386):	current ar archive random library
Link:WebKitLibraries brent$ 

Request that link library be updated with full four-way universal binary to allow 64-bit builds on all architectures.
Comment 1 Mark Rowe (bdash) 2008-03-19 10:09:28 PDT
*** Bug 17951 has been marked as a duplicate of this bug. ***
Comment 2 Mark Rowe (bdash) 2008-03-19 13:29:01 PDT
Fixed in r31158.