[webkit-dev] mutiple definitions compile errors

Mark Rowe mrowe at apple.com
Wed Oct 21 14:26:38 PDT 2009


On 2009-10-21, at 14:19, Alexander Cohen wrote:

> I've got another small build problem here. Here's the output:
> 
> -- In file included from /usr/local/include/mach-o/fat.h:46,
>                 from /Users/alex/Documents/Dev/Code/WebKit/WebKit/mac/Plugins/WebBasePluginPackage.mm:46:
> /usr/include/architecture/byte_order.h:146: error: multiple definition of 'enum NXByteOrder'
> /usr/local/include/mach-o/arch.h:35: error: previous definition here
> /usr/include/architecture/byte_order.h:147: error: conflicting declaration 'NX_UnknownByteOrder'
> /usr/local/include/mach-o/arch.h:36: error: 'NX_UnknownByteOrder' has a previous declaration as 'NXByteOrder NX_UnknownByteOrder'
> /usr/include/architecture/byte_order.h:148: error: conflicting declaration 'NX_LittleEndian'
> /usr/local/include/mach-o/arch.h:37: error: 'NX_LittleEndian' has a previous declaration as 'NXByteOrder NX_LittleEndian'
> /usr/include/architecture/byte_order.h:149: error: conflicting declaration 'NX_BigEndian'
> /usr/local/include/mach-o/arch.h:38: error: 'NX_BigEndian' has a previous declaration as 'NXByteOrder NX_BigEndian'
> ** BUILD FAILED **
> --
> 
> I'm not really sure how this type of error could happen. Are there any other hidden gems that i need to know about in order to build WebKit?

The presence of /usr/local/include/mach-o/arch.h is your problem.  I'm not sure what you have installed to add that file there but it's contents are not consistent with the system header files.  Moving it aside will allow your build to progress.

- Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3166 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091021/690232fb/attachment.bin>


More information about the webkit-dev mailing list