-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
gettext is a transitive dependency of opencv so I cannot use opencv or any other package that dependes on gettext.
Package and Environment Details
- Package Name/Version: gettext/0.26
- Operating System+version: Arch Linux
- Compiler+version: GCC 15.2.1
- Conan version: conan 2.26.1
- Python version: Python 3.14.3
Conan profile
Host profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=23
compiler.libcxx=libstdc++11
compiler.version=15
os=Linux
[conf]
Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=23
compiler.libcxx=libstdc++11
compiler.version=15
os=Linux
[conf]
Steps to reproduce
$ cat conanfile.txt
[requires]
opencv/4.12.0
[generators]
PkgConfigDeps
MesonToolchain
$ cat meson.build
project('mre', 'cpp')
opencv_dep = dependency('opencv', include_type: 'system')
executable('a', 'main.cpp', dependencies: opencv_dep)$ cat main.cpp
#include <iostream>
#include <opencv2/core.hpp>
int main() {
const auto A = cv::Mat::eye(5, 5, CV_32F);
const auto B = cv::Mat(5, 5, CV_32F, cv::Scalar(42));
std::cout << A << '\n';
std::cout << B << '\n';
std::cout << A + B << '\n';
}Logs
I get the same error from multiple gettext source files:
In file included from /usr/include/features.h:540,
from /usr/include/uchar.h:26,
from ./uchar.h:45,
from /home/qeq/.conan2/p/b/gette3b75e2bb2be86/b/src/gettext-runtime/intl/gnulib-lib/c32isalpha.c:21:
./wchar.h:856:23: error: expected identifier or '(' before '_Generic'
856 | _GL_EXTERN_C wchar_t *wmemchr (const wchar_t *__s, wchar_t __wc, size_t __n)
I think it has something to do with glibc version because on Ubuntu 24.04 it works fine:
- Arch: ldd (GNU libc) 2.43
- Ubuntu: ldd (Ubuntu GLIBC 2.39-0ubuntu8.7) 2.39
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working