eebenson / haggle

Automatically exported from code.google.com/p/haggle
Apache License 2.0
0 stars 0 forks source link

Compilation error: Utility.cpp #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Error when compiling Haggle for Android. Issue with data types that are passed 
to the function getLocalInterfaceList(InterfaceRefList&, bool)

What steps will reproduce the problem?
Normal compilation using the "mm" command.

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

------------------------------------------------------------
target thumb C++: haggle <= external/haggle/src/hagglekernel/Utility.cpp
external/haggle/src/hagglekernel/Utility.cpp: In function 'int 
getLocalInterfaceList(InterfaceRefList&, bool)':
external/haggle/src/hagglekernel/Utility.cpp:560: error: no matching function 
for call to 'IPv4Address::IPv4Address(in_addr_t&)'
external/haggle/src/hagglekernel/Address.h:275: note: candidates are: 
IPv4Address::IPv4Address(const IPv4Address&)
external/haggle/src/hagglekernel/Address.h:274: note:                 
IPv4Address::IPv4Address(in_addr&, const Transport&)
external/haggle/src/hagglekernel/Address.h:273: note:                 
IPv4Address::IPv4Address(sockaddr_in&, const Transport&)
external/haggle/src/hagglekernel/Address.h:272: note:                 
IPv4Address::IPv4Address()
external/haggle/src/hagglekernel/Utility.cpp:561: error: 'bdaddr' was not 
declared in this scope
external/haggle/src/hagglekernel/Utility.cpp:567: error: invalid conversion 
from 'char*' to 'size_t'
external/haggle/src/hagglekernel/Utility.cpp:567: error:   initializing 
argument 2 of 'EthernetInterface::EthernetInterface(const void*, size_t, 
string, unsigned char)'
external/haggle/src/hagglekernel/Utility.cpp:567: error: invalid conversion 
from 'Addresses*' to 'char'
external/haggle/src/hagglekernel/Utility.cpp:567: error:   initializing 
argument 1 of 'haggle::String::String(char)'
external/haggle/src/hagglekernel/Interface.h:333: error: 
'EthernetInterface::EthernetInterface(const void*, size_t, string, unsigned 
char)' is protected
external/haggle/src/hagglekernel/Utility.cpp:567: error: within this context
make: *** 
[out/target/product/passion/obj/EXECUTABLES/haggle_intermediates/Utility.o] 
Error 1
make: Leaving directory `/mydroid'
------------------------------------------------------------

What version of the product are you using? On what operating system?
The latest version pulled from the default branch. On Android OS 2.2.1

Original issue reported on code.google.com by yanto.yo...@gmail.com on 13 Oct 2010 at 7:14

GoogleCodeExporter commented 8 years ago
Which target are you using when setting up your build environment (i.e., using 
the lunch command)? I assume you are targeting something older than "passion", 
e.g., "sapphire" or "dream"?

Original comment by erik.nor...@gmail.com on 13 Oct 2010 at 1:57

GoogleCodeExporter commented 8 years ago
The compilation problem should now be fixed. However, the functionality has not 
been verified simply because I do not have a phone matching the compilation 
target to test on

Original comment by erik.nor...@gmail.com on 14 Oct 2010 at 1:46

GoogleCodeExporter commented 8 years ago
The target was "generic_passion-eng", intended for the Nexus One. I think I was 
confused by the word "generic" there, and specified the Texas Instrument WiFi 
driver in the board configuration, and that probably caused a host of other 
compilation errors.

I've since updated to the latest version, and replaced the target as 
"full_passion-userdebug", and there were no more compilation errors. Thanks for 
the quick response!

Original comment by yanto.yo...@gmail.com on 14 Oct 2010 at 9:45