From kde-core-devel Tue Aug 13 11:09:40 2002 From: Hans Meine Date: Tue, 13 Aug 2002 11:09:40 +0000 To: kde-core-devel Subject: Re: Success: kde 3.1 cvs running on sgi IRIX! X-MARC-Message: https://marc.info/?l=kde-core-devel&m=102923694915486 Andreas Sturm writes: > cc-1020 cc: ERROR File = main.c, Line = 318 > The identifier "socklen_t" is undefined. > > socklen_t len; > > Where should socklen_t be defined? Argl. I tracked down sth. like this on a Solaris system lately. It was hard to find, but somehow configure put a #define in config.h which made the system headers break. WORKAROUND: Removing the socklen_t define in config.h did the trick. SOLUTION: The configure check should be fixed to test if a program using socklen_t still works despite of the #define. I wanted to post this but forgot... :-( Sorry, but right now, I don't have the sys/socket.h at hand, otherwise I could give more info. IIRC, there was a "typedef int socklen_t" which a "#define socklen_t int" from config.h made appear as "typedef int int" which made the compiler give something like "ERROR: What the hell does this $%!#§ want to tell me??" ;-p -- Ciao, / / /--/ / / ANS