[ofa-general] SDP ?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <general@...>
Date: Tuesday, October 9, 2007 - 11:13 am

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@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ofa-general] SDP ?, Jim Langston, (Tue Oct 9, 11:13 am)
RE: [ofa-general] SDP ?, Jim Mott, (Tue Oct 9, 4:04 pm)
Re: [ofa-general] SDP ?, Jim Langston, (Tue Oct 9, 9:20 pm)