Most of the posix_spawn functions are replaced fine on solaris 11
but a couple are not, causing compile failures with gcc 14.

ssh cfarm215.cfarm.net
wget https://www.pixelbeat.org/cu/coreutils-9.8.63-dfcf9.tar.xz
xz -dc coreutils-9.8.63-dfcf9.tar.xz | tar -xf -
cd coreutils-9.8.63-dfcf9
./configure --quiet && gmake -j4

The failures I'm seeing are:

src/timeout.c: In function 'main':
src/timeout.c:566:48: error: passing argument 1 of 'posix_spawnattr_setsigmask' 
from incompatible pointer type [-Wincompatible-pointer-types]
  566 |       || (result = posix_spawnattr_setsigmask (&attr, &orig_set)))
      |                                                ^~~~~
      |                                                |
      |                                                rpl_posix_spawnattr_t *
In file included from ./lib/spawn.h:42,
                 from src/timeout.c:52:
/usr/include/spawn.h:164:9: note: expected 'posix_spawnattr_t * restrict' but 
argument is of type 'rpl_posix_spawnattr_t *'

===============================================================================

src/sort.c:1057:41: error: passing argument 1 of 
'posix_spawn_file_actions_destroy' from incompatible pointer type 
[-Wincompatible-pointer-types]
 1057 |       posix_spawn_file_actions_destroy (&actions);
      |                                         ^~~~~~~~
      |                                         |
      |                                         rpl_posix_spawn_file_actions_t *
In file included from ./lib/spawn.h:42,
                 from src/sort.c:32:
/usr/include/spawn.h:53:9: note: expected 'posix_spawn_file_actions_t *' but 
argument is of type 'rpl_posix_spawn_file_actions_t *'
   53 |         posix_spawn_file_actions_t *);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

===============================================================================
src/split.c:565:41: error: passing argument 1 of 
'posix_spawn_file_actions_destroy' from incompatible pointer type 
[-Wincompatible-pointer-types]
  565 |       posix_spawn_file_actions_destroy (&actions);
      |                                         ^~~~~~~~
      |                                         |
      |                                         rpl_posix_spawn_file_actions_t *
In file included from ./lib/spawn.h:42,
                 from src/split.c:30:


thanks,
Padraig

Reply via email to