[GRASS5] Problem with new socket code

Eric G . Miller egm2 at jps.net
Mon Feb 12 14:50:53 EST 2001


On Mon, Feb 12, 2001 at 04:44:43PM +0700, Justin Hickey wrote:
> Hi Eric
> 
> Sorry to be the one causing you headaches. This time, most of the
> display commands failed with a link error as follows:
> 
> ld32: ERROR 33: Unresolved text symbol "SUN_LEN" -- 1st referenced by
> /usr/people/jhickey/temp/grass/src/libes/LIB.mips-sgi-irix6.5/libgis.a(unix_socks.o).
> 
> I'm not sure if this symbol is supposed to be part of the standard
> socket interface or not.

I understood it was, but apparently not on IRIX.  I can use an
alternate method:

substitute for SUN_LEN:

offsetof (struct sockaddr_un, sun_path) + strlen (name.sun_path) + 1

where 'name' is the name of the 'struct sockaddr_un' in unix_socks.c
This would be in G_sock_bind().

-- 
Eric G. Miller <egm2 at jps.net>

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list