andreivasiliu2211 / bluecove

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

macosx snow-leopard gcc-4.2 mvn install failures due to C++ Dialect #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. follow instructions as root
2. fix permissions on shell scripts, if any needed
3. mvn install

What is the output? What do you see?
[INFO] 
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm: In 
function 'void -[OSXStackDiscovery 
deviceInquiryUpdatingDeviceNamesStarted:devicesRemaining:](OSXStackDiscovery*, 
objc_selector*, IOBluetoothDeviceInquiry*, int)':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm:197:

warning: conflicting types for '-
(void)deviceInquiryUpdatingDeviceNamesStarted:(IOBluetoothDeviceInquiry 
*)sender 
devicesRemaining:(int)devicesRemaining'
[INFO] 
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOBluetooth.framework/H
eader
s/objc/IOBluetoothDeviceInquiry.h:234: warning: previous declaration of '-
(void)deviceInquiryUpdatingDeviceNamesStarted:(IOBluetoothDeviceInquiry 
*)sender 
devicesRemaining:(uint32_t)devicesRemaining'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm: In 
function 'void -[OSXStackDiscovery 
deviceInquiryDeviceNameUpdated:device:devicesRemaining:](OSXStackDiscovery*, 
objc_selector*, 
IOBluetoothDeviceInquiry*, IOBluetoothDevice*, int)':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm:204:

warning: conflicting types for '-
(void)deviceInquiryDeviceNameUpdated:(IOBluetoothDeviceInquiry *)sender 
device:(IOBluetoothDevice *)device devicesRemaining:(int)devicesRemaining'
[INFO] 
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOBluetooth.framework/H
eader
s/objc/IOBluetoothDeviceInquiry.h:244: warning: previous declaration of '-
(void)deviceInquiryDeviceNameUpdated:(IOBluetoothDeviceInquiry *)sender 
device:(IOBluetoothDevice *)device devicesRemaining:(uint32_t)devicesRemaining'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm: In 
function 'void -[OSXStackDiscovery 
deviceInquiryComplete:error:aborted:](OSXStackDiscovery*, 
objc_selector*, IOBluetoothDeviceInquiry*, IOReturn, bool)':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm:219:

warning: conflicting types for 
'-(void)deviceInquiryComplete:(IOBluetoothDeviceInquiry *)sender 
error:(IOReturn)error aborted:(bool)aborted'
[INFO] 
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOBluetooth.framework/H
eader
s/objc/IOBluetoothDeviceInquiry.h:256: warning: previous declaration of '-
(void)deviceInquiryComplete:(IOBluetoothDeviceInquiry *)sender 
error:(IOReturn)error 
aborted:(BOOL)aborted'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm: In 
constructor 'DeviceInquiryStart::DeviceInquiryStart(int, int)':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm:276:

warning: deprecated conversion from string constant to 'char*'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm: In 
constructor 'DeviceInquiryRelease::DeviceInquiryRelease()':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm:345:

warning: deprecated conversion from string constant to 'char*'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm: In 
constructor 'GetRemoteDeviceFriendlyName::GetRemoteDeviceFriendlyName()':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackDiscovery.mm:472:

warning: deprecated conversion from string constant to 'char*'
[INFO] CompileC build/bluecove.build/Release/bluecove.build/Objects-
normal/i386/OSXStackSDPQuery.o OSXStackSDPQuery.mm normal i386 objective-c++ 
com.apple.compilers.gcc.4_2
[INFO]     cd /Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth
[INFO]     setenv LANG en_US.US-ASCII
[INFO]     /Developer/usr/bin/gcc-4.2 -x objective-c++ -arch i386 
-fmessage-length=0 -pipe 
-Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type 
-Wunused-variable -
isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility-inlines-hidden 
-mmacosx-version-
min=10.5 -I/Users/jim/incoming/bluecove-
2.1.0/src/main/c/intelbth/build/bluecove.build/Release/bluecove.build/bluecove.h
map -
F/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/build/Release -
I/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/build/Release/include -
I/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Heade
rs -
I/Users/jim/incoming/bluecove-
2.1.0/src/main/c/intelbth/build/bluecove.build/Release/bluecove.build/DerivedSou
rces/i386 -
I/Users/jim/incoming/bluecove-
2.1.0/src/main/c/intelbth/build/bluecove.build/Release/bluecove.build/DerivedSou
rces -c 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm -o 
/Users/jim/incoming/bluecove-
2.1.0/src/main/c/intelbth/build/bluecove.build/Release/bluecove.build/Objects-
normal/i386/OSXStackSDPQuery.o
[INFO] 
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm: In 
constructor 'StackSDPQueryStart::StackSDPQueryStart()':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:55: 
warning: deprecated conversion from string constant to 'char*'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm: In 
constructor 'GetAttributeDataElement::GetAttributeDataElement()':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:191: 
warning: deprecated conversion from string constant to 'char*'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm: In 
member function 'bool 
SDPOutputStream::writeElement(OpaqueIOBluetoothObjectRef*)':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:356: 
error: jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:348: 
error:   crosses initialization of 'const __CFNumber* bNumber'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:358: 
error: jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:348: 
error:   crosses initialization of 'const __CFNumber* bNumber'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:388: 
error: jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:348: 
error:   crosses initialization of 'const __CFNumber* bNumber'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:415: 
error: jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:348: 
error:   crosses initialization of 'const __CFNumber* bNumber'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:417: 
error: jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:348: 
error:   crosses initialization of 'const __CFNumber* bNumber'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:443: 
error: jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:348: 
error:   crosses initialization of 'const __CFNumber* bNumber'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:446: 
error: jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackSDPQuery.mm:348: 
error:   crosses initialization of 'const __CFNumber* bNumber'
[INFO] CompileC build/bluecove.build/Release/bluecove.build/Objects-
normal/i386/OSXStackTest.o OSXStackTest.mm normal i386 objective-c++ 
com.apple.compilers.gcc.4_2
[INFO]     cd /Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth
[INFO]     setenv LANG en_US.US-ASCII
[INFO]     /Developer/usr/bin/gcc-4.2 -x objective-c++ -arch i386 
-fmessage-length=0 -pipe 
-Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type 
-Wunused-variable -
isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility-inlines-hidden 
-mmacosx-version-
min=10.5 -I/Users/jim/incoming/bluecove-
2.1.0/src/main/c/intelbth/build/bluecove.build/Release/bluecove.build/bluecove.h
map -
F/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/build/Release -
I/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/build/Release/include -
I/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Heade
rs -
I/Users/jim/incoming/bluecove-
2.1.0/src/main/c/intelbth/build/bluecove.build/Release/bluecove.build/DerivedSou
rces/i386 -
I/Users/jim/incoming/bluecove-
2.1.0/src/main/c/intelbth/build/bluecove.build/Release/bluecove.build/DerivedSou
rces -c 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackTest.mm -o 
/Users/jim/incoming/bluecove-
2.1.0/src/main/c/intelbth/build/bluecove.build/Release/bluecove.build/Objects-
normal/i386/OSXStackTest.o
[INFO] 
[INFO] /Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackTest.mm: 
In function 
'OpaqueIOBluetoothObjectRef* createTestDataElementSimple(jint, jlong, jbyte*, 
int)':
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackTest.mm:147: 
error: 
jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackTest.mm:145: 
error:   
crosses initialization of 'IOBluetoothSDPDataElement* ds'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackTest.mm:163: 
error: 
jump to case label
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackTest.mm:151: 
error:   
crosses initialization of 'NSString* newStrValue'
[INFO] 
/Users/jim/incoming/bluecove-2.1.0/src/main/c/intelbth/OSXStackTest.mm:145: 
error:   
crosses initialization of 'IOBluetoothSDPDataElement* ds'

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?

: java -version
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)

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

this should be an easy one.

Original issue reported on code.google.com by northrup...@gmail.com on 28 Sep 2009 at 5:31

GoogleCodeExporter commented 9 years ago
Objective-C  and Xcode used to create application on Mac

Original comment by skarzhev...@gmail.com on 28 Sep 2009 at 6:03

GoogleCodeExporter commented 9 years ago
I don't understand what's meant by comment 1. I ran maven in the top level of 
2.1.1 build 60 and got similar 
errors. I also tried to run the build script in bluecove directly and got the 
same errors.

So what exactly are we supposed to do to work around this problem? And why 
doesn't the maven build process 
do the right thing on Snow Leopard?

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

GoogleCodeExporter commented 9 years ago
You need to have Xcode installed on Mac  to compile bluecove.
I have used use Xcode 3.0.
I have used xcodebuild command to build the project.
I don't know if gcc is later used by Xcode or not.
.mm files are Objective-C and contain some C++ code as well.

Original comment by skarzhev...@gmail.com on 27 Oct 2009 at 4:59