TheBoff Posted August 23, 2009 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 Link to comment Share on other sites More sharing options...
TheBoff Posted August 23, 2009 Author 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. Link to comment Share on other sites More sharing options...
janwas Posted August 23, 2009 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) Link to comment Share on other sites More sharing options...
espes Posted August 23, 2009 Share Posted August 23, 2009 Wasn't this going to be solved by having a spidermonkey tree compiled with the game? Link to comment Share on other sites More sharing options...
janwas Posted August 24, 2009 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.) Link to comment Share on other sites More sharing options...
TheBoff Posted September 3, 2009 Author 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now