Questions tagged [source-code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
160 views

Why does Bash behave differently when compiled from source code?

I ran git clone https://git.savannah.gnu.org/git/bash.git cd bash/ ./configure make ./bash I noticed that the newly launched Bash instance did not inherit the environment, specifically the PS1 ...
Rustacean's user avatar
0 votes
1 answer
482 views

PHP was compiled with zlib module, but phpinfo() show it's disabled

In order to use Joomla! 4.3.1, I've compiled PHP 8.2 in an Oracle Linux 8.6 Server, with support for zlib compression: # php --ri zlib zlib ZLib Support => enabled Stream Wrapper => compress....
Juliano B. Nequirito's user avatar
1 vote
0 answers
39 views

minimal instalation for X11R7.7

For the source code available here: https://www.x.org/releases/X11R7.7-RC1/src/, what are the minimal set I should install to get a working enviroment and be able to start it with the command startx?
Kleber Mota's user avatar
1 vote
1 answer
223 views

/var/lib/plocate/plocate.db: has version 4294967295, expected 0 or 1; please rebuild it

No matter how many times I rebuild the plocate db I get: /var/lib/plocate/plocate.db: has version 4294967295, expected 0 or 1; please rebuild it. How in the world did I manage this?? /sbin/updatedb....
Fredrick Brennan's user avatar
0 votes
1 answer
115 views

Install mmdebstrap from source

I am trying to install mmdebstrap from source. I cannot find any instructions online nor file any Makefiles and such in the repo
sudoer's user avatar
  • 45
0 votes
2 answers
267 views

Rely on the existence of a package manager or install package via downloading the source?

I'd like to create a script that is able to install my desired set of packages in any Linux distro (initially create it to run in Ubuntu and later expand it to whichever) and basically function as an ...
Invalid_Path's user avatar
0 votes
1 answer
160 views

Why is "struct pid" member `numbers` defined as an array of size 1?

I noticed that, in struct pid in pid.h, the member numbers is defined as an array of size 1. struct pid { refcount_t count; unsigned int level; spinlock_t lock; /* lists of tasks that ...
Tomek Dobrzynski's user avatar
1 vote
1 answer
561 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 ...
U. Windl's user avatar
  • 1,411
2 votes
1 answer
14k 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 ...
einpoklum's user avatar
  • 9,515
3 votes
2 answers
3k 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 ...
einpoklum's user avatar
  • 9,515
0 votes
1 answer
399 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?
Arm User's user avatar
0 votes
2 answers
347 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)
thebearslicer 1's user avatar
2 votes
1 answer
302 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. ...
Wade Wayne's user avatar
0 votes
0 answers
356 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://...
Raj Mehta's user avatar
0 votes
1 answer
359 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 ...
Sollosa's user avatar
  • 1,929
2 votes
1 answer
651 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 ...
forest's user avatar
  • 2,655
1 vote
1 answer
42 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 -...
Hrishikesh Pawar's user avatar
1 vote
1 answer
190 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,...
linuxUsr118's user avatar
2 votes
1 answer
2k 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 ...
cnd's user avatar
  • 209
9 votes
5 answers
35k 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 ...
YnSkn's user avatar
  • 343
0 votes
1 answer
76 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 ...
James B. Byrne's user avatar
0 votes
1 answer
548 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 ...
AnanthaKrishna K's user avatar
0 votes
1 answer
23 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 ...
goodbye_world's user avatar
-2 votes
1 answer
547 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 ...
Nordine Lotfi's user avatar
0 votes
0 answers
38 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 ...
Franc's user avatar
  • 289
0 votes
1 answer
160 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 ...
Akib Azmain Turja's user avatar
4 votes
0 answers
1k 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 ...
MiniMax's user avatar
  • 4,123
2 votes
1 answer
474 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....
MasterOfTheHouse's user avatar
2 votes
0 answers
3k 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:~$ ...
ultimate cause's user avatar
0 votes
1 answer
38 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.
Maicake's user avatar
  • 109
-1 votes
3 answers
2k 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.
Jagadish S's user avatar
4 votes
1 answer
1k 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
268 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 ...
Pratham Patel's user avatar
-2 votes
1 answer
2k 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 ...
Anonymous's user avatar
  • 503
0 votes
1 answer
361 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) ...
user2752471's user avatar
0 votes
1 answer
367 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 ...
Porcupine's user avatar
  • 1,892
1 vote
0 answers
507 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 ...
27Blend's user avatar
  • 11
0 votes
1 answer
134 views

Where can I find gtkmm4 sources?

I need to install gtkmm4 where do I find its sources. I am using archlinux.
Bret Joseph's user avatar
1 vote
0 answers
118 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. ...
Jardel Lucca's user avatar
0 votes
1 answer
286 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 ...
Greendrake's user avatar
1 vote
1 answer
3k 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 ...
Vlastimil Burián's user avatar
0 votes
2 answers
118 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 ...
Corey Ogburn's user avatar
-2 votes
3 answers
314 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?
user293187's user avatar
0 votes
0 answers
1k 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.
William Parker's user avatar
1 vote
0 answers
847 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.
blackwing's user avatar
0 votes
0 answers
2k 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 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18)...
tenticon's user avatar
  • 171
5 votes
1 answer
3k 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 ...
Ryan Oliver Lanham's user avatar
-2 votes
1 answer
276 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.
Július Marko's user avatar
1 vote
1 answer
469 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, ...
Joakim L. Christiansen's user avatar
3 votes
1 answer
591 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,...
Stefano's user avatar
  • 131