[ofa-general] SDP ?

Jim Mott jimmott at austin.rr.com
Tue Oct 9 13:04:25 PDT 2007


That should work fine.  You might be able to build with -D_XPG4_2 as well.

-----Original Message-----
From: general-bounces at lists.openfabrics.org [mailto:general-bounces at lists.openfabrics.org] On Behalf Of Jim Langston
Sent: Tuesday, October 09, 2007 10:13 AM
To: general at lists.openfabrics.org
Subject: [ofa-general] SDP ?

Hi all,

I'm working on porting SDP to OpenSolaris and am looking at a
compile error that I get. Essentially, I have a conflict of types on
the compile:

bash-3.00$ /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -g 
-D_POSIX_PTHREAD_SEMANTICS -DSYSCONFDIR=\"/usr/local/etc\" -g 
-D_POSIX_PTHREAD_SEMANTICS -c port.c  -KPIC -DPIC -o .libs/port.o
"port.c", line 1896: identifier redeclared: getsockname
        current : function(int, pointer to struct sockaddr {unsigned 
short sa_family, array[14] of char sa_data}, pointer to unsigned int) 
returning int
        previous: function(int, pointer to struct sockaddr {unsigned 
short sa_family, array[14] of char sa_data}, pointer to void) returning 
int : "/usr/include/sys/socket.h", line 436


Line 436 in /usr/include/sys/socket.h

extern int getsockname(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t);


and Psocklen_t

#if defined(_XPG4_2) || defined(_BOOT)
typedef socklen_t       *_RESTRICT_KYWD Psocklen_t;
#else
typedef void    *_RESTRICT_KYWD Psocklen_t;
#endif  /* defined(_XPG4_2) || defined(_BOOT) */


Do I need to change port.c getsockname to type void * ?


Thanks,

Jim
_______________________________________________
general mailing list
general at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general




More information about the general mailing list