Building libpcre-8.31 under uClibc (0.9.33.2-r1) dies with... ./.libs/libpcre.so: undefined reference to `posix_madvise' For some reason, both posix_madvise and POSIX_MADV_DONTNEED have been defined in the headers for ages but the actual implementation wasn't added to uClibc until very recently. See the commit at the given URL. This should probably be fixed on the uClibc side. Applying that commit seems easiest.
(In reply to comment #0) > Building libpcre-8.31 under uClibc (0.9.33.2-r1) dies with... > > ./.libs/libpcre.so: undefined reference to `posix_madvise' > > For some reason, both posix_madvise and POSIX_MADV_DONTNEED have been > defined in the headers for ages but the actual implementation wasn't added > to uClibc until very recently. See the commit at the given URL. This should > probably be fixed on the uClibc side. Applying that commit seems easiest. Confirmed. I hit this a few days ago on mips-uclibc.
since it's part of POSIX, we should update uClibc
Created attachment 319146 [details, diff] Adds posix_madvise.c to uclibc I grabed posix_madvise.c from glibc and included it in uclibc. This fixes the libpcre problem. @Mike: the only thing I'm not certain of is that I removed glibc's stub_warning which didn't seem appropriate here. You would know better than I, is that okay?
(In reply to comment #3) > Created attachment 319146 [details, diff] [details, diff] > Adds posix_madvise.c to uclibc > > I grabed posix_madvise.c from glibc and included it in uclibc. This fixes > the libpcre problem. > > @Mike: the only thing I'm not certain of is that I removed glibc's > stub_warning which didn't seem appropriate here. You would know better than > I, is that okay? um ... scratch the above .... http://git.uclibc.org/uClibc/commit/?id=9d101732ad0609f2f19ef20062a00cd26b01d859 @Mike you may want to backport that if they're not going to push out a new release soon.
should be all set now in the tree; thanks for the report! Commit message: Add posix_madvise support from upstream http://sources.gentoo.org/sys-libs/uclibc/uclibc-0.9.33.2-r2.ebuild?rev=1.1