GNU bug report logs - #78259
callproc.c undeclared function

Previous Next

Package: emacs;

Reported by: badli al rashid <theothernighttheotherday <at> gmail.com>

Date: Mon, 5 May 2025 11:09:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

To reply to this bug, email your comments to 78259 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Mon, 05 May 2025 11:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to badli al rashid <theothernighttheotherday <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 05 May 2025 11:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: badli al rashid <theothernighttheotherday <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: callproc.c undeclared function
Date: Mon, 5 May 2025 19:08:09 +0800
[Message part 1 (text/plain, inline)]
i have run ./configure on git on master, emacs-30, and emacs-30.1 release
but it comes out with the error  below running make and make bootstrap.

With master, on commit 8a097aede53dfb8f595d79824c784c188b210093 i was able
to compile and install previously but it come out with the same error when
recompiling. now i am using 9261d353ccc0f94da8049faaade025f338d75354.

with emacs-30 commit 81629b2b2ba282136bc5055bbaa0302321306e61    it comes
out with the same error.

git rev-parse HEAD
9261d353ccc0f94da8049faaade025f338d75354

termux-info
Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~VLCV3EXEW0SUAoWimVC01A==/com.termux-egyNiPzuwd6bWzk1HDtLkQ==/base.apk
TERMUX_APP__APK_RELEASE=F_DROID
TERMUX_APP__APP_VERSION_CODE=1021
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.2
TERMUX_APP__BUILD_DATA_DIR=/data/data/com.termux
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=false
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=11390
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c224,c256,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.2
TERMUX__APPS_DIR=/data/user/0/com.termux/termux/apps
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c224,c256,c512,c768
TERMUX__UID=10224
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.krnk.org/apt/termux/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://mirrors.krnk.org/apt/termux/termux-root root stable
# x11-repo (sources.list.d/x11.list)
deb https://mirrors.krnk.org/apt/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
14
Kernel build information:
Linux localhost 5.4.274-qgki-ge7725ac1dfbd #1 SMP PREEMPT Mon Mar 17
13:20:20 UTC 2025 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
22111317G
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.x11 versionCode:15

error when running make
callproc.c:1358:11: error: call to undeclared function
'posix_spawn_file_actions_addchdir_np'; ISO C99 and later do not support
implicit function declarations [-Wimplicit-function-declaration]
 1358 |   error = posix_spawn_file_actions_addchdir_np (actions, cwd);
      |           ^
1 error generated.
make[3]: *** [Makefile:444: callproc.o] Error 1
make[3]: Leaving directory '/data/data/com.termux/files/home/emacs.git/src'
make[2]: *** [Makefile:546: src] Error 2
make[2]: Leaving directory '/data/data/com.termux/files/home/emacs.git'
make[1]: *** [Makefile:1293: actual-bootstrap] Error 2
make[1]: Leaving directory '/data/data/com.termux/files/home/emacs.git'
make[1]: Entering directory '/data/data/com.termux/files/home/emacs.git'
***
*** "make bootstrap" failed with exit status 2.

Sent from Gmail
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Mon, 05 May 2025 12:25:01 GMT) Full text and rfc822 format available.

Message #8 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: badli al rashid <theothernighttheotherday <at> gmail.com>
Cc: 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Mon, 05 May 2025 15:23:58 +0300
> From: badli al rashid <theothernighttheotherday <at> gmail.com>
> Date: Mon, 5 May 2025 19:08:09 +0800
> 
> error when running make
> callproc.c:1358:11: error: call to undeclared function 'posix_spawn_file_actions_addchdir_np'; ISO C99 and
> later do not support implicit function declarations [-Wimplicit-function-declaration]
>  1358 |   error = posix_spawn_file_actions_addchdir_np (actions, cwd);
>       |           ^
> 1 error generated.
> make[3]: *** [Makefile:444: callproc.o] Error 1
> make[3]: Leaving directory '/data/data/com.termux/files/home/emacs.git/src'
> make[2]: *** [Makefile:546: src] Error 2
> make[2]: Leaving directory '/data/data/com.termux/files/home/emacs.git'
> make[1]: *** [Makefile:1293: actual-bootstrap] Error 2
> make[1]: Leaving directory '/data/data/com.termux/files/home/emacs.git'
> make[1]: Entering directory '/data/data/com.termux/files/home/emacs.git'
> ***
> *** "make bootstrap" failed with exit status 2.

Please post the part of config.log where it tests for the functions
posix_spawn_file_actions_addchdir and
posix_spawn_file_actions_addchdir_np.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Mon, 05 May 2025 13:36:02 GMT) Full text and rfc822 format available.

Message #11 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: badli al rashid <theothernighttheotherday <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Mon, 5 May 2025 21:35:25 +0800
[Message part 1 (text/plain, inline)]
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'

Sent from Gmail

On Mon, May 5, 2025, 20:24 Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: badli al rashid <theothernighttheotherday <at> gmail.com>
> > Date: Mon, 5 May 2025 19:08:09 +0800
> >
> > error when running make
> > callproc.c:1358:11: error: call to undeclared function
> 'posix_spawn_file_actions_addchdir_np'; ISO C99 and
> > later do not support implicit function declarations
> [-Wimplicit-function-declaration]
> >  1358 |   error = posix_spawn_file_actions_addchdir_np (actions, cwd);
> >       |           ^
> > 1 error generated.
> > make[3]: *** [Makefile:444: callproc.o] Error 1
> > make[3]: Leaving directory
> '/data/data/com.termux/files/home/emacs.git/src'
> > make[2]: *** [Makefile:546: src] Error 2
> > make[2]: Leaving directory '/data/data/com.termux/files/home/emacs.git'
> > make[1]: *** [Makefile:1293: actual-bootstrap] Error 2
> > make[1]: Leaving directory '/data/data/com.termux/files/home/emacs.git'
> > make[1]: Entering directory '/data/data/com.termux/files/home/emacs.git'
> > ***
> > *** "make bootstrap" failed with exit status 2.
>
> Please post the part of config.log where it tests for the functions
> posix_spawn_file_actions_addchdir and
> posix_spawn_file_actions_addchdir_np.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Mon, 05 May 2025 15:36:05 GMT) Full text and rfc822 format available.

Message #14 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: badli al rashid <theothernighttheotherday <at> gmail.com>
Cc: 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Mon, 05 May 2025 18:35:43 +0300
> From: badli al rashid <theothernighttheotherday <at> gmail.com>
> Date: Mon, 5 May 2025 21:35:25 +0800
> Cc: 78259 <at> debbugs.gnu.org
> 
> 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:




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Mon, 05 May 2025 19:31:02 GMT) Full text and rfc822 format available.

Message #17 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: badli al rashid <theothernighttheotherday <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Tue, 6 May 2025 03:30:05 +0800
[Message part 1 (text/plain, inline)]
i could not find it.

~/emacs.git $ cat config.log | grep func_posix_spawn_file_actions_addchdir
ac_cv_func_posix_spawn_file_actions_addchdir='no'
ac_cv_func_posix_spawn_file_actions_addchdir_np='yes'


Sent from Gmail

On Mon, May 5, 2025, 23:35 Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: badli al rashid <theothernighttheotherday <at> gmail.com>
> > Date: Mon, 5 May 2025 21:35:25 +0800
> > Cc: 78259 <at> debbugs.gnu.org
> >
> > 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:
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Tue, 06 May 2025 01:15:02 GMT) Full text and rfc822 format available.

Message #20 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: badli al rashid <theothernighttheotherday <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Tue, 6 May 2025 09:13:50 +0800
[Message part 1 (text/plain, inline)]
Please find the attach.

configure:33844: result: yes
                                                           configure:33850:
checking for posix_spawn_file_actions_addchdir
                                          configure:33850: gcc -o conftest
-O0 -g3 -pthread -isystem
/data/data/com.termux/files/usr/include/librsvg-2.0 -isystem
/data/data/com.termux/files/usr/include/cairo -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/libxml2 -isystem
/data/data/com.termux/files/usr/include/pango-1.0 -isystem
/data/data/com.termux/files/usr/include/harfbuzz -isystem
/data/data/com.termux/files/usr/include/pango-1.0 -isystem
/data/data/com.termux/files/usr/include/fribidi -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/harfbuzz -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/glib-2.0 -isystem
/data/data/com.termux/files/usr/lib/glib-2.0/include -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/cairo -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/freetype2 -isystem
/data/data/com.termux/files/usr/include/libpng16 -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/pixman-1 -isystem
/data/data/com.termux/files/usr/include/cairo -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/freetype2 -isystem
/data/data/com.termux/files/usr/include/libpng16 -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/pixman-1       conftest.c -lsqlite3
-lX11   -L/data/data/com.termux/files/usr/lib -lcairo >&5
                                                     ld.lld: error:
undefined symbol: posix_spawn_file_actions_addchdir
                                             >>> referenced by
conftest.c:285
                                         >>>
 /data/data/com.termux/files/usr/tmp/conftest-987b5e.o:(main)
                                           gcc: error: linker command
failed with exit code 1 (use -v to see invocation)
                                configure:33850: $? = 1

                configure: failed program was:

configure:33850: result: no
                                      configure:33856: checking for
posix_spawn_file_actions_addchdir_np
       configure:33856: gcc -o conftest  -O0 -g3 -pthread -isystem
/data/data/com.termux/files/usr/include/librsvg-2.0 -isystem
/data/data/com.termux/files/usr/include/cairo -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/libxml2 -isystem
/data/data/com.termux/files/usr/include/pango-1.0 -isyste
m /data/data/com.termux/files/usr/include/harfbuzz -isystem
/data/data/com.termux/files/usr/include/pango-1.0 -is
ystem /data/data/com.termux/files/usr/include/fribidi -isystem
/data/data/com.termux/files/usr/include -isystem /
data/data/com.termux/files/usr/include/harfbuzz -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/glib-2.0 -isystem
/data/data/com.termux/files/usr/lib/glib-2.0/include -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/cairo -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/freetype2 -isystem
/data/data/com.termux/files/usr/include/libpng16 -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/pixman-1 -isystem
/data/data/com.termux/files/usr/include/cairo -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/freetype2 -isystem
/data/data/com.termux/files/usr/include/libpng16 -isystem
/data/data/com.termux/files/usr/include -isystem
/data/data/com.termux/files/usr/include/pixman-1       conftest.c -lsqlite3
-lX11   -L/data/data/com.termux/files/usr/lib -lcairo >&5
 configure:33856: $? = 0
                                      :

Sent from Gmail

On Tue, May 6, 2025, 03:30 badli al rashid <
theothernighttheotherday <at> gmail.com> wrote:

> i could not find it.
>
> ~/emacs.git $ cat config.log | grep func_posix_spawn_file_actions_addchdir
> ac_cv_func_posix_spawn_file_actions_addchdir='no'
> ac_cv_func_posix_spawn_file_actions_addchdir_np='yes'
>
>
> Sent from Gmail
>
> On Mon, May 5, 2025, 23:35 Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> > From: badli al rashid <theothernighttheotherday <at> gmail.com>
>> > Date: Mon, 5 May 2025 21:35:25 +0800
>> > Cc: 78259 <at> debbugs.gnu.org
>> >
>> > 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:
>>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Tue, 06 May 2025 11:13:01 GMT) Full text and rfc822 format available.

Message #23 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: badli al rashid <theothernighttheotherday <at> gmail.com>
Cc: 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Tue, 06 May 2025 14:12:34 +0300
> From: badli al rashid <theothernighttheotherday <at> gmail.com>
> Date: Tue, 6 May 2025 09:13:50 +0800
> Cc: 78259 <at> debbugs.gnu.org
> 
> configure:33844: result: yes                                                                                                          
> configure:33850: checking for posix_spawn_file_actions_addchdir                                                                  
>      configure:33850: gcc -o conftest  -O0 -g3 -pthread -isystem
> /data/data/com.termux/files/usr/include/librsvg-2.0 -isystem /data/data/com.termux/files/usr/include/cairo -
> isystem /data/data/com.termux/files/usr/include -isystem /data/data/com.termux/files/usr/include/libxml2 -
> isystem /data/data/com.termux/files/usr/include/pango-1.0 -isystem
> /data/data/com.termux/files/usr/include/harfbuzz -isystem /data/data/com.termux/files/usr/include/pango-1.0 -
> isystem /data/data/com.termux/files/usr/include/fribidi -isystem /data/data/com.termux/files/usr/include -
> isystem /data/data/com.termux/files/usr/include/harfbuzz -isystem /data/data/com.termux/files/usr/include -
> isystem /data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem
> /data/data/com.termux/files/usr/include -isystem /data/data/com.termux/files/usr/include/glib-2.0 -isystem
> /data/data/com.termux/files/usr/lib/glib-2.0/include -isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/cairo -isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/freetype2 -isystem /data/data/com.termux/files/usr/include/libpng16 -
> isystem /data/data/com.termux/files/usr/include -isystem /data/data/com.termux/files/usr/include/pixman-1 -
> isystem /data/data/com.termux/files/usr/include/cairo -isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/freetype2 -isystem /data/data/com.termux/files/usr/include/libpng16 -
> isystem /data/data/com.termux/files/usr/include -isystem /data/data/com.termux/files/usr/include/pixman-1     
>  conftest.c -lsqlite3 -lX11   -L/data/data/com.termux/files/usr/lib -lcairo >&5                                                      
>                 ld.lld: error: undefined symbol: posix_spawn_file_actions_addchdir                                                 
>                    >>> referenced by conftest.c:285                                                                                                  
>     >>>               /data/data/com.termux/files/usr/tmp/conftest-987b5e.o:(main)                                                 
>        gcc: error: linker command failed with exit code 1 (use -v to see invocation)                                             
>             configure:33850: $? = 1                                                                                                               
> configure: failed program was:
> 
> configure:33850: result: no                                                                                      configure:33856: checking
> for posix_spawn_file_actions_addchdir_np                                               configure:33856: gcc -o conftest  -
> O0 -g3 -pthread -isystem /data/data/com.termux/files/usr/include/librsvg-2.0 -isystem
> /data/data/com.termux/files/usr/include/cairo -isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/libxml2 -isystem /data/data/com.termux/files/usr/include/pango-1.0 -
> isyste
> m /data/data/com.termux/files/usr/include/harfbuzz -isystem
> /data/data/com.termux/files/usr/include/pango-1.0 -is
> ystem /data/data/com.termux/files/usr/include/fribidi -isystem /data/data/com.termux/files/usr/include -isystem
> /
> data/data/com.termux/files/usr/include/harfbuzz -isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem /data/data/com.termux/files/usr/include -
> isystem /data/data/com.termux/files/usr/include/glib-2.0 -isystem
> /data/data/com.termux/files/usr/lib/glib-2.0/include -isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/cairo -isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/freetype2 -isystem /data/data/com.termux/files/usr/include/libpng16 -
> isystem /data/data/com.termux/files/usr/include -isystem /data/data/com.termux/files/usr/include/pixman-1 -
> isystem /data/data/com.termux/files/usr/include/cairo -isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/freetype2 -isystem /data/data/com.termux/files/usr/include/libpng16 -
> isystem /data/data/com.termux/files/usr/include -isystem /data/data/com.termux/files/usr/include/pixman-1     
>  conftest.c -lsqlite3 -lX11   -L/data/data/com.termux/files/usr/lib -lcairo >&5           configure:33856: $? = 0     

So the function does exist, but something is wrong with its prototype
declaration in the spawn.h header file.  I suggest to take a look at
the spawn.h header file and see what it says about
posix_spawn_file_actions_addchdir_np.  Perhaps the prototype is
guarded by some preprocessor directives or something?

What was the exact 'configure' command you used to configure Emacs,
and was that in a clean source tree?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Tue, 06 May 2025 11:39:04 GMT) Full text and rfc822 format available.

Message #26 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: badli al rashid <theothernighttheotherday <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Tue, 6 May 2025 19:37:41 +0800
[Message part 1 (text/plain, inline)]
i tried with make configure="--prefix=/opt/emacs CFLAGS='-O0 -g3'" from the
emac source the posix_spawn_file_actions_addchdir_np and it is a clean
source i did a "git clean -dxf".

i will try to take a look at the header file.


Sent from Gmail

On Tue, May 6, 2025, 19:12 Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: badli al rashid <theothernighttheotherday <at> gmail.com>
> > Date: Tue, 6 May 2025 09:13:50 +0800
> > Cc: 78259 <at> debbugs.gnu.org
> >
> > configure:33844: result: yes
>
> > configure:33850: checking for posix_spawn_file_actions_addchdir
>
> >      configure:33850: gcc -o conftest  -O0 -g3 -pthread -isystem
> > /data/data/com.termux/files/usr/include/librsvg-2.0 -isystem
> /data/data/com.termux/files/usr/include/cairo -
> > isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/libxml2 -
> > isystem /data/data/com.termux/files/usr/include/pango-1.0 -isystem
> > /data/data/com.termux/files/usr/include/harfbuzz -isystem
> /data/data/com.termux/files/usr/include/pango-1.0 -
> > isystem /data/data/com.termux/files/usr/include/fribidi -isystem
> /data/data/com.termux/files/usr/include -
> > isystem /data/data/com.termux/files/usr/include/harfbuzz -isystem
> /data/data/com.termux/files/usr/include -
> > isystem /data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem
> > /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/glib-2.0 -isystem
> > /data/data/com.termux/files/usr/lib/glib-2.0/include -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /data/data/com.termux/files/usr/include/cairo -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /data/data/com.termux/files/usr/include/freetype2 -isystem
> /data/data/com.termux/files/usr/include/libpng16 -
> > isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/pixman-1 -
> > isystem /data/data/com.termux/files/usr/include/cairo -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /data/data/com.termux/files/usr/include/freetype2 -isystem
> /data/data/com.termux/files/usr/include/libpng16 -
> > isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/pixman-1
> >  conftest.c -lsqlite3 -lX11   -L/data/data/com.termux/files/usr/lib
> -lcairo >&5
> >                 ld.lld: error: undefined symbol:
> posix_spawn_file_actions_addchdir
>
> >                    >>> referenced by conftest.c:285
>
> >     >>>
>  /data/data/com.termux/files/usr/tmp/conftest-987b5e.o:(main)
>
> >        gcc: error: linker command failed with exit code 1 (use -v to see
> invocation)
> >             configure:33850: $? = 1
>
> > configure: failed program was:
> >
> > configure:33850: result: no
>                                         configure:33856: checking
> > for posix_spawn_file_actions_addchdir_np
>                configure:33856: gcc -o conftest  -
> > O0 -g3 -pthread -isystem
> /data/data/com.termux/files/usr/include/librsvg-2.0 -isystem
> > /data/data/com.termux/files/usr/include/cairo -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /data/data/com.termux/files/usr/include/libxml2 -isystem
> /data/data/com.termux/files/usr/include/pango-1.0 -
> > isyste
> > m /data/data/com.termux/files/usr/include/harfbuzz -isystem
> > /data/data/com.termux/files/usr/include/pango-1.0 -is
> > ystem /data/data/com.termux/files/usr/include/fribidi -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /
> > data/data/com.termux/files/usr/include/harfbuzz -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem
> /data/data/com.termux/files/usr/include -
> > isystem /data/data/com.termux/files/usr/include/glib-2.0 -isystem
> > /data/data/com.termux/files/usr/lib/glib-2.0/include -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /data/data/com.termux/files/usr/include/cairo -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /data/data/com.termux/files/usr/include/freetype2 -isystem
> /data/data/com.termux/files/usr/include/libpng16 -
> > isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/pixman-1 -
> > isystem /data/data/com.termux/files/usr/include/cairo -isystem
> /data/data/com.termux/files/usr/include -isystem
> > /data/data/com.termux/files/usr/include/freetype2 -isystem
> /data/data/com.termux/files/usr/include/libpng16 -
> > isystem /data/data/com.termux/files/usr/include -isystem
> /data/data/com.termux/files/usr/include/pixman-1
> >  conftest.c -lsqlite3 -lX11   -L/data/data/com.termux/files/usr/lib
> -lcairo >&5           configure:33856: $? = 0
>
> So the function does exist, but something is wrong with its prototype
> declaration in the spawn.h header file.  I suggest to take a look at
> the spawn.h header file and see what it says about
> posix_spawn_file_actions_addchdir_np.  Perhaps the prototype is
> guarded by some preprocessor directives or something?
>
> What was the exact 'configure' command you used to configure Emacs,
> and was that in a clean source tree?
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Tue, 06 May 2025 13:07:02 GMT) Full text and rfc822 format available.

Message #29 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: badli al rashid <theothernighttheotherday <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Tue, 6 May 2025 21:06:13 +0800
[Message part 1 (text/plain, inline)]
hi,

i am unable to find. posix_spawn_file_actions_addchdir_np in the aosp
spawn.h file.

regards,
badli


Sent from Gmail

On Tue, May 6, 2025, 19:37 badli al rashid <
theothernighttheotherday <at> gmail.com> wrote:

> i tried with make configure="--prefix=/opt/emacs CFLAGS='-O0 -g3'" from
> the emac source the posix_spawn_file_actions_addchdir_np and it is a clean
> source i did a "git clean -dxf".
>
> i will try to take a look at the header file.
>
>
> Sent from Gmail
>
> On Tue, May 6, 2025, 19:12 Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> > From: badli al rashid <theothernighttheotherday <at> gmail.com>
>> > Date: Tue, 6 May 2025 09:13:50 +0800
>> > Cc: 78259 <at> debbugs.gnu.org
>> >
>> > configure:33844: result: yes
>>
>> > configure:33850: checking for posix_spawn_file_actions_addchdir
>>
>> >      configure:33850: gcc -o conftest  -O0 -g3 -pthread -isystem
>> > /data/data/com.termux/files/usr/include/librsvg-2.0 -isystem
>> /data/data/com.termux/files/usr/include/cairo -
>> > isystem /data/data/com.termux/files/usr/include -isystem
>> /data/data/com.termux/files/usr/include/libxml2 -
>> > isystem /data/data/com.termux/files/usr/include/pango-1.0 -isystem
>> > /data/data/com.termux/files/usr/include/harfbuzz -isystem
>> /data/data/com.termux/files/usr/include/pango-1.0 -
>> > isystem /data/data/com.termux/files/usr/include/fribidi -isystem
>> /data/data/com.termux/files/usr/include -
>> > isystem /data/data/com.termux/files/usr/include/harfbuzz -isystem
>> /data/data/com.termux/files/usr/include -
>> > isystem /data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem
>> > /data/data/com.termux/files/usr/include -isystem
>> /data/data/com.termux/files/usr/include/glib-2.0 -isystem
>> > /data/data/com.termux/files/usr/lib/glib-2.0/include -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /data/data/com.termux/files/usr/include/cairo -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /data/data/com.termux/files/usr/include/freetype2 -isystem
>> /data/data/com.termux/files/usr/include/libpng16 -
>> > isystem /data/data/com.termux/files/usr/include -isystem
>> /data/data/com.termux/files/usr/include/pixman-1 -
>> > isystem /data/data/com.termux/files/usr/include/cairo -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /data/data/com.termux/files/usr/include/freetype2 -isystem
>> /data/data/com.termux/files/usr/include/libpng16 -
>> > isystem /data/data/com.termux/files/usr/include -isystem
>> /data/data/com.termux/files/usr/include/pixman-1
>> >  conftest.c -lsqlite3 -lX11   -L/data/data/com.termux/files/usr/lib
>> -lcairo >&5
>> >                 ld.lld: error: undefined symbol:
>> posix_spawn_file_actions_addchdir
>>
>> >                    >>> referenced by conftest.c:285
>>
>>
>> >     >>>
>>  /data/data/com.termux/files/usr/tmp/conftest-987b5e.o:(main)
>>
>> >        gcc: error: linker command failed with exit code 1 (use -v to
>> see invocation)
>> >             configure:33850: $? = 1
>>
>> > configure: failed program was:
>> >
>> > configure:33850: result: no
>>                                           configure:33856: checking
>> > for posix_spawn_file_actions_addchdir_np
>>                configure:33856: gcc -o conftest  -
>> > O0 -g3 -pthread -isystem
>> /data/data/com.termux/files/usr/include/librsvg-2.0 -isystem
>> > /data/data/com.termux/files/usr/include/cairo -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /data/data/com.termux/files/usr/include/libxml2 -isystem
>> /data/data/com.termux/files/usr/include/pango-1.0 -
>> > isyste
>> > m /data/data/com.termux/files/usr/include/harfbuzz -isystem
>> > /data/data/com.termux/files/usr/include/pango-1.0 -is
>> > ystem /data/data/com.termux/files/usr/include/fribidi -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /
>> > data/data/com.termux/files/usr/include/harfbuzz -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem
>> /data/data/com.termux/files/usr/include -
>> > isystem /data/data/com.termux/files/usr/include/glib-2.0 -isystem
>> > /data/data/com.termux/files/usr/lib/glib-2.0/include -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /data/data/com.termux/files/usr/include/cairo -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /data/data/com.termux/files/usr/include/freetype2 -isystem
>> /data/data/com.termux/files/usr/include/libpng16 -
>> > isystem /data/data/com.termux/files/usr/include -isystem
>> /data/data/com.termux/files/usr/include/pixman-1 -
>> > isystem /data/data/com.termux/files/usr/include/cairo -isystem
>> /data/data/com.termux/files/usr/include -isystem
>> > /data/data/com.termux/files/usr/include/freetype2 -isystem
>> /data/data/com.termux/files/usr/include/libpng16 -
>> > isystem /data/data/com.termux/files/usr/include -isystem
>> /data/data/com.termux/files/usr/include/pixman-1
>> >  conftest.c -lsqlite3 -lX11   -L/data/data/com.termux/files/usr/lib
>> -lcairo >&5           configure:33856: $? = 0
>>
>> So the function does exist, but something is wrong with its prototype
>> declaration in the spawn.h header file.  I suggest to take a look at
>> the spawn.h header file and see what it says about
>> posix_spawn_file_actions_addchdir_np.  Perhaps the prototype is
>> guarded by some preprocessor directives or something?
>>
>> What was the exact 'configure' command you used to configure Emacs,
>> and was that in a clean source tree?
>>
>>
[Message part 2 (text/html, inline)]
[spawn.h (text/x-chdr, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Tue, 06 May 2025 13:49:01 GMT) Full text and rfc822 format available.

Message #32 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: badli al rashid <theothernighttheotherday <at> gmail.com>
Cc: 78259 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#78259: callproc.c undeclared function
Date: Tue, 06 May 2025 21:47:50 +0800
badli al rashid <theothernighttheotherday <at> gmail.com> writes:

> hi, 
>
> i am unable to find. posix_spawn_file_actions_addchdir_np in the aosp
> spawn.h file.

Building Emacs for Termux is not supported.

posix_spawn_file_actions_addchdir_np is not available on the release of
Android targeted by Termux's default compiler but is yet present in the
stub `libc.so' against which the Termux compiler links, and is
consequently detected by configure though inaccessible to C or object
code at runtime.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Tue, 06 May 2025 15:52:02 GMT) Full text and rfc822 format available.

Message #35 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 78259 <at> debbugs.gnu.org, theothernighttheotherday <at> gmail.com
Subject: Re: bug#78259: callproc.c undeclared function
Date: Tue, 06 May 2025 18:51:01 +0300
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  78259 <at> debbugs.gnu.org
> Date: Tue, 06 May 2025 21:47:50 +0800
> 
> badli al rashid <theothernighttheotherday <at> gmail.com> writes:
> 
> > hi, 
> >
> > i am unable to find. posix_spawn_file_actions_addchdir_np in the aosp
> > spawn.h file.
> 
> Building Emacs for Termux is not supported.
> 
> posix_spawn_file_actions_addchdir_np is not available on the release of
> Android targeted by Termux's default compiler but is yet present in the
> stub `libc.so' against which the Termux compiler links, and is
> consequently detected by configure though inaccessible to C or object
> code at runtime.

OK, I see you already fixed the configure script to avoid these
failures.  Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78259; Package emacs. (Tue, 06 May 2025 21:07:01 GMT) Full text and rfc822 format available.

Message #38 received at 78259 <at> debbugs.gnu.org (full text, mbox):

From: badli al rashid <theothernighttheotherday <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Po Lu <luangruo <at> yahoo.com>, 78259 <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Wed, 7 May 2025 05:06:25 +0800
[Message part 1 (text/plain, inline)]
po,

thank you for the explaination.

thanks.

Sent from Gmail

On Tue, May 6, 2025, 23:51 Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Po Lu <luangruo <at> yahoo.com>
> > Cc: Eli Zaretskii <eliz <at> gnu.org>,  78259 <at> debbugs.gnu.org
> > Date: Tue, 06 May 2025 21:47:50 +0800
> >
> > badli al rashid <theothernighttheotherday <at> gmail.com> writes:
> >
> > > hi,
> > >
> > > i am unable to find. posix_spawn_file_actions_addchdir_np in the aosp
> > > spawn.h file.
> >
> > Building Emacs for Termux is not supported.
> >
> > posix_spawn_file_actions_addchdir_np is not available on the release of
> > Android targeted by Termux's default compiler but is yet present in the
> > stub `libc.so' against which the Termux compiler links, and is
> > consequently detected by configure though inaccessible to C or object
> > code at runtime.
>
> OK, I see you already fixed the configure script to avoid these
> failures.  Thanks.
>
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 24 May 2025 08:46:02 GMT) Full text and rfc822 format available.

Notification sent to badli al rashid <theothernighttheotherday <at> gmail.com>:
bug acknowledged by developer. (Sat, 24 May 2025 08:46:02 GMT) Full text and rfc822 format available.

Message #43 received at 78259-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: badli al rashid <theothernighttheotherday <at> gmail.com>
Cc: luangruo <at> yahoo.com, 78259-done <at> debbugs.gnu.org
Subject: Re: bug#78259: callproc.c undeclared function
Date: Sat, 24 May 2025 11:45:34 +0300
> From: badli al rashid <theothernighttheotherday <at> gmail.com>
> Date: Wed, 7 May 2025 05:06:25 +0800
> Cc: Po Lu <luangruo <at> yahoo.com>, 78259 <at> debbugs.gnu.org
> 
> po,
> 
> thank you for the explaination. 

No further comments, so I'm now closing this bug.




This bug report was last modified 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.