#12399: Static network address configuration fails
--------------------------------+----------------------------
Reporter: kallisti5 | Owner: axeld
Type: bug | Status: new
Priority: high | Milestone: R1/beta1
Component: Kits/Network Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
--------------------------------+----------------------------
Comment (by ambroff):
Unfortunately yes with GCC 5.
{{{
src/preferences/network/InterfaceAddressView.cpp:347:59: error: call of
overloaded 'SetTo(const char*, int, <anonymous enum>)' is ambiguous
address.SetTo(string.String(), 0, B_NO_ADDRESS_RESOLUTION);
^
In file included from
/home/kambroff/code/haiku/haiku/headers/os/net/NetworkInterface.h:13:0,
from src/preferences/network/InterfaceAddressView.h:14,
from src/preferences/network/InterfaceAddressView.cpp:11:
/home/kambroff/code/haiku/haiku/headers/os/net/NetworkAddress.h:47:15:
note: candidate: status_t BNetworkAddress::SetTo(const char*, uint16,
uint32)
status_t SetTo(const char* address, uint16 port = 0,
^
/home/kambroff/code/haiku/haiku/headers/os/net/NetworkAddress.h:49:15:
note: candidate: status_t BNetworkAddress::SetTo(const char*, const char*,
uint32)
status_t SetTo(const char* address, const char* service,
^
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12399#comment:10>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.