You are not logged in.

#1 2021-12-05 08:04:23

leniviy
Member
Registered: 2009-05-23
Posts: 177

[solved] Can't rebuild libsasl from ABS

Hi. When I try to build https://archlinux.org/packages/core/x86_64/libsasl/ it fails with:

Now type 'make' to build cyrus-sasl

make  all-recursive
make[1]: Entering directory '/.snapshots/persist/builds/packages/libsasl/repos/core-x86_64/src/cyrus-sasl-2.1.27'
Making all in include
make[2]: Entering directory '/.snapshots/persist/builds/packages/libsasl/repos/core-x86_64/src/cyrus-sasl-2.1.27/include'
DOBSOLETE_CRAM_ATTR=1 -DOBSOLETE_DIGEST_ATTR=1 -I/usr/include/mysql -I/usr/include -I/usr/lib   makemd5.c   -o makemd5
/bin/sh: line 1: -DOBSOLETE_DIGEST_ATTR=1: command not found
make[2]: [<builtin>: makemd5] Error 127 (ignored)
rm -f md5global.h
./makemd5 md5global.h
make[2]: ./makemd5: No such file or directory
make[2]: *** [Makefile:813: md5global.h] Error 127
make[2]: Leaving directory '/.snapshots/persist/builds/packages/libsasl/repos/core-x86_64/src/cyrus-sasl-2.1.27/include'
make[1]: *** [Makefile:687: all-recursive] Error 1
make[1]: Leaving directory '/.snapshots/persist/builds/packages/libsasl/repos/core-x86_64/src/cyrus-sasl-2.1.27'
make: *** [Makefile:555: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

It's because CC_FOR_BUILD is not set by AX_PROG_CC_FOR_BUILD in configure.ac. But how did they build it then?

These macros:

>&2 echo before_proc_cc
AC_PROG_CC
>&2 echo before_prog_cc_for_build
AX_PROG_CC_FOR_BUILD
>&2 echo after
exit 1

print the following:

before_proc_cc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
before_prog_cc_for_build
checking how to run the C preprocessor... gcc -E
checking how to run the C preprocessor...  -E
after

Last edited by leniviy (2021-12-05 14:23:55)


Arch 64, xfce4

Offline

#2 2021-12-05 13:09:39

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [solved] Can't rebuild libsasl from ABS

Builds fine in a clean  chroot, you are probably missing some dependency .

what does pacman -Qs base-devel output ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2021-12-05 14:23:33

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: [solved] Can't rebuild libsasl from ABS

Lone_Wolf wrote:

Builds fine in a clean  chroot, you are probably missing some dependency .

what does pacman -Qs base-devel output ?

Thank you. Indeed, I still had autoconf-git 2.69 from 2018.


Arch 64, xfce4

Offline

Board footer

Powered by FluxBB