View previous topic :: View next topic |
Author |
Message |
damianb n00b
Joined: 21 Sep 2023 Posts: 7
|
Posted: Sun Jan 12, 2025 5:56 pm Post subject: sys-cluster/drbd-utils fails at configure: error: pkg-config |
|
|
Hello, trying to upgrade drbd-utils. I have 9.25.0 currently and trying to upgrade to 9.27.0 .
The configure fails at:
Code: | checking pkg-config is at least version 0.9.0... no
configure: error: pkg-config not found
|
I have pkg-config:
Code: | pkg-config --version
2.3.0
|
Also, if i try to recompile version I have installed at this time (9.25.0) it rebuilds just fine. Just cant seem to be able to upgrade to 9.27.0 .[/code] |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31411 Location: here
|
Posted: Sun Jan 12, 2025 6:02 pm Post subject: |
|
|
Can you post config.log? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
damianb n00b
Joined: 21 Sep 2023 Posts: 7
|
Posted: Sun Jan 12, 2025 6:21 pm Post subject: |
|
|
Code: | cat /var/tmp/portage/sys-cluster/drbd-utils-9.27.0/work/drbd-utils-9.27.0/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by DRBD configure 9.27.0, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --docdir=/usr/share/doc/drbd-utils-9.27.0 --htmldir=/usr/share/doc/drbd-utils-9.27.0/html --libdir=/usr/lib64 --localstatedir=/var --with-initscripttype=systemd PKG_CONFIG=/bin/false --with-systemdunitdir=/usr/lib/systemd/system --with-bashcompletion --with-distro=gentoo --with-prebuiltman --without-rgmanager --with-pacemaker --with-udev --with-xen
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = x86_64
uname -r = 6.12.9-gentoo
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Sun Jan 12 05:15:22 EST 2025
/usr/bin/uname -p = Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/lib/portage/python3.12/ebuild-helpers/xattr/
PATH: /usr/lib/portage/python3.12/ebuild-helpers/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/sbin/
PATH: /usr/bin/
PATH: /sbin/
PATH: /bin/
PATH: /opt/bin/
PATH: /usr/lib/llvm/19/bin/
PATH: /usr/lib/llvm/18/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2922: checking for x86_64-pc-linux-gnu-gcc
configure:2943: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:2955: result: x86_64-pc-linux-gnu-gcc
configure:3360: checking for C compiler version
configure:3369: x86_64-pc-linux-gnu-gcc --version >&5
x86_64-pc-linux-gnu-gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3380: $? = 0
configure:3369: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-14.2.1_p20241221/work/gcc-14-20241221/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/14 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 14.2.1_p20241221 p7' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-offload-defaulted --enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp --disable-libada --enable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --without-isl --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config=bootstrap-cet
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.1 20241221 (Gentoo 14.2.1_p20241221 p7)
... rest of stderr output deleted ...
configure:3380: $? = 0
configure:3369: x86_64-pc-linux-gnu-gcc -V >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-V'
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:3380: $? = 1
configure:3369: x86_64-pc-linux-gnu-gcc -qversion >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:3380: $? = 1
configure:3369: x86_64-pc-linux-gnu-gcc -version >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-version'
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:3380: $? = 1
configure:3400: checking whether the C compiler works
configure:3422: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs conftest.c >&5
configure:3426: $? = 0
configure:3477: result: yes
configure:3481: checking for C compiler default output file name
configure:3483: result: a.out
configure:3489: checking for suffix of executables
configure:3496: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs conftest.c >&5
configure:3500: $? = 0
configure:3524: result:
configure:3548: checking whether we are cross compiling
configure:3556: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs conftest.c >&5
configure:3560: $? = 0
configure:3567: ./conftest
configure:3571: $? = 0
configure:3586: result: no
configure:3592: checking for suffix of object files
configure:3615: x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe conftest.c >&5
configure:3619: $? = 0
configure:3643: result: o
configure:3647: checking whether the compiler supports GNU C
configure:3667: x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe conftest.c >&5
configure:3667: $? = 0
configure:3679: result: yes
configure:3690: checking whether x86_64-pc-linux-gnu-gcc accepts -g
configure:3711: x86_64-pc-linux-gnu-gcc -c -g conftest.c >&5
configure:3711: $? = 0
configure:3758: result: yes
configure:3778: checking for x86_64-pc-linux-gnu-gcc option to enable C11 features
configure:3793: x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe conftest.c >&5
configure:3793: $? = 0
configure:3812: result: none needed
configure:3931: checking for getentropy
configure:3931: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs conftest.c >&5
configure:3931: $? = 0
configure:3931: result: yes
configure:3938: checking for gethostbyname_r
configure:3938: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3946: checking for __free_fn_t
configure:3946: x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe conftest.c >&5
configure:3946: $? = 0
configure:3946: x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe conftest.c >&5
conftest.c: In function 'main':
conftest.c:18:26: error: expected expression before ')' token
18 | if (sizeof ((__free_fn_t)))
| ^
configure:3946: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "DRBD"
| #define PACKAGE_TARNAME "drbd"
| #define PACKAGE_VERSION "9.27.0"
| #define PACKAGE_STRING "DRBD 9.27.0"
| #define PACKAGE_BUGREPORT "drbd-dev@lists.linbit.com"
| #define PACKAGE_URL ""
| #define HAVE_GETENTROPY 1
| #define HAVE_GETHOSTBYNAME_R 1
| /* end confdefs.h. */
| #define _GNU_SOURCE
| #include <search.h>
|
|
| int
| main (void)
| {
| if (sizeof ((__free_fn_t)))
| return 0;
| ;
| return 0;
| }
configure:3946: result: yes
configure:3959: checking for library containing request_key
configure:3995: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs conftest.c >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-cluster/drbd-utils-9.27.0/temp/ccvnGRp0.o: in function `main':
conftest.c:(.text.startup+0x9): undefined reference to `request_key'
collect2: error: ld returned 1 exit status
configure:3995: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "DRBD"
| #define PACKAGE_TARNAME "drbd"
| #define PACKAGE_VERSION "9.27.0"
| #define PACKAGE_STRING "DRBD 9.27.0"
| #define PACKAGE_BUGREPORT "drbd-dev@lists.linbit.com"
| #define PACKAGE_URL ""
| #define HAVE_GETENTROPY 1
| #define HAVE_GETHOSTBYNAME_R 1
| #define HAVE___FREE_FN_T 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply.
| The 'extern "C"' is for builds by C++ compilers;
| although this is not generally supported in C code supporting it here
| has little cost and some practical benefit (sr 110532). */
| #ifdef __cplusplus
| extern "C"
| #endif
| char request_key (void);
| int
| main (void)
| {
| return request_key ();
| ;
| return 0;
| }
configure:3995: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs conftest.c -lkeyutils >&5
configure:3995: $? = 0
configure:4017: result: -lkeyutils
configure:4151: checking pkg-config is at least version 0.9.0
configure:4157: result: no
configure:4163: error: pkg-config not found
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_c_undeclared_builtin_options='none needed'
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=native -O2 -pipe'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=native -O2 -pipe'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=set
ac_cv_env_PKG_CONFIG_value=/bin/false
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_getentropy=yes
ac_cv_func_gethostbyname_r=yes
ac_cv_objext=o
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_cc_c11=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_search_request_key=-lkeyutils
ac_cv_type___free_fn_t=yes
gl_cv_compiler_check_decl_option=-Werror=implicit-function-declaration
gl_cv_func_getcwd_path_max=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
BASH_COMPLETION_SUFFIX=''
CC='x86_64-pc-linux-gnu-gcc'
CFLAGS='-march=native -O2 -pipe'
CLITEST=''
CPPFLAGS=''
CXX=''
CXXFLAGS='-march=native -O2 -pipe'
DEFS=''
DISTRO='gentoo'
DPKG_BUILDPACKAGE=''
DRBD_BIN_DIR=''
DRBD_CONFIG_DIR=''
DRBD_LIB_DIR=''
DRBD_LOCK_DIR=''
DRBD_RUN_DIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
FLEX=''
GIT=''
GREP=''
HAVE_CXX11=''
INITDIR=''
LDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs'
LIBOBJS=''
LIBS='-lkeyutils '
LN_S=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='drbd-dev@lists.linbit.com'
PACKAGE_NAME='DRBD'
PACKAGE_STRING='DRBD 9.27.0'
PACKAGE_TARNAME='drbd'
PACKAGE_URL=''
PACKAGE_VERSION='9.27.0'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PO4A_GETTEXTIZE=''
PO4A_TRANSLATE=''
RPMBUILD=''
RPM_BUILDREQ_DEFAULT=''
RPM_DIST_TAG=''
RPM_REQ_BASH_COMPLETION=''
RPM_REQ_CHKCONFIG_POST=''
RPM_REQ_CHKCONFIG_PREUN=''
RPM_REQ_HEARTBEAT=''
RPM_REQ_PACEMAKER=''
RPM_REQ_XEN=''
RPM_SUBPACKAGE_NOARCH=''
SED=''
SHELL='/bin/sh'
TAR=''
UDEVADM=''
UDEVINFO=''
UDEV_RULE_SUFFIX=''
WITH_83_SUPPORT='yes'
WITH_84_SUPPORT='yes'
WITH_BASHCOMPLETION='yes'
WITH_CLITEST=''
WITH_DRBDMON='yes'
WITH_HEARTBEAT='yes'
WITH_MANUAL='yes'
WITH_PACEMAKER='yes'
WITH_PREBUILTMAN='yes'
WITH_RGMANAGER='no'
WITH_UDEV='yes'
WITH_WINDRBD='no'
WITH_XEN='yes'
XSLTPROC=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='/usr/bin'
build_alias='x86_64-pc-linux-gnu'
datadir='/usr/share'
datarootdir='/usr/share'
docdir='/usr/share/doc/drbd-utils-9.27.0'
dvidir='${docdir}'
exec_prefix='/usr'
host_alias='x86_64-pc-linux-gnu'
htmldir='/usr/share/doc/drbd-utils-9.27.0/html'
includedir='/usr/include'
infodir='/usr/share/info'
initscripttype=''
libdir='/usr/lib64'
libexecdir='/usr/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='/usr/share/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='/usr/sbin'
sharedstatedir='/usr/com'
sysconfdir='/etc'
systemdunitdir=''
target_alias=''
tmpfilesdir=''
udevdir=''
udevrulesdir=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "DRBD"
#define PACKAGE_TARNAME "drbd"
#define PACKAGE_VERSION "9.27.0"
#define PACKAGE_STRING "DRBD 9.27.0"
#define PACKAGE_BUGREPORT "drbd-dev@lists.linbit.com"
#define PACKAGE_URL ""
#define HAVE_GETENTROPY 1
#define HAVE_GETHOSTBYNAME_R 1
#define HAVE___FREE_FN_T 1
configure: exit 1
|
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31411 Location: here
|
Posted: Sun Jan 12, 2025 7:35 pm Post subject: |
|
|
There is an open bug #938082 but without solution.
Something goes wrong when the ebuild launches the function eauthorconf. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|