Fri 21 Jul 2006 11:50:15 PM UTC, original submission:
A number of tools do not build on OSS. Some of the changes in bug #16325 help, but there are many more problems...
= 'configure' fails because it is unable to determine how to read the mount table. I am not sure that there is a mount table on OSS.
= The targets 'shred' and 'sync' fail, presumably because there is no sync().
= cp and ln fail w.r.t. symlink functions and function pointers. cp either needs 'if (0) lstat (NULL, NULL)' before the call to lstat, or something similar to what the patch does for ln. ln needs the fixes from #16325, plus:
- int err = ((dereference_dest_dir_symlinks ? stat : lstat)(file, &st) == 0
+ int err = ((dereference_dest_dir_symlinks ? stat (file, &st)
+ : lstat (file, &st)) == 0
= signal handling in ls is broken because SA_NOCLDSTOP is defined but SA_RESTART is not. I fixed this by making all tests for SA_NOCLDSTOP test for both.
= stat does not build; AFAICT because there is no statfs() nor statvfs().
= ls, cat, stty need '#ifdef __TANDEM\\#define _TANDEM_SOURCE\\#endif' added; otherwise net/*.h headers break.
= src/setuidgid.c needs the call to setgroups() removed.
There are also OSS sources for fileutils on ITUG: https://www.itug.org/secure/ituglib/user/dsp_detail.cfm?library_id=938&CFID=61774&CFTOKEN=23360543
These may help with some of the other issues.
|