[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Subversion under 64-bit HPUX 11.11

From: Matthew Sanderson <matthew_at_formtrap.com>
Date: 2005-08-16 11:01:33 CEST

Hi,

The following is mostly for Google's benefit. I like posting solutions
when I have them, not only always problems :-)

SVN 1.2.1 builds 64 bit and runs on HPUX 11.11 (11iv1) on HPPA using a
64 bit GCC with the following trivial fix in libneon:

diff -Naur subversion-1.2.1/neon/src/ne_socket.orig.c
subversion-1.2.1/neon/src/ne_socket.c
--- subversion-1.2.1/neon/src/ne_socket.orig.c 2005-07-01
16:18:39.000000000 -0400
+++ subversion-1.2.1/neon/src/ne_socket.c 2005-08-16 04:33:59.000000000
-0400
@@ -670,7 +670,7 @@
 #endif
     }
 #else /* Use gethostbyname() */
- unsigned long laddr;
+ in_addr_t laddr;
     struct hostent *hp;

     laddr = inet_addr(hostname);

In an LP64 world 'unsigned long's are 64 bits wide, so laddr gets garbage,
so svn says 'no route to host' for all hosts even those one can
simultaneously ping, which was initially mystifying.

I intend on telling the neon maintainers about this sometime soon.

HTH,

--matt

Matthew Sanderson
Senior Programmer (UNIX)
TCG Information Systems Pty Ltd
Sydney, Australia
matthew@formtrap.com
http://www.formtrap.com/
+61 (02) 8303 2407

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 16 11:03:27 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.