Subject: Re: bug#78259: callproc.c undeclared function

From: Eli Zaretskii <[email-masked]>
Date: Mon, 05 May 2025 18:35:43 +0300

> From: badli al rashid <[email-masked]>
> Date: Mon, 5 May 2025 21:35:25 +0800
> Cc: [email-masked]
> 
> is this the test you are refering to ? 
> ac_cv_func_posix_spawn_file_actions_addchdir='no'
> ac_cv_func_posix_spawn_file_actions_addchdir_np='yes'

No, to the test which looks similar to this:

  configure:32705: checking for posix_spawn_file_actions_addchdir
  configure:32705: gcc -o conftest  -O2 -g3 -pthread -isystem /usr/include/librsvg-2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/x86_64-linux-gnu -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/freetype2 -isystem /usr/include/libpng16       conftest.c -lsqlite3 -lX11   -lcairo >&5
  /usr/bin/ld: /tmp/cciOmqb6.o: in function `main':
  /home/eliz/git/emacs/trunk/conftest.c:300: undefined reference to `posix_spawn_file_actions_addchdir'
  collect2: error: ld returned 1 exit status
  configure:32705: $? = 1
  configure: failed program was: