Subject: Re: kdelibs: error in /usr/include/sys/select.h
To: None <d.zanon@infinito.it>
From: Adam Ciarcinski <adam@albedo.art.pl>
List: current-users
Date: 03/24/2005 17:46:30
> I'm writing to this list because I'm using a rather current NetBSD (2.99.16),
> please ignore me if it's inappropriate.
>
> While compiling kdelibs-3.4.0, I get this:
>
> In file included from ksock.cpp:65:
> /usr/include/sys/select.h:85: error: previous declaration of `int select(int,
>   fd_set*, fd_set*, fd_set*, timeval*)' with C++ linkage
> /usr/include/unistd.h:288: error: conflicts with new declaration with C
> linkage
> ksock.cpp: In member function `long unsigned int KSocket::ipv4_addr()':
> ksock.cpp:210: warning: `peerAddress' is deprecated (declared at
> kextsock.h:986
>   )
> ksock.cpp: In static member function `static bool
>   KSocket::initSockaddr(ksockaddr_in*, const char*, short unsigned int,
> int)':
> ksock.cpp:240: warning: `lookup' is deprecated (declared at kextsock.h:969)
> ksock.cpp:249: warning: `address' is deprecated (declared at kextsock.h:1064)
> ksock.cpp: In member function `virtual void KServerSocket::slotAccept(int)':
> ksock.cpp:416: warning: `__comp_ctor' is deprecated (declared at
> ksock.cpp:102)
> gmake[4]: *** [ksock.lo] Error 1
>
> From my non-existent knowledge, the problems are found in system header files,
> and not in some kde-related stuff. So, is there anyone who knows what's
> happening here? Thanks :)

Weird... it compiles okay on rather current 3.99.1.

Cheers,
Adam