Re: [Plib-devel] patch for compiling on Solaris 10
Brought to you by:
sjbaker
From: Fay J. F Dr C. U. AFSEO/SK <joh...@eg...> - 2006-12-11 18:22:58
|
Vikas, I'm a little confused about the "socklen_t" problem you mention. I looked around the Linux system header files a bit and find #ifndef __socklen_t_defined typedef __socklen_t socklen_t #endif The only place I see "socklen_t" used in PLIB is in "netSocket.cxx", where it is defined to be "int" under MSVC if it has not already been defined. As such, perhaps the problem lies with the "configure" adding that flag to your compile line. Does anybody know what causes it? I am similarly confused by the addition of "(char *)" to the "strstr" call in netChat.cxx. The "strstr" function already returns a value of type "char *" so the cast should be unnecessary. Is there something about the Sun Studio 11 compiler that is nonstandard? If there is, I will certainly be willing to add the explicit cast, but if not I would just as soon leave it out. (Perhaps we should use a "#ifdef UL_BB" block here.) John F. Fay Technical Fellow Jacobs/Sverdrup TEAS Group 850-883-1294 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Vikas N Kumar Sent: Sunday, December 10, 2006 2:24 AM To: pli...@li... Subject: [Plib-devel] patch for compiling on Solaris 10 Hi To compile with the Sun Studio 11 compilers on Solaris 10 on a SPARC I had to do the following changes to make plib compile cleanly. When I run configure, the flag "-Dsocklen_t=int" is added to my compile line for all files. Hence I have to undefine it in 2 files to get them to compile properly since socklen_t is defined as a typedef of "uint32_t" in those files. Regards, Vikas <snip> |