apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wesley W. Garland" <...@page.ca>
Subject APR configure, sendfile & SunOS 5.8
Date Wed, 19 Apr 2006 15:17:04 GMT
This report isn't as complete as my UUID report, as this is IIRC a
reasonably well-understood problem.

1. SunOS 5.8 does not necessarily ship with sendfile() and friends

2. APR configure with 1.2.7 seems to think it does

3. APR configure with 1.0.1 didn't care (or maybe 1.0.1 didn't support
sendfile?)

4. APR configure could detect the presence of sendfile on Solaris by
checking for
/usr/include/sys/sendfile.h
/usr/lib/libsendfile.so (or .so.1)

4. To work around: add --without-sendfile to ./configure command line

5. To fix: Add sunsolve patches to correct Sun BugID 4400361: "Need to add
support for sendfilev() system call"
Sparc patch 111297-01 fixes this bug, and requires these other patches:
108528-09 or greater (kernel)
108991-13 or greater (libc)
109025-03 or greater (truss)
111295-01 or greater (pstack)

x86 patch 111298-01 fixes this bug, and requires these other patches:
108529-09 or greater
108992-13 or greater
109026-04 or greater
111296-01 or greater

Obviously, this solution requires a reboot if you do not have appropriate
versions of 108528 or 108991. I am not sure about the other three.  Use showrev
-p to view the patch status of a Solaris box.

Warning to the Solaris system administrator encountering this problem: Most
of these patches have now been
aggregated-and-aggregrated-and-replaced-and-aggregated-etc. In order to
ACTUALLY fix the problem, you will either have to:

   - Spend non-trivial time determining the latest patches to resolve
   4400361
   - Install patches flagged OBSOLETE
   - Install the latest patch cluster
   - Use the Sun automagic patch tool to resolve this issue

I have not tested the solution (5); I have employed the workaround (4) for
this ancient box. It is a SunOS 5.8 Generic_108528-15. I do not require
apr_sendfile().

According to the notes on SunSolve, BugID 4400361 is addressed in Solaris 8
hardware 7/03. I am fairly certain (99.5%) that it was never a problem with
Solaris 9.

I raise this issue to help APR configure maintainers tweak their settings,
or help APR-using system administrators compile/install APR on older SunOS
5.8 platforms (i.e. those which have been in production for years and have
only received security/critical patches).

Wes

--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102

Mime
View raw message