TheBoff Posted August 23, 2009 Report Share Posted August 23, 2009 (edited) I get this error, when building the it OSX./opt/local/include/js/jsotypes.h:77: error: conflicting declaration ‘typedef struct JSUint64 uint64’/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:48: error: ‘uint64’ has a previous declaration as ‘typedef uint64_t uint64’I tried installing SpiderMonkey with MacPorts, but no luck. Edited August 23, 2009 by TheBoff Quote Link to comment Share on other sites More sharing options...
TheBoff Posted August 23, 2009 Author Report Share Posted August 23, 2009 Solved, by wrapping the definition in /opt/local/include/jswith this#ifndef _UINT64 typedef JSUint64 uint64;#define _UINT64#endifIn case anyone else has this problem. Quote Link to comment Share on other sites More sharing options...
janwas Posted August 23, 2009 Report Share Posted August 23, 2009 Ah, that one's a pretty good argument for namespaces (two libraries are defining the same symbol). Your workaround looks good - could you please add that to http://trac.wildfiregames.com/wiki/BuildInstructions? (either in the instructions section for OS X or in known problems at the end - whatever you deem more appropriate) Quote Link to comment Share on other sites More sharing options...
espes Posted August 23, 2009 Report Share Posted August 23, 2009 Wasn't this going to be solved by having a spidermonkey tree compiled with the game? Quote Link to comment Share on other sites More sharing options...
janwas Posted August 24, 2009 Report Share Posted August 24, 2009 Good point. Now that I think about this more:- why that header is being included at all? I thought our version is meant to override the default system header.- the PROTYPES_H comment suggests that the contents of this header should be supplanted by NSPR's definitions. Do you not have that installed? (That might explain why others don't have this error - I thought the OS X build was working after we added the SpiderMonkey tree.) Quote Link to comment Share on other sites More sharing options...
TheBoff Posted September 3, 2009 Author Report Share Posted September 3, 2009 I'm fairly sure I've got NSPR - I had to install it as a dependacy and added it to a PKG_CONFIG variable. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.