Hi Jean and all,

I am trying to compile latest udev ( udev-142 )*1 .

I have successfully complied 2.6.27 kernel and able to boot using
generated uImage.

After doing "make headers_install" of kernel 2.6.27 and putting them
in path, I was trying to compile udev, during that I got following
error.

/util/udev/udev-142/udev/udev-watch.c:157: undefined reference to
`inotify_rm_watch'
collect2: ld returned 1 exit status
make[3]: *** [test-udev] Error 1

I look for inotify_rm_watch, I found that it is not part of 2.6.10 but
available in many latest kernel and it is used by udev.

I also planning to cross compile few other system utilities, and I
guess, I might get similar issue. Thus, Instant of resolving with some
hacks, I was interested to update tool chain.

Regards, Viral

1. http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html



2009/5/29 Jean-Philippe François <[email protected]>:
> You can look for a pre-compiled tool chain like the one provided
> by CodeSourcery. I am using one like that succesfully here.
> I don't know on what kernel version the header are based, but it is much
> more recent thant 2.6.10
>
> Or you can try to build your own using helper script.
> Google for crosstool-ng !
>
> However, may be I misunderstood your question.
> What are you trying to achieve ? Do you want to build user code
> or kernel code ? I guess if you want to use functions defined in
> fs/inotify.c, your problem is not with the toolchain, but with understanding
> the build system.
> Steve Chen a écrit :
>>
>> On Fri, 2009-05-29 at 15:00 +0530, Viral Sachde wrote:
>>>
>>> Hi all,
>>>
>>> *** Correcting mistake in message.
>>>
>>> I have tool chain which contains 2.6.10 kernel. I have compiled 2.6.27
>>> for board and executed it. I have installed kernel header in separate
>>> folder and included it's path. Now, I wish to cross compile program,
>>> which is using functions defined in 2.6.27 and were not present in
>>> 2.6.10***. Specifically, I am interested to use functions defined in file
>>> "fs/inotify.c", this file is not available in 2.6.10. What all I have
>>> to update my tool chain so that it now uses new kernel source and
>>> header for all reference.
>>>
>>> Regards, Viral
>>
>> Monta Vista has an extensive build environment setup to build the
>> toolchain.  If you don't have access to the build environment, it is not
>> a trivial task.  If you have access to Monta Vista support, that would
>> probably be the easiest way to go.
>>
>> Regards,
>>
>> Steve
>>
>>> _______________________________________________
>>> Davinci-linux-open-source mailing list
>>> [email protected]
>>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>>
>>
>> _______________________________________________
>> Davinci-linux-open-source mailing list
>> [email protected]
>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>>
>
>

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to