* [ptxdist] Udev 172/181 doesn't find ptxdist kernel headers and fails to compile
@ 2012-04-26 13:38 Íñigo López-Barranco
2012-04-27 11:12 ` Michael Olbrich
0 siblings, 1 reply; 3+ messages in thread
From: Íñigo López-Barranco @ 2012-04-26 13:38 UTC (permalink / raw)
To: ptxdist
Hello all.
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=8140
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).
Thanks in advance
--
Íñigo
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] Udev 172/181 doesn't find ptxdist kernel headers and fails to compile
2012-04-26 13:38 [ptxdist] Udev 172/181 doesn't find ptxdist kernel headers and fails to compile Íñigo López-Barranco
@ 2012-04-27 11:12 ` Michael Olbrich
2012-05-03 9:58 ` Íñigo López-Barranco
0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2012-04-27 11:12 UTC (permalink / raw)
To: ptxdist
On Thu, Apr 26, 2012 at 03:38:16PM +0200, Íñigo López-Barranco wrote:
> 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=8140
>
> 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 from
there too.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] Udev 172/181 doesn't find ptxdist kernel headers and fails to compile
2012-04-27 11:12 ` Michael Olbrich
@ 2012-05-03 9:58 ` Íñigo López-Barranco
0 siblings, 0 replies; 3+ messages in thread
From: Íñigo López-Barranco @ 2012-05-03 9:58 UTC (permalink / raw)
To: ptxdist
You are right: SOCK_NONBLOCK and SOCK_CLOEXEC are only available on
kernel >= 2.6.28 & glibc >= 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!
--
Íñigo
On 27/04/12 13:12, Michael Olbrich wrote:
> On Thu, Apr 26, 2012 at 03:38:16PM +0200, Íñigo López-Barranco wrote:
>> 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=8140
>>
>> 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 from
> there too.
>
> Michael
>
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-03 9:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26 13:38 [ptxdist] Udev 172/181 doesn't find ptxdist kernel headers and fails to compile Íñigo López-Barranco
2012-04-27 11:12 ` Michael Olbrich
2012-05-03 9:58 ` Íñigo López-Barranco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox