SUMMARY: ProFTPD 1.2.2rc1 & rc2 make fails with `GLOB_ALTDIRFUNC' undeclared

From: March, Harold W. <Harold.March_at_baesystems-canada.com>
Date: Sat, 21 Apr 2001 13:24:03 -0400

A pseudo-summary for admins attempting to build ProFTPD 1.2.2rc1 or
1.2.2rc2.

Under T64 V4.0F and compilng with gcc version 2.95.2 (the native cc will not
build ProFTPD):

make fails with
fs.c: In function `fs_glob':
fs.c:1132: `GLOB_ALTDIRFUNC' undeclared (first use in this function)
fs.c:1132: (Each undeclared identifier is reported only once
fs.c:1132: for each function it appears in.)
*** Exit 1
Stop.

Moving the following defs out of the conditional in include/glibc-glob.h at
line 76 works around the problem:

$ diff glibc-glob.h glibc-glob.h-old
75,82d74
< #define GLOB_MAGCHAR (1 << 8)/* Set in gl_flags if any metachars seen.
*/
< #define GLOB_ALTDIRFUNC (1 << 9)/* Use gl_opendir et al functions. */
< #define GLOB_BRACE (1 << 10)/* Expand "{a,b}" to "a" "b". */
< #define GLOB_NOMAGIC (1 << 11)/* If no magic chars, return the pattern.
*/
< #define GLOB_TILDE (1 << 12)/* Expand ~user and ~ to home directories.
*/
< #define GLOB_ONLYDIR (1 << 13)/* Match only directories. */
< #define GLOB_TILDE_CHECK (1 << 14)/* Like GLOB_TILDE but return an error
< if the user name is not available. */
85a78,85
> # define GLOB_MAGCHAR (1 << 8)/* Set in gl_flags if any metachars seen.
*/
> # define GLOB_ALTDIRFUNC (1 << 9)/* Use gl_opendir et al functions. */
> # define GLOB_BRACE (1 << 10)/* Expand "{a,b}" to "a" "b". */
> # define GLOB_NOMAGIC (1 << 11)/* If no magic chars, return the pattern.
*/
> # define GLOB_TILDE (1 << 12)/* Expand ~user and ~ to home directories.
*/
> # define GLOB_ONLYDIR (1 << 13)/* Match only directories. */
> # define GLOB_TILDE_CHECK (1 << 14)/* Like GLOB_TILDE but return an error
> if the user name is not available. */

Harold March
Systems Technology Architect
Information Technology
CMC Electronics Inc.
Harold.March_at_CMCElectronics.ca
TEL: 514-748-3000 ext 4467 FAX: 514-748-3136
Received on Sat Apr 21 2001 - 17:25:52 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT