[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] RunTime Error on 2.1.2
On Mon, 4 Jun 2001, Jeremy LaCivita wrote:
> I just installed the latest stable release to use your category sync
> conduit, and I get a run time error each time i try to run.
>
> Error: Can't look up my address.
> gethostbyname: Undefined error: 0
> Error: Can't get host ID.
>
> I'm on MacOS X, which is supposed to be very similar to FreeBSD or
> NetBSD.
It looks as if your machine has a name, but no IP address.
(ColdSync looks up the host's name with gethostname(), then looks up its
address with gethostbyname2() or gethostbyname().)
One quick fix should be to edit /etc/hosts and add an entry for
your machine. (Disclaimer: I've never used MacOS X; this is a generic
Unixish solution.)
If that doesn't work, an ugly hack is to edit src/config.c ,
comment out the body of get_hostinfo(), and replace it with
hostid = 0x12345678; /* Or whatever */
return 0;
Pick a host ID that you like.
The reason ColdSync does all of this is that it uses the host's IP
address as the host ID. The host ID is stored on the Palm, and is used to
determine whether the last machine that the Palm synced with was this
machine or a different one (i.e., whether it should do a slow or a fast
sync).
In the longer term, a better solution would be to make it possible
to set the host ID in a config file. If anyone wants to write this, please
speak up.
--
Andrew Arensburger Actually, these _do_ represent the
arensb@ooblick.com opinions of ooblick.com!
Generic Tagline V 6.01
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.