[erlang-patches] erl_call can now use an IP address for remote node name
Mon Oct 4 17:07:13 CEST 2010
On Mon, Oct 04, 2010 at 03:22:14PM +0200, Bj??rn Gustavsson wrote:
> On Thu, Sep 23, 2010 at 1:46 PM, Julien Barbot <> wrote:
> > Hi,
> > erl_call was not able to connect to a remote node when the specified node
> > with -name contained an IP address.
> > The previous inet_addr/htonl calls were not working with ip addresses.
> > Here is the small patch:
> > git fetch git://github.com/klyr/otp.git erl_call_get_hostent
> The build fails on Windows like this:
> cc.sh -MD -O2 -Wall -I. -I../include -Iconnect -Iencode -Idecode
> -Imisc -Iepmd -Iregistry -Iwin32 -Ilegacy -DWIN32_THREADS
> -D_WIN32_WINNT=0x0500 -DWINVER=0x0500 -o
> prog/erl_call.c prog/erl_start.c \
> -lei_md -lsocket
> erl_call.o : error LNK2019: unresolved external symbol _inet_pton
> referenced in function _get_hostent
> : fatal error LNK1120: 1 unresolved externals
> I will drop the branch from pu.
This could probably be resolved with a simple ifdef for windows support.
Windows Vista has inetPton, but on earlier versions you probably want to
use WSAStringToAddress or something (which is available since win2k).
More information about the erlang-patches