2022 Developer Survey is open! Take survey.

Questions tagged [source-code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
23 views

Where can I get the current source code for SUSE SLES products?

I'm having a critical support issue with SLES that doesn't make any measurable progress (for months now). So I wanted to have a look at the source code myself; maybe I can spot the issue. (It seems a ...
user avatar
  • 801
0 votes
1 answer
26 views

Running closed source scientific software

Suppose you are required to install a heavy scientific software like Matlab or Intel Quartus on your Linux workstation. This can become a broader enquiry, for any kind of closed source software (...
user avatar
  • 11
0 votes
1 answer
393 views

git clone from https URL fails, says it's 'remote-https' is not a git command and that templates werent' found

I'm working on a CentOS 7.9 GNU/Linux system. I've built and installed a newer version of git (2.34.1 instead of 1.8.3.1 that's bundled with the distribution) under /opt/git/2.34.1, with a symlink to ...
user avatar
  • 7,249
1 vote
1 answer
112 views

How can I get glibc/libstdc++ sources and set them up for gdb to find?

I'm debugging this program which raises an exception. This makes my debugger look for some source code, e.g. ../sysdeps/unix/sysv/linux/raise.c - and fail to find it. Now, I realize it's not necessary ...
user avatar
  • 7,249
0 votes
0 answers
29 views

To Modify the ubuntu kernel third party drivers

We have a custom board with PCIe connector. eMMC is connected to the PCIe. So we are planning to use the linux kernel third party driver sdhci-pci-core.c and sdhci-pci-data.c which is present in ...
user avatar
  • 1
0 votes
1 answer
152 views

How would I go about compiling GNUzilla/Icecat from source in support for my specific ARM CPU?

I recently picked up the Pine H64 which has the Allwinner “H6” Quad-Core ARM Cortex A53 64-Bit Processor. How would I go about compiling Icecat in support for this on Manjaro ARM?
user avatar
0 votes
2 answers
79 views

How would I print only the main function from a C source file?

For example, cat foo.c would print the whole file, cat foo.c | grep main will print the line where the main function is defined. So how would I print the entire main function? (I am on Ubuntu)
user avatar
2 votes
1 answer
120 views

Does checkinstall command add dependencies in the package?

I learned about checkinstall today. I installed mdp on Linux Lite installed on VirtualBox using checkinstall. mdp depends on a package called libncursesw5-dev, which wasn't installed on my machine. ...
user avatar
0 votes
0 answers
142 views

How to Change VL53L0X(TOF) sensor I2C address using c language on BeagleBone Black

Aim: To read Data from 4 VL53L0X(TOF) sensors using I2C communication in C language on BeagleBone Black Board (Debian OS). I have implement c code for a single VL53L0X(TOF) sensor which is: https://...
user avatar
0 votes
1 answer
115 views

how to setup terraform on MACOS for remote KVM host?

I'm trying to configure this KVM provider on MAC, so I can provision VMs on a remote KVM server. name: terraform-provider-libvirt URL: https://formulae.brew.sh/formula/terraform-provider-libvirt ...
user avatar
  • 1,631
2 votes
1 answer
101 views

In what circumstances will a process be in state X (dead)?

According to fs/proc/array.c:130, the following array defines various process states: /* * The task state array is a strange "bitmap" of * reasons to sleep. Thus "running" is ...
user avatar
  • 971
0 votes
1 answer
28 views

What is the difference between the three files downloaded on running 'apt-get source {package-name}' ? Which is the actual source code of the package?

These four files/folders were downloaded after I ran apt-get source bash to get the source code of the package bash in Ubuntu. - bash-5.0 - bash_5.0-6ubuntu1.1.debian.tar.xz - bash_5.0-6ubuntu1.1.dsc -...
user avatar
1 vote
1 answer
113 views

Installing m4 on OpenBSD

I know I have a lot more to learn, but I'm stuck at with something; how would I go about install m4 (https://directory.fsf.org/wiki/M4#tab=Overview) in OpenBSD? The thing is, from everything I've read,...
user avatar
1 vote
1 answer
953 views

What is the correct way to enable source downloads in CentOS 8-stream?

So I tried to do this:- yumdownloader --source sendmail But hit this problem:- Last metadata expiration check: 0:08:48 ago on Wed 16 Dec 2020 10:34:00 AM GMT. No package sendmail-8.15.2-34.el8.src ...
user avatar
  • 59
7 votes
5 answers
17k views

How to get all paths from a website using cURL

curl //website// will get me the source code but from there how would I filter our every unique path and obtain the number of them? the question: Use cURL from your machine to obtain the source code ...
user avatar
  • 173
0 votes
1 answer
57 views

I am searching for the source code to libj2d-gtk-linux-i386-2.0.0.so

I am looking for the source code to libj2d-gtk-linux-i386-2.0.0.so which is reported to be contained in a file named GtkGraphics2DFactory.c. This library is an SWT 2 Java bit of glue that is found in ...
user avatar
0 votes
1 answer
177 views

If I create my own Linux distro, what is it's source code?

So I am creating my own live Linux distro based on Debian. If I am right, for it to be truly opensource I need to provide my distro's source code. So where is it? Is it the filesystem (I don't think ...
user avatar
0 votes
1 answer
18 views

Installing from source: helpful tools? and a few questions

a newbie here. There are some tools that you want to install from source but you do not know which libraries are needed because it is not mentioned in the Read-file. Installing from source bugs me ...
user avatar
-2 votes
1 answer
145 views

Text Editors with the smallest total LOC

I'm aware of certain Text Editors that would be called "small" in term of LOC, or "Line Of Code". I'm also aware it's no the best way to demonstrate (nor the only one) how small a ...
user avatar
1 vote
0 answers
34 views

Is it possible to make a database file out of a project directory(containing C files)?

My requirement is to improve time for a pattern search (using grep or any other search tool) in a source code directory containing mainly C source files. I have a big code base that makes it difficult ...
user avatar
  • 113
0 votes
1 answer
65 views

How do linux distros like Debian, Red Hat make many binary packages from one source package? [closed]

I wonder how linux distros like Debian, Red Hat, Gentoo, Ubuntu make many binary packages from one package? When I compile package, they just become install all in one. So my questions are: How do ...
user avatar
1 vote
0 answers
386 views

Location of the system-wide file table and inode table structures in the kernel source

To better understanding of the file management in Linux kernel I want to find out three table declarations in the source: a single process file descriptor table system-wide table of open files inode ...
user avatar
  • 3,720
2 votes
1 answer
261 views

Source code of arch command for macOS Catalina Version 10.15.3 (19D76)

I need to get the source code of the "arch" command located in /usr/bin/arch for macOS Catalina( see the output of sw_vers command below). macOS Catalina ProductName: Mac OS X ProductVersion: 10....
user avatar
2 votes
0 answers
2k views

Ubuntu apt-get source linux-image-$(uname -r) does not gives me kernel source

I am trying to download linux kernel source code for ubuntu distribution. I did this directly in my home folder. kerndev@kerndev-VirtualBox:~$ uname -r 5.0.0-37-generic kerndev@kerndev-VirtualBox:~$ ...
user avatar
0 votes
1 answer
33 views

Estimate number of LOC of namespaces implementation and bpf implementation

How can I estimate the LOC of a linux component? In this case I would compare the LOC number that implement namespaces with the number of LOC which implement BPF.
user avatar
  • 111
-1 votes
3 answers
908 views

Is there a source code available for patch command in Linux?

I am looking for a source code for the patch command used in Linux. Does anyone know if there is one available? I am looking for a something which is compatible to POSIX or more specifically QNX v7.
user avatar
4 votes
1 answer
764 views

How to become a Linux source code maintainer?

According to this link, when changes to the Linux source code are submitted, they are reviewed by a hierarchy of maintainers, eventually concluding with Linus himself. How does one become such a ...
user avatar
0 votes
1 answer
210 views

What is the most similar distro/flavor to the original UNIX source code? [duplicate]

Just like Ubuntu, Arch, Red Hat etc are just modifications to the original Linux Kernel... macOS (XNU), Solaris etc are some variants of the closed source code of AT&T's UNIX. But what is the ...
user avatar
-2 votes
1 answer
823 views

What does (($count+1)) do in this script?

Can anyone tell me what the purpose/action is of this area right here circled in neon green color? I would like to know its purpose in terms of what it does in a script. while IꓝS= read -r line; do ...
user avatar
  • 459
0 votes
1 answer
195 views

Necessary package for compiling libX11

I am currently trying to compile libX11 version 1.0.0 and during the configure process this error message shows up: checking for BIGREQS... configure: error: Package requirements (bigreqsproto) ...
user avatar
0 votes
1 answer
287 views

Installing gtkmm from source

I know that gtkmm can be installed using package manager, but here I am keen to install it from source. It requires me to install the Dependencies: libsigc++ 2.0 GTK+ 3.0 glibmm cairomm pangomm ...
user avatar
  • 1,362
1 vote
0 answers
340 views

kernel TCP/IP implementation - about accept queue

I'm recently learning the TCP/IP implementation in linux kernel(version 4.4), and got really confused about the accept queue. I know there is a queue in struct inet_connection_sock which is called a ...
user avatar
  • 11
0 votes
1 answer
126 views

Where can I find gtkmm4 sources?

I need to install gtkmm4 where do I find its sources. I am using archlinux.
user avatar
1 vote
0 answers
87 views

Is it possible to access linux/ramdisk code memory from its running system?

I'm working with an embedded Linux device that has to be auditioned by a regulatory agency. The agency will select a few devices in the field to check if the code running is the same as auditioned. ...
user avatar
0 votes
1 answer
215 views

Locating source code of the PureOS installer

I have been playing with PureOS installation options (the ultimate goal is to install it dual boot with MacOS on a MacBook Air, but this is out of the scope of this question). What I would like to ...
user avatar
1 vote
1 answer
2k views

dpkg-source: warning: failed to verify signature

System: Linux Mint 19 Cinnamon, based on Ubuntu 18.04. In this answer, I am being pointed at a different solution, other than installing directly from source. Since I haven't ever used dget, I must ...
user avatar
0 votes
2 answers
81 views

Where is the idiomatic place to put source code for my projects? [closed]

I'm a software developer and only in the last year or so have I been using Linux Mint over Windows as my working dev environment. For the last year I figured I'd do things my way and adapt as I learn ...
user avatar
-2 votes
3 answers
251 views

Linux Kernel code [duplicate]

Yesterday, I have seen Linux kernel source code. There were thousands of lines. Were all code written only by one person, Linus Torvalds?
user avatar
0 votes
0 answers
934 views

Where can I get the first edition of Minix OS?

I want to know where can I get the first edition of Minix OS? I would like to look at the source code of the first edition of Minix OS.
user avatar
1 vote
0 answers
640 views

Exact kernel source code on Fedora

Could you please share how to acquire the corresponding kernel source code for 4.5.5-300.fc24.x86_64? I cannot find it in /usr/src/kernels when installing that on Fedora 24.
user avatar
0 votes
0 answers
1k views

Install libstdc++ 4.9.x from source but compiled with glibc 2.14

I am on a Red Hat Enterprise Linux Server release 6.6 (Santiago) Linux version 2.6.32-696.20.1.el6.x86_64 (mockbuild@x86-042.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18)...
user avatar
  • 171
4 votes
1 answer
2k views

How does providing an asc file ensure I'm downloading the intended source code?

I'm installing cmake from the cmake.org website and they provide two files that I believe are intended to verify the source code download cmake-3.11.0-rc3.tar.gz On the same page, they have links to ...
user avatar
-2 votes
1 answer
202 views

Where are stored sources of compiled programs? [closed]

I want to find exact source code of compiled program in Linux/Unix systems. for illustration: computer:/ username$ whereis ping /sbin/ping And the task is to find the source code of /sbin/ping.
user avatar
1 vote
1 answer
292 views

How does the X server emit a character when the keyboard is pressed? [duplicate]

This is actually a coding question. I know that the X server checks the active keyboard layout to figure out which character (supporting unicode) to emit. But I don't actually know how this is done, ...
user avatar
3 votes
1 answer
471 views

How to organize 3rd-party libraries for Python?

I am new in Python. I want to install many 3rd-party libraries (I think they are also called packages?) like, for example, "AstroPy". But I am not sure where the new source code will be stored (I mean,...
user avatar
  • 131
3 votes
2 answers
2k views

Replacing backslashes with forward slash within double quotes

I have some C source code which was originally developed on Windows. Now I want to work on it in Linux. There are tons of include directives that should be changed to Linux format, e.g: #include "..\...
user avatar
1 vote
0 answers
140 views

CUPS source-code compiling error

I want to get printer state from CUPS. To do that , I am trying to customize CUPS's source code. So I can send a message to my front-end. I have downloaded CUPS repository from gitub Apple's CUPS ...
user avatar
6 votes
4 answers
6k views

Usage of Bang (!) in bash

I am reading the bash source code, and the BNF grammar for bash would be: <pipeline_command> ::= <pipeline> | '!' <pipeline> | <timespec&...
user avatar
  • 496
-1 votes
2 answers
3k views

What are the tools in /tools folder?

In the kernel source tree /tools, there are many submodules. What are the tools available in this folder? I know perf tool. What else are they? How to build them? Are they, by default, integrated into ...
user avatar
3 votes
1 answer
1k views

How to find the source code by a simple method [closed]

As I know,the Linux is a open source project,which mean we can find all code that build this system. But that is too hard for me. Is there a simple method which can check the source code of any ...
user avatar
  • 987