226,906 questions
Score of -1
0 answers
81 views
Issue linking and finding functions in C library [closed]
I am currently working on a project and I am getting the following errors on attempt to compile through make.
gcc -o triangle triangle.c initShader.o -lXi -lXmu -lglut -lGLEW -lGLU -lm -lGL
/usr/bin/...
Score of -1
0 answers
50 views
How to get anchored values conditional in gitlab
I have a job template that includes a Vault secret configuration, but I want the secret to be injected only when $secret == "enabled".
The problem is that the template is inherited by other ...
Score of -1
1 answer
119 views
Start C# app in ubuntu from .desktop vs starting from command line [closed]
I have an app that I've built in rider(c#) on Ubuntu Noble targeting .net8 sdk. My app checks and updates a config file(if update is required) and uses System.Diagnotics.Process.Start("system ...
Score of -1
2 answers
216 views
How can I get VS Code to run command on commit?
I when I edit a LaTeX document which has the commit ID in it, I would like run latexmk -g when I commit to git so the document is updated with its current commit ID, I have not found any way to do ...
Score of 1
1 answer
101 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 0
0 answers
38 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 3
0 answers
114 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 -3
0 answers
63 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
191 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 1
1 answer
188 views
How to find the CPU consumption for each process in Linux using Rust
I am aware of /proc/{PID}/status and other things from the /proc directory. I am trying get this for my project which is programmed in Rust. As the std::process module doesn't have any in-built ...
Score of 3
1 answer
131 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
145 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
99 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
254 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
158 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,
...