Export to GitHub

bluecove - issue #95

Problem building svn mac native code


Posted on Jan 6, 2010 by Helpful Kangaroo

What steps will reproduce the problem? 1. I was building on a Snow Leopard Mac, but this may occur in other configurations as well. 2. I just ran mvn.

What is the expected output? What do you see instead?

I see multiple errors of this kind:

[INFO] /Users/toph/src/bluecove-svn2/bluecove-read-only/bluecove/src/main/c/intelbth/OSXStackSDPQuery.mm:356: error: jump to case label [INFO] /Users/toph/src/bluecove-svn2/bluecove-read-only/bluecove/src/main/c/intelbth/OSXStackSDPQuery.mm:348: error: crosses initialization of 'const __CFNumber* bNumber'

This appears to be this problem: http://docs.freebsd.org/info/g++FAQ/g++FAQ.info.jump_crosses_initialization.html

I've attached a patch to enclose the relevant case bodies in new scopes that fixes the problem on my machine.

What BlueCove version are you using (include build number for SNAPSHOT)? On what operating system and jvm? Is this 64-bit or 32-bit OS and jvm?

This is r3026 from svn. Mac OS X 10.6.2 (Snow Leopard). It's a 64 bit machine and the failure happens in the native build process.

Please provide any additional information below. Please use "Attach a file" when uploading stack traces or other big files!

Attachments

Comment #1

Posted on Jan 8, 2010 by Massive Horse

The changes has been applied to the SVN trunk. The build should work now. I have no Snow Leo installed so I can't test this yet. Please verify.

Comment #2

Posted on Jan 8, 2010 by Helpful Kangaroo

Just tested a fresh svn checkout. It works! (Although I also needed the x86_64 arch addition referenced in bug 35 to complete the tests on my machine). Thanks for the quick response, and sorry I filed a duplicate bug--I completely overlooked bug 88.

Thanks again!

Comment #3

Posted on Mar 31, 2010 by Massive Horse

Tested myself on Snow Leo, XCode 3.2.1 All compiles fine. Tests during build are passed.

Status: Fixed