Description:
Excerpt from an email from Mats Wichmann with notes of a build of
MySQL 4.0.14 on
an LSB system:
http://freestandards.org/pipermail/lsb-appbat/2003-October/001036.html
[SNIP]
5. In mysys/my_lib.c, the constant _POSIX_PATH_MAX
is used. This constant is not defined by the LSB.
A reasonable alternative is the use of PATH_MAX,
the use of _POSIX_PATH_MAX is almost certainly
incorrect in any case. POSIX and the Single UNIX
Specification allow the maximum path length to=20
differ per file type, so the proper approach to
be sure enough buffer space is allocated is to
use pathconf or fpathconf at runtime, and allocate
the buffer dynamically. Barring that, PATH_MAX
is reasonable: the requirement is that PATH_MAX
or the per-file pathconf value will be /no less
than/ _POSIX_PATH_MAX, but can be greater, and
of course on Linux implementations, PATH_MAX is
4096 while _POSIX_PATH_MAX (think of it as the
"minimum maximum" for the system, not a value that
should be used in application code) is 256, so
it is probable that not enough space is being
allocated.
[SNIP]
How to repeat:
Try to perform a MySQL build on an LSB development platform