Can't compile udev-197 as uClibc doesn't provide dup3 and mkostemp definitions.
Created attachment 336552 [details] build log
Created attachment 336554 [details, diff] temporary workaround patch This is a workaround patch to compile udev but I think this is not the proper way. Maybe uClibc migth have dup3 and mkostemp.
According to Mike these should be in uclibc head so these 2 functions should be backported to the current uclibc in tree. Reassigning to uclibc maintainers. https://bugs.gentoo.org/show_bug.cgi?id=443030#c1
(In reply to comment #3) > According to Mike these should be in uclibc head so these 2 functions should > be backported to the current uclibc in tree. > > Reassigning to uclibc maintainers. > > https://bugs.gentoo.org/show_bug.cgi?id=443030#c1 Yeah there is also another problem with Tibor's patch. You can't just do - fd = mkostemp(path, O_RDWR|O_CLOEXEC); + fd = mkstemp(path); since these are not equivalent. Dropping the O_CLOEXEC could lead to a race condition. I'm not 100% sure since I don't know the threading going on there, but it is safer to do: + fd = mkstemp(path); + fcntl(fd, F_SETFD, FD_CLOEXEC);
http://sources.gentoo.org/gentoo/src/patchsets/uclibc/0.9.33.2/02_all_mkostemp.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/uclibc/0.9.33.2/03_all_dup3-1.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/uclibc/0.9.33.2/03_all_dup3-2.patch?rev=1.1
Hi SpanKY, in the end of "03_all_dup3-1.patch" there is dup2, and not dup3... Cheers, oreggin
should be all set now in the tree; thanks for the report! Commit message: Add dup3/mkostemp support http://sources.gentoo.org/sys-libs/uclibc/uclibc-0.9.33.2-r3.ebuild?rev=1.1
I've tested the patches, and works well on my machine. Thx, SpanKY