From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from srv1001smtp.sepsa.es ([80.81.127.89]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SPso3-0005Zx-Pv for ptxdist@pengutronix.de; Thu, 03 May 2012 11:58:41 +0200 Message-ID: <4FA256B5.5010608@albatros-sl.es> Date: Thu, 3 May 2012 11:58:13 +0200 From: =?ISO-8859-1?Q?=CD=F1igo_L=F3pez-Barranco?= MIME-Version: 1.0 References: <4F994FC8.1030906@albatros-sl.es> <20120427111223.GA5566@pengutronix.de> In-Reply-To: <20120427111223.GA5566@pengutronix.de> Subject: Re: [ptxdist] Udev 172/181 doesn't find ptxdist kernel headers and fails to compile Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de You are right: SOCK_NONBLOCK and SOCK_CLOEXEC are only available on = kernel >=3D 2.6.28 & glibc >=3D 2.9, and the glibc version in my toolchain = (OSELAS 1.99.3) is 2.8. I'm going to upgrade the toolchain and try again. Thank you! -- =CD=F1igo On 27/04/12 13:12, Michael Olbrich wrote: > On Thu, Apr 26, 2012 at 03:38:16PM +0200, =CD=F1igo L=F3pez-Barranco wrot= e: >> I'm trying to build ptxdist-2012.04.0 but it fails to compile using >> both versions of udev complaining about some undeclared defines: >> >> src/libudev-monitor.c: In function 'udev_monitor_new_from_socket': >> src/libudev-monitor.c:153: error: 'SOCK_NONBLOCK' undeclared (first >> use in this function) >> src/libudev-monitor.c:153: error: (Each undeclared identifier is >> reported only once >> ... >> >> Searching in the list's archives found this message with a patch >> adding the kernel headers path to the udev rules for toolchains >> without kernel headers (or old ones): >> >> http://thread.gmane.org/gmane.comp.embedded.ptxdist.devel/7997/focus=3D8= 140 >> >> I've checked that this is already included in my udev.make file, >> that I've selected the kernel headers (2.6.39) in ptxdist menu and >> that SOCK_NONBLOCK and other missing defines are present in the >> kernel headers, so I don't know what else to check now. >> >> The gcc version is 4.3.2 and the platform is x86 (586). > > And the glibc version? I think you need support for the NONBLOCK stuff fr= om > there too. > > Michael > -- = ptxdist mailing list ptxdist@pengutronix.de