bquanhuang / bluecove

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

Compile errors under XCode 3.2.1 and OS X 10.6.1 #88

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run XCode 3.2.1 (64-bit)
2. Open bluecove-2.1.0/src/main/c/intelbth/bluecove.xcodeproj
3. Build > Clean; Set target to 10.6 | Debug | i386; Build > Build

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

Expect a successful compile with zero errors and a resulting .jnilib file.
Instead, the compile results in 38 compile errors and 280 warnings.
Similar results when I set target to 10.5 | Debug | i386.

What BlueCove version are you using (include build number for SNAPSHOT)?
Bluecove 2.1.0 release.

On what operating system and jvm? Is this 64-bit or 32-bit OS and jvm?
OS X 10.6.1, 64-bit OS.
The JVM isn't involved in these errors, but for the sake of completeness
it's java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

- See attached build log.
Thanks.

Original issue reported on code.google.com by Herb.Jel...@gmail.com on 13 Oct 2009 at 8:52

Attachments:

GoogleCodeExporter commented 8 years ago
I get 38 compile errors and 286 warnings building 2.1.1 build 60 as described 
ablove.

Original comment by m.anthon...@gmail.com on 27 Oct 2009 at 4:58

GoogleCodeExporter commented 8 years ago
I was able to get the code to compile by surrounding the offending cases (in 
the switch statement that starts 
on line 53 of OSXStackTest) with { }. The problem raised by the compiler, 
"crosses initialization of XXX", is that 
"there is a declaration of an object [...] without scope." (See 
http://www.karakas-
online.de/forum/viewtopic.php?t=4194)

Only three such cases exist; gcc generates a lot of duplicate and related 
errors. 

Note that with this change, and once the build settings for XCode have been 
correctly adjusted, the maven 
build at the top level of the project succeeds (including most of the tests). 
The only errors I got were related 
to missing support libraries maven couldn't download.

Original comment by m.anthon...@gmail.com on 27 Oct 2009 at 5:36

GoogleCodeExporter commented 8 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:01

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
I brought over version 3027 from SVN.  I ran mvn and everything built fine - 
thanks!

All of the post-build tests failed, however.  I haven't yet had a chance to 
look into
that or to attempt to use it from my own code.

Original comment by Herb.Jel...@gmail.com on 12 Jan 2010 at 10:37

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
Doesn't work for me with version 3040.  Still doesn't know where the 
com_intel_bluetooth_NativeTestInterfaces.h 
or com_intel_bluetooth_BluetoothStackOSX.h are.

Original comment by Timothy....@gmail.com on 8 Apr 2010 at 12:41

GoogleCodeExporter commented 8 years ago
the com_intel_bluetooth_NativeTestInterfaces.h and
com_intel_bluetooth_BluetoothStackOSX.h  are generated file by javah.
run maven or ant before running native build

Original comment by skarzhev...@gmail.com on 8 Apr 2010 at 2:19