A compilation error is detected while compiling lftp-2.6.6 on
Solaris 9 4/03 + gcc-3.3.

% gcc -o lftp lftp.o complete.o lftp_rl.o ...
Undefined                       first referenced
 symbol                             in file
glob(char const*, int, int (*)(char const*, int), glob_t*)complete.o
globfree(glob_t*)                   complete.o


Solaris 9's /usr/include/glob.h:
...
#if defined(__STDC__)
extern int glob(const char *, int, int(*)(const char *, int), glob_t *);
extern void globfree(glob_t *);
#else
extern int glob();
extern void globfree();
#endif
...

dirty/quick workaround:
modify LocalAccess.cc, complete.cc and mgetJob.cc
        < #include <glob.h>
        ---
        > #include "../lib/glob.h"

-- ayamura

Reply via email to