manniru / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

Problem building svn mac native code #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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/OS
XStackSDPQuery.mm:356:
error: jump to case label
[INFO]
/Users/toph/src/bluecove-svn2/bluecove-read-only/bluecove/src/main/c/intelbth/OS
XStackSDPQuery.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!

Original issue reported on code.google.com by christop...@gmail.com on 6 Jan 2010 at 7:57

Attachments:

GoogleCodeExporter commented 9 years ago
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.

Original comment by skarzhev...@gmail.com on 8 Jan 2010 at 5:02

GoogleCodeExporter commented 9 years ago
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!

Original comment by christop...@gmail.com on 8 Jan 2010 at 7:36

GoogleCodeExporter commented 9 years ago
Tested myself on Snow Leo, XCode 3.2.1
All compiles fine.
Tests during build are passed.

Original comment by skarzhev...@gmail.com on 31 Mar 2010 at 5:13