Discussion:
idl compiler and FQDN on windows
Felipe Magno de Almeida
2010-08-05 15:32:13 UTC
Permalink
Hi,

There's a workaround in address.cc:648 for Cygwin for creating a FQDN.
This workaround is only enabled for Cygwin.
Unfortunately, when compiling with msvc (8.0 and 9.0express tested),
the FQDN returned sometimes isn't resolvable.
On Windows (SP2) the gethostname returns the machine's name. But when
resolving the ip address for the hostname, it returns the machine name
suffixed with ".localdomain". Which doesn't resolve to any IP address.
This makes lots of operator< comparisons to always fail and the idl to
never finish compiling.
I replaced the workaround requisite __CYGWIN32__ to _WIN32 and it worked.
The file has the same code on the darcs repository, I'm using mico 2.3.12.

Regards,
--
Felipe Magno de Almeida
Loading...