[ofa-general] SDP ?
Jim Langston
Jim.Langston at Sun.COM
Tue Oct 9 18:20:50 PDT 2007
Hi Jim,
Thanks, tried early on with -D_XPG4_2, things went from bad to worse,
I'll look at switching from
int to void.
Jim
//////////////
Jim Mott wrote:
> 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
>
> _______________________________________________
> 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
>
--
/////////////////////////////////////////////
Jim Langston
Sun Microsystems, Inc.
(877) 854-5583 (AccessLine)
AIM: jl9594
jim.langston at sun.com
More information about the general
mailing list