226,949 questions
Score of 0
1 answer
60 views
PHP pdo_kdb.so load fails: undefined symbol: file_globals_id on Linux x86_64 PHP7.2
I’m trying to load the pdo_kdb.so KingbaseES PDO driver for PHP on Linux x86_64 but it throws a symbol undefined error:
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_kdb.so'
(tried:
/...
Score of -3
0 answers
74 views
PowerShell works on cmd line, fails in system.d or crontab [closed]
When starting a HelloWorld.ps1 PS script this works perfectly on bash command line, but fails when started out of system.d or crontab with this error:
Couldn't find a valid ICU package installed on ...
Score of 0
0 answers
29 views
Dependency 'Deriv' not available / installation of package has non-zero exit status (Linux) [duplicate]
I recently changed my OS from Windows to Linux, and when trying to reinstall some basic packages I use often (e.g. car, glmmTMB, DHARMa..) the process fails and terminates. The first hint of anything ...
Score of -5
0 answers
173 views
How can I test Windows-specific code for a cross-platform C++ project while developing on Linux? [closed]
I am developing a cross-platform C++ application on Linux. The code contains Windows-specific branches (e.g., #ifdef _WIN32, Win32 API calls, MSVC-specific code). Because I develop on Linux, those ...
Score of 0
0 answers
97 views
XAMPP 8.2.4 install fails with "Error copying file" on Ubuntu (new release, PHP 8.5 native) — missing .so symlinks and config files
Below are the details of my XAMPP installation issue on Ubuntu, including the specific errors and file paths involved.
I'm trying to install XAMPP 8.2.4 on Ubuntu (a very recent release that ships PHP ...
Score of 4
0 answers
103 views
AF_PACKET + PACKET_FANOUT_LB: why does the observed round-robin sequence break after some time? [closed]
I am currently learning about packet-capturing techniques on Linux and experimenting with AF_PACKET sockets and PACKET_FANOUT specifically PAKCET_FANOUT_LB.
I created a test program with 4 AF_PACKET ...
Score of -4
0 answers
55 views
No sockaddr structure in Unix manpage [duplicate]
If I type man 2 bind in the terminal, I get the following semantics for the bind() function:
int bind(int sockfd, const struct sockaddr *addr,
socklen_t addrlen);
This takes struct ...
Score of 3
1 answer
178 views
Can the system call wait() ever return with a non-terminated child?
I read in Advanced Programming in the Unix Environment (APUE) that a signal can interrupt wait(), causing it to return -1 and with errno==EINTR (a system interrupt). So then I started to wonder if ...
Score of -2
0 answers
173 views
Why is elapsed time inacurate? [closed]
I am using Linux, and this code is specifically for Linux so Windows inaccuracy isn't accounted for.
const void Time::Update(void)
{
m_CurrentDelta = glfwGetTime();
m_DeltaTime = ...
Score of 2
1 answer
150 views
How to get to know CPU consumption for each process in Linux
I am aware of /proc/{PID}/status and other things from /proc directory. I am trying get this for my project which is programmed in rust. As std::process module doesn't have any inbuilt functions for ...
Score of 3
1 answer
118 views
Can't get virtual environment to activate from the terminal
I am trying to run a Python script using a venv I created with PyCharm. When I run the script using PyCharm, the script runs fine. When I try to run it from the terminal, I get "module not found&...
Score of -1
1 answer
136 views
GNU ld reports "syntax error" on line 3 of linker script, but line content appears valid [closed]
I'm writing a custom linker script from scratch for a bare-metal STM32L476RG (Cortex-M4) project . No HAL, no vendor-generated startup, just my own startup.c and linker script. Getting a persistent ...
Score of -1
2 answers
81 views
How to Statically Link and Build libgit2 with CMake?
I am building a C++ application that uses CMake, and I intend to add compatibility with a variety of Linux distributions. I want to statically link and build libgit2 with my application.
I tried using ...
Score of -2
1 answer
231 views
How to retrieve argv and argc in assembly language for x86_64 processors on Linux (SYSTEM V) OS
I was wondering how to retrieve argv and argc using x86_64 assembly language code on Linux (and SYSTEM V).
Score of 0
1 answer
150 views
What are error enums in wayland protocols?
Wayland object have error enums. For example, the wl_display object has following enums:
enum wl_display_error {
WL_DISPLAY_ERROR_INVALID_OBJECT = 0,
WL_DISPLAY_ERROR_INVALID_METHOD = 1,
...