date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,372,903,716,000
As seen here, compiling the Android kernel requires a prebuilt GCC toolchain (or the equivalent from the Android NDK). Cross-compilation makes sense; we are compiling code for a device with a different platform. However, the guide to compiling the Android source does not anywhere require that one download a toolchain ...
You need the gcc toolchain for both. The toolchain is part of the android source tree. Before you build the entire android source, you use the "lunch" tool, which sets the environment variables such that a prebuilt toolchain can be used. http://source.android.com/source/building-running.html#choose-a-target The page a...
Why does building an Android kernel need a toolchain, but compiling the entire source does not?
1,372,903,716,000
I am compiling wxWidgets as a pre-step to compiling the newest version of pgAdmin3 since there isn't a deb version in the repository that supports version postgres 9.2. I am having troubles and eliminating possibilities. The default package has a version of wxWidgets that works with pgAdmin3. I want to install the s...
There's a simple way, First use apt-get source XXX to get the source code, When extraction completes, enter the folder, i.e XXX-version, and check the debian/control file, normally you would see a DEB_CONFIGURE_EXTRA_FLAGS += line, that's where you should look at.
How do I compile wxWidgets with the same options as the package as the repository?
1,372,903,716,000
How does a package like ATLAS know which compilers I have installed on my system? For example, say that I install a local version of gfortran, how do I "register it" in the system so that a package like ATLAS knows that I have it?
Like many unix applications, atlas has a configure script that you run as first part of the build process. Atlas' configure script will try to find a fortran compiler by trying known variants. You can also give it a specific path (-Ss f77lib /path/goes/here) or disable the use of fortran altogether (--nof77)
How does a package like ATLAS know which fortran compiler to use?
1,372,903,716,000
I'm currently trying to compile a Linux USB UART driver, which is provided here: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410 The driver consists of 2 header files and one large C file. These are the contents of the Makefile: obj-m := vizzini.o KERNELDIR ?= /lib/modules/$(shell una...
In more recent versions of the linux kernel, the usb_serial_register and usb_serial_deregister functions were made static. Thus, the functions only exist as text in the kernel object files. The usb_serial_register_drivers and usb_serial_deregister_drivers can instead be used. Here are the definitions of the two sets o...
USB Driver Compilation Error
1,372,903,716,000
I've got fedora fc15 installed with python 2.7.1-7.fc15. It is built with ucs4 and I've got some packages here at work that are built with ucs2. I now cannot build other packages that use these ucs2 packages because my python is ucs4. And the problem is that as soon as I remove python, yum doesn't work and things get...
I think you've got two basic choices: if you have access to the source or srpms, recompile your ucs2 packages for ucs4 python. This may not be practical if, for example, you need to communicate or share data with other machines expecting ucs2. a database for example. I mention this option mostly for completeness -...
Replace python built with UCS4 with UCS2
1,372,903,716,000
So far never needed to deviate from the standard Fedora 16 core development components. I am needing to build clutter-mx project, but this library requires glib-2.0.32. Along with this, glib-2 needs libffi-3.0.11. I can download the source and build these libraries, however, I am concerned that installing them will br...
Sources looking for dependencies via auto-tools have a configure.ac file (and/or Makefile.am, I'm not sure on this one) in which those dependencies are defined. Most of the time people/IDEs will just put their currently installed versions of the libraries as dependency but don't actually need them in a that recent ver...
How to build a tool with specific libraries without breaking Fedora?
1,372,903,716,000
I was brave and tried to compile CUPS in a 32-bit Cygwin environment. I used the standard sources from the tarball. All went fine until linking. http://pastebin.com/QSKvLSmT Here's the end of the transcript: Compiling raster.c... raster.c:1: warning: -fPIC ignored for target (all code is position independent) Linking ...
Have a look at the CUPS port in cygwin-ports, they provide version 1.4.6 as of January 30th 2011. It patches quite a lot...
CUPS compilation fails on Cygwin
1,372,903,716,000
I compiled boost by this method on Windows: Go to the directory tools/build/v2/. Run bootstrap.sh Run b2 install --prefix=PREFIX where PREFIX is the directory where you want Boost.Build to be installed Add PREFIX/bin to your PATH environment variable. And It was working. Now I am trying this on Linux and it does not....
That ^M is a carriage return. Windows represents line breaks by the two-character sequence carriage return, line feed (CRLF or ^M^J). Linux and other unices use the single character LF. This CR is treated as an ordinary character, so the kernel looks for an interpreter called /bin/sh␍ instead of /bin/sh. When you invo...
Linux Boost compilation
1,372,903,716,000
I'm trying to install legacy software (32-bit) on a 64-bit LINUX HPC cluster. This is quite old software from 2005. Software is at https://www.drive5.com/pals/ OS details are PRETTY_NAME="Ubuntu 18.04.2 LTS" make gives: g++ -c -O3 -march=pentiumpro -mcpu=pentiumpro -funroll-loops -Winline -DNDEBUG=1 aligntraps.cpp -o...
NOTE - although the title of your question is about "installing old 32-bit software", there seems to be no particular reason not to build the program as native 64-bit software. However if you really do need to build a 32-bit version (for benchmarking, or for exactly reproducing previously published results) then here'...
installing old 32-bit software on latest UBUNTU
1,372,903,716,000
I'm using Debian testing and I'm having problem with installing Musescore 3. I'm trying to compile it, and I have tried following these guides: General linux and BSD instructions Ubuntu 14.10 and 16.04 instructions It seems like the issue is that there's one package that I'm missing, because the guides asks me to inst...
seems like a compatiblity issue for now. meanwhile, gnome-software gives flatpak support in debian testing. so you can try the flatpak : https://flathub.org/apps/details/org.musescore.MuseScore or appimage : https://musescore.org/en/download/musescore-x86_64.AppImage
How to install Musescore 3 on Debian?
1,372,903,716,000
I'm working on a project for a Raspberry Pi 3. One of the things my project requires is cython. Running pip install cython on a Raspberry Pi inside of a virtualenv takes about 40 minutes to complete, as cython apparently needs to be compiled first. During these 40 minutes, top shows cc running, trying to compile stuff...
Just copy the wheel file from the cache dir. When pip install pkgname is issued and pip doesn't find a compatible wheel to install from, it builds one from the source dist and stores it in cache to reuse for future reinstalls. To find the wheel file, issue $ find $HOME/.cache/pip -type f -name Cython*.whl Backup the ...
Is it possible to save binaries that pip compiles while installing a package?
1,372,903,716,000
I've been having nightmares with this mistery for 3 days. Like I've done many times I downloaded the sources for Python (this time 2.7.13) to compile them in an environtment with no access to the internet (and therefore no other way to get newer versions of software). I'm in Oracle Linux 7.3 (RHEL like environment). B...
I...what the...anyways, this also happens on Centos 7 which is more or less RHEL which is more or less Oracle linux. Notably if we run ldd on the resultant binary -bash-4.2$ ldd ./python linux-vdso.so.1 => (0x00007ffdb238e000) libpython2.7.so.1.0 => /lib64/libpython2.7.so.1.0 (0x00007fc691bfe000) ... the bui...
Python sources compile a different version
1,372,903,716,000
THE SCENARIO I'm writing a demo module to be inserted in Kernel and then write on system, for which I've already made entries in Header file and Table file. PROCEDURE FOLLOWED SO FAR I compiled the kernel using /linux-4.12.9$ sudo make -j4 In which I got some warnings and NO ERROR. Unable to grab those warnings anyw...
The issue was with supported libraries and packages I was using. To compile the latest kernel at this time of writing, you must have these 4 Packages / Libraries installed: libssl-dev libncurses5-dev qt4-default qt4-dev-tools Although I'm bit skeptical about qt4's dev-tools and default, since I've downloaded togethe...
aes-x86_64.ko No such file or directory for Module Installation failure after 4.12.9 Kernel compilation
1,372,903,716,000
I'm trying to install a kernel with the RT_PREEMPT patch on a Lubuntu 16.04 distro and running into some issues I'm not sure how to deal with. I've downloaded the sources for kernel v4.4.12 (linux-4.4.12.tar.xz) and what I believe to be the appropriate RT_PREEMPT patch (patches-4.4.12-rt20.tar.xz), both from kernel.or...
You probably wanted to take patch-4.4.12-rt20.patch.xz, not patches-4.4.12-rt20.tar.xz. As the extension hints, the latter is a tar archive, not a single patch file. Apparently it contains the same patches as the single-file version, but with commit messages etc. patch is smart enough to ignore useless stuff (like the...
Applying RT_PREEMPT
1,372,903,716,000
I just did some basic functions in asm that I compile in a shared library. Like : BITS 64 global foo section .text foo: mov rax, 1 ret I compiled with : nasm -f elf64 foo.S -o foo.o && gcc -shared foo.o -o libfoo.so I have a main of test : #include <stdio.h> int foo();...
You need to specify that the foo symbol corresponds to a function: [BITS 64] global foo:function section .text foo: mov rax, 1 ret
Compile shared library from asm code with current sources
1,372,903,716,000
I am trying to understand how to properly setup gcc to find stuff in my environmental variables. Currently I compiled some code, SDL and I added it to my .bashrc and sourced that .bashrc as well. Here's a simple hello program. #include "SDL.h" #include "SDL_ttf.h" #include "SDL_image.h" #include "SDL_mixer.h" #include...
You don't need any environment variables, just pass in right cflags and ldflags that SDL2 wants you to use: gcc main.c `pkg-config --cflags sdl2` -o main `pkg-config --libs sdl2` or either gcc main.c `sdl2-config --cflags` -o main `sdl2-config --libs` Remember: CFLAGS come before LDFLAGS, and LDFLAGS (and library sp...
Using gcc compile flags
1,372,903,716,000
I'm building a cross compiled 3.2.15 kernel for a Marvell Armada 370 system. The vendor's default config file for this is armada_370_v7up_defconfig. So when I perform a make armada_370_v7up_defconfig step, shouldn't that result in a .config file that matches the armada_370_v7up_defconfig file? Instead, I'm seeing a ...
Defconfig generates a new kernel configuration with the default answer being used for all options. The default values are taken from a file located in the arch/$ARCH/configs/armada_370_v7up_defconfig file. These default configurations are not designed to exactly fit your target but are rather meant to be a superset s...
Linux kernel build : shouldn't make <manufacturername>defconfig yield the same .config file?
1,372,903,716,000
Spending the weekend getting an inherited Ubuntu 8.04 in shape. Has to run for 2 more years (company internal, so security not really an issue). Trying to install tmux 1.9a from source (not in the repositories), but get error: error: ‘EVBUFFER_EOL_LF’ undeclared (first use in this function) although configure worked ...
Cannot comment but the problem is that tmux configure doesn't check for which version libevent library you have installed. Ubuntu 8.04 had libevent1 you need to install libevent2 (from source). Download from libevent.org, the last stable version. wget --no-check-certificate https://sourceforge.net/projects/levent/file...
installing tmux on Ubuntu 8.04
1,372,903,716,000
I am trying to compile a linux-sunxi kernel for my Banana pi. Using this link: http://sunxi.org/Linux_Kernel#Compilation Unfortunately I am getting the following message at the bottom when I am trying to compile the uImage and modules. (Step: make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules) Build...
I ran into the same problem! After googling around for a good while, it finally turned out (in my case) that the kernel build toolchain is very picky about some env options, as pointed out here. Here, in my ~/.bashrc I had export GREP_OPTIONS='--color=always' and that seems to be causing problem with the module script...
Compiling kernel but doesn't build kernel modules
1,372,903,716,000
Goal Install the Netis wf2190 wifi dongle onto a NUC with Debian. Environment NUC DC3217IYE Netis WF2190 Debian Linux 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux Installed build-essential I got the driver from the website, and all I am supposed to do is run a script install.sh whi...
NOTE: I'm on Fedora 20 but the issue would be the same here, only the pathing and Linux kernel version numbers are different. When I downloaded and attempted to run the install script, bash ./install.sh I noticed this error message as well. make: *** /lib/modules/3.16.3-200.fc20.x86_64/build: No such file or director...
Compiling/installing driver for Wifi dongle missing kernel modules?
1,372,903,716,000
I wan't to know if there is a faster way to compile the node.js code for raspberry then letting the raspberry itself compile the code. Assuming I have cloned the nodejs source into /home/pi/node/ on my raspberry. Is it right to run the ./configure on the raspberry. Then copy the node folder to my desktop compute...
My recommendation is that you don't do this and instead use a precompiled version. However, if that's not good enough: Is it right to run the ./configure on the raspberry? Yes. Then copy the node folder to my desktop computer and run make. No. The build must be done natively on the pi, or else with the use of a c...
Compile Node.js for Raspberry fast
1,372,903,716,000
I am writing a BASH script that automatically configures, builds and installs the most recent kernel image. The generated kernel should include the grsecurity patchset. It would use the previous configuration from /proc/config.gz, which I created manually when compiling the first custom kernel on the machine. Is it sa...
If you can't afford failure, test. Even if you can afford failure, testing is good. If at all possible, run the build in a dedicated test environment. In many cases a virtual guest makes for an adequate test system. When you cab reboot into your updated kernel and any subsequent tests complete successfully too, only...
Automatized kernel upgrade
1,372,903,716,000
I'm a bit confused. I just read this: http://www.es.freebsd.org/doc/handbook/binary-formats.html, which basically says that freeBSD uses the elf binary format. But when I compile my code I using cc, I get a file called a.out. So what's going on here? Can I somehow specify in which format cc should build my code? Does...
The a.out file is still leftover from when compilers were using the a.out format. If you check the file with file a.out you will see it is actually in ELF format. To specify the name of the output file, use cc -o exec_name code.c.
How to compile to a specific executable format?
1,372,903,716,000
I am compiling OpenSSL-1.0.1e on Debian Lenny (armv4 architecture). I have been following the instruction on http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssl.html to compile the source code. make and make test are successfully completed. I wonder how I should continue the compiling the file. Should I do m...
What is probably happening is: Your openssl debian package is placed on /usr/bin, /usr/lib, /usr/share/man, and the compiled one is entirely inside /usr/local/{bin,share,lib}. Your shell finds the /usr/bin binaries first(from the package) and executes it. You'll need to use the ./config --prefix=/usr while configuring...
openssl-1.0.1e compiling on Debian
1,372,903,716,000
I am trying to install Gnome on a freshly installed FreeBSD using the ports. I am stuck with an error message that says: Checking for headers required to compile python extensions ... not found Then it fails unexpectedly. I've tried to re-install python27 and that didn't help. What could possibly be the problem? EDIT:...
The problem, as the error noted was that 'make' was looking for the pth file. I fixed it by cp /usr/local/include/pth /usr/local/include/python2.7 I have python2.7 installed instead of 2.6 Of course this is a work-around and not a serious solution to the problem.
Installing Gnome on FreeBSD
1,372,903,716,000
I'm building the kernel (3.5) from /media/src_prog/linux-3.5/ to /media/sda5_k/. I've gone through the following steps: make O=/media/sda5_k/ menuconfig make -j2 O=/media/sda5_k/ make O=/media/sda5_k/ modules_install And when it comes to make O=/media/sda5_k/ install all I get is: [root@localhost linux-3.5]# make O=/...
I haven't checked whether this still applies to 3.5, but I think the kernel makefiles only support Lilo, not Grub. Once you've manually copied the bzImage file, and the initrd or initramfs if you're using one, you need to inform Grub of the new kernel. With simple setups, it's just a matter of running update-grub. Sin...
stuck at "make install"
1,372,903,716,000
I am trying to compile a program using GCC in SCO, and I am unable to find the ctype.h file. I have managed to find the other files that were missing when compiling, like string.h etc. I was getting this returned before I found where most of the other files were: In file included from test.c:76: strutil.c:2: string.h:...
ctype.h is part of the standard C library, so it really should be on your system somewhere. I don't use SCO, but on my various FreeBSD machines at home, and the numerous Solaris machines here at work, ctype.h is in /usr/include. If it's not there on your SCO machine, perhaps it's in /usr/local/include? Or perhaps ther...
Unable to find headers in GCC
1,372,903,716,000
I'm having trouble compiling a simple, sample program against glib on Ubunutu. I get these errors. I can get it to compile but not link with the -c flag. Which I believe means I have the glib headers installed, but it's not finding the shared object code. See also the make file below. $> make re gcc -I/usr/includ...
glib is not your problem. This is: re.c:(.text+0xd6): undefined reference to `print_uppercase_words' What it's saying is you're calling a function print_uppercase_words, but it can't find it. And there's a reason. Look very closely. There's a typo: void print_upppercase_words(const gchar *string) After you fix t...
Linker errors when compiling against glib...?
1,327,664,209,000
I have no root access on a machine and I'm trying to install a library called GiNaC locally in my home folder. I use this tutorial http://www.ginac.de/tutorial/Configuration.html#Configuration. At the end there is an example (don't need to disable the shared-library and I don't need a specific compiler). Unfortunately...
There's an error in that tutorial: in the shell, variable expansions use braces, not parentheses, so you need to write ${CPPFLAGS} and not $(CPPFLAGS). You can leave the braces off, even. Also, if you replace $HOME by its value, the $ must go ($ followed by a variable name means “take the value of”). export CPPFLAGS="...
Bind locally installed library
1,327,664,209,000
I've got an app which won't link, giving error: /usr/lib64/libcroco-0.6.so.3: undefined reference to `xmlGetProp@LIBXML2_2.4.30' /usr/lib64/libcroco-0.6.so.3: undefined reference to `xmlFree@LIBXML2_2.4.30' /usr/lib64/libcroco-0.6.so.3: undefined reference to `xmlHasProp@LIBXML2_2.4.30' I've got libxml installed: lib...
The only thing I can think of is that the .so files aren't in a directory the linker looks for libraries in. Can you find out where the file libxml2.so resides, and then put that directory on the link command line with a -L ?
libxml linker error
1,327,664,209,000
I have been recently trying to package a small Python utility to put on my PPA and I've almost got it to work, but I'm having problems in making the package install the binary (a chmod +x Python script) under /usr/bin. Instead it installs under /. I have this directory structure -> http://db.tt/0KhIYQL. My package Mak...
The problem is in the cp $(TARGET) $(DESTDIR) invocation: this will copy the file textrevise under directory $(DESTDIR), i.e. skips the /usr/bin prefix. You need to preserve the directory structure, so for instance: install: # ensure the destination directory exists mkdir -p $(DESTDIR)/usr/bin # copy the ...
Debian package issue: files are installing into '/'
1,327,664,209,000
I am running Debian 6, and decided to install 2.6.38 kernel from Unstable. I also installed the headers so that I can later on : sudo apt-get install --target-release=unstable linux-image-2.6.38-2-686-bigmem linux-headers-2.6.38-2-686-bigmem I then re-installed virtualbox-ose-dkms to that the VirtualBox drivers for 2...
autoconf.h moved from include/linux to include/generated in Linux 2.6.33. Authors of third-party modules must adapt their code; this has already been done upstream for VirtualBox. In the meantime, you can either patch the module source or create a symbolic link as a workaround. As for the NMI-related errors, the NMI w...
I am failing to build VirtualBox driver for Linux 2.6.38
1,327,664,209,000
It seems to have become a bit complex, so first some background: I need to compile self-contained programs that run on arm systems with glibc versions typically between 2.13 and 2.17. When trying to run these programs, I often get an error like this: dlopen: /lib/libc.so.6: version `GLIBC_2.26' not found (required by ...
You probably need to bootstrap the GCC/glibc pair completely — GCC embeds some knowledge of the C library it was built with. I suspect a simpler solution in your case is to use older images with older versions of glibc; for example, debian:wheezy is available for ARMv7 and uses glibc 2.13.
compiling old glibc on arm fails with undefined references in nis and nss
1,327,664,209,000
While learning how to build and install a custom kernel (for kernel hacking), I came across a contradictory statement. In this StackExchange answer, the author states: in the following instructions, paths inside the source tree take the form [src]/whatever, where [src] is the directory you installed the source into, ...
/usr is the wrong place for anything "custom": man hier: /usr/src Source files for different parts of the system, included with some packages for reference purposes. Don't work here with your own projects, as files below /usr should be read-only except when installing software (optional). ...
Is /usr/src a valid location for a custom kernel?
1,327,664,209,000
I want check the glibc version used by toolchain to build code for the target system (ARM). In toolchain directory I tried strings /sysroot/lib/libc.so.6 | grep GLIBC the output is GLIBC_2.4 GLIBC_2.5 GLIBC_PRIVATE __moddi3@GLIBC_2.4 __divdi3@GLIBC_2.4 __umoddi3@GLIBC_2.4 __udivdi3@GLIBC_2.4 _IO_file_xsputn@@GLIBC_2....
The highest version in the symbols is the one that matters; in your case, 2.5. See What do the multiple GLIBC versions mean in the output of ldd? for details.
Check the actual glibc version used
1,327,664,209,000
How can i recompile the kernel? I' m trying this guide https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel. I' m using lubuntu 18.04 on a tablet, i want a custom kernel to enable the touchcreen. Folowing this section took from https://github.com/onitake/gsl-firmware#silead_tsi made a custom silead_dmi.c (that is located...
The silead_ts.fw is for this deprecated project https://github.com/onitake/gslx680-acpi. You should use at least the https://github.com/onitake/gsl-firmware/blob/master/firmware/trekstor/surftab7new/firmware.fw, fimrware only extracted and not modified for the old project. But you must use this https://github.com/oni...
Recompile a kernel including a firmware
1,327,664,209,000
I have a single board computer with a 64bit ARM CPU and AES instruction set. The provided image of Debian 8 Jessie Mate Desktop uses OpenSSL 1.0.1k build that can't use that acceleration. I've built OpenSSL 1.0.2n from source with that acceleration enabled and installed it to /usr/local. This answer explains how t...
Are you sure applications aren't already using it? If you check the output of ldconfig -v, which OpenSSL library is shown first in the output? By default Debian-based systems (and I'm sure most other Linux systems that follow the FHS) search /usr/local/lib for libraries before searching /usr/lib. This means that any ...
How to force use OpenSSL from /usr/local
1,327,664,209,000
Trying to build firefox and I have weird errors and kernel messages before a silent fail of the compilation process compiling over a xfs filesystem, but no fails while compiling over jfs in the same hardware (different partitions). I read documentation about building firefox from source and I found this statement Note...
That statement was added because of specific build issue on NTFS, exact reason was not diagnosed but two candidates were "problem with the NTFS max path length" and "can't make symlinks on the NTFS partition", both are examples of difference in filesystem semantics (Unix vs. Windows).
Which are non native file systems in the context of building firefox?
1,327,664,209,000
The Fuse packages that are available by default on CentOS 7.3 are a bit dated. The compilation process for Fuse 3 and s3fs should be pretty straight forward. Fuse compiles and installs fine: mkdir ~/src && cd src # Most recent version: https://github.com/libfuse/libfuse/releases wget https://github.com/libfuse/libfus...
Version 1.8 of s3fs doesn't support fuse3. I learnt it rather hard way. I edited s3fs configure script to replace fuse with fuse3 in the version check. configure script went well after that. However, s3fs compilation fails with some error around incompatibility with fuse functions used. (I don't have the exact compila...
s3fs refuses to compile on CentOS 7, why's it not finding Fuse?
1,327,664,209,000
I am running BackBox Linux version 4.6. Trying to install GdMap version 0.8.1. I've entered: ./configure and then: make and this is what I got: make all-recursive make1: Entering directory /home/wh1t3ni9ht/Desktop/New Folder/gdmap-0.8.1' Making all in src make[2]: Entering directory/home/wh1t3ni9ht/Desktop/New Folde...
You can install GdMap from Terminal sudo apt-get install gdmap -y -y parameter automatically accepts dependencies.
Error with make and sudo make install command in terminal
1,327,664,209,000
I am trying to build a minimal sized kernel. So I ran the command: make tinyconfig On top of this I want to include some additional modules like NFC client support which depends on something called BROKEN. When I searched for BROKEN, it says: symbol: BROKEN [=n] Defined at: init/kconfig: 31 Question is how do I incl...
BROKEN indicates that a driver is broken: it doesn't work and may not even compile. It's deliberate that you can't include it in your kernel. CONFIG_BROKEN is not supposed to be defined anywhere. Look for a different version of the kernel where the drivers you need aren't marked as broken. If you want to use a driver ...
Init/kconfig : Broken
1,327,664,209,000
I'm using the Arch Linux and trying to create an AUR file that would download the source of a driver, compile and install it. What I wonder is - how can I check which packages are required for the compilation to succeed (just so I could declare those dependencies in my AUR)? Do I really have to analyze the very long c...
Most packages want to be helpful when installing them so they will have some dependency information in the README or the INSTALL file. Otherwise yes, checking the configure script it the only real option (Note: autoconf produces configure.log that enumerates dependencies, and several other configure scripts print a d...
Arch Linux: Finding out build-dependencies so they can be turned into AUR dependencies
1,327,664,209,000
I am running Gentoo Linux Hardened using kernel 4.3.3-hardened-r4 on an AMD A4-5300 APU. To troubleshoot a memory problem I have with my system I need to enable sysctl vm.zone_reclaim_mode=1, but doing so results in the following error message: sysctl: cannot stat /proc/sys/vm/zone_reclaim_mode: No such file or direct...
I'm answering my own question since it hasn't gotten any answer and the solution suggested on the comments worked like a charm. I solved this by enabling CONFIG_NUMA in my kernel configuration and rebuilding it. After booting my new kernel I could enable sysctl vm.zone_reclaim_mode=1 without a hitch.
How do I enable memory zone reclaim mode on the Linux kernel?
1,327,664,209,000
while trying to build it (executing install.sh), manny, many compiler warnings/errors appear: error: implicit declaration of function 'daemonize' [-Werror=implicit-function-declaration] warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] etc... etc... I know the same problem has been fixed...
Often the driver code for Linux you find at random sites (i.e., not in the vanilla kernel code, or some dedicated repo with kernel sources for a family of related devices) is way, way out of date with respect to the kernel sources you are trying to build against. Linux development moves ahead at breakneck speed, 24/7....
how can I build the RTL8192SE driver?
1,327,664,209,000
Can someone explain step by step how to install a module on a kernel with headers installed? I have Debian with Kernel 3.19.0 for banana pi from http://www.igorpecovnik.com/2014/09/07/banana-pi-debian-sd-image/comment-page-2/#comment-4729 and would like to install the smi2021 module needed for somagic easycap from htt...
If you can go with full kernel source tree, here are the steps I have followed in order to compile and install a driver on the source tree: Lets say you have the kernel sources extracted at /sources/linux-3.19 cd /sources/linux-3.19 make mrproper make menuconfig Here make sure to select your driver with "m" label. F...
How to install/compile module in Debian without using Full Kernel, only by using the already installed kernel headers
1,327,664,209,000
Been trying to reinstall vmware tools for my Fedora 20 VMware Fusion 6.0.4 Box for some time on my OSX Mavericks host now. After the Fedora update it was necessary so I could access Drop Box from the host and easily resize the window. But now I keep on getting these errors and retrying after installing all does not ...
In addition to the patches listed here you need to patch link.c from vmhgfs.tar. 184a185 > #if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 14, 99) 187a189,194 > #else > LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: calling " > "readlink_copy\n")); > error = readlink_copy(buffer, buflen,...
"error: implicit declaration of function ‘vfs_readlink’" while installing VMware Tools
1,327,664,209,000
I want to find the NetBSD rump package used for CentOS 6.5. The list is present here. I want to get the rump package for CentOS and after searching, I found this version of netbsd-rump used in CentOS 6: This does not indicate the NetBSD package. How do I find this information?
Given you can download the source RPM (SRPM) I'd download that and use rpmbuild to rebuild it myself. Step #1 - install any dependencies This will interrogate the downloaded SRPM and install anything that maybe missing. $ sudo yum-builddep --nogpgcheck netbsd-rump-20130704-2.1.src.rpm Loaded plugins: fastestmirror Lo...
How do I find the NetBSD release for CentOS 6.5?
1,327,664,209,000
I have Solaris 10 x86 just installed on my VBox, but I have problem with make and make install command. When I try to run this command I got error related to gcc compiler option -t: Here is config.log $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = unknown uname -m = i86pc uname -r = 5.10 ...
Two problems: Your makefile is set up to use the Solaris C compiler's options, but you're using gcc. You don't say how your makefile was generated, but replacing CFLAGS with something more appropriate will help. If you used a configure script to generate your makefile then I'm a bit confused, as doing CC=gcc ./conf...
Compilation of gtkdialog with gcc fails on Solaris (cc1: error: invalid option `t')
1,327,664,209,000
In order to build and install V4L2 module, do I have to download it, or it is already part of the kernel (and all I have to do is to choose it, in order to build it, via kernel configuration)? I 'm running Angstrom distribution [kernel 2.6.32.61]. Kernel configuration's result: --- Multimedia support *** Multime...
It is part of the vanilla linux source, and that should include 2.6.x. If you run make menuconfig and hit /, you get a search. For the 3.11 source, the V4L2 core is triggered by VIDEO_DEV which requires Device Drivers->Multimedia Support and either Device Drivers->Multimedia Support->Cameras/video grabbers or some ...
Install kernel module [V4L2]
1,327,664,209,000
I have already run make to compile the Linux Kernel 3.12.6, but when I run make install, I don't want it to install it in /boot (as I don't want another OS on the hard disk). How can I change it so it installs somewhere else? My intentions are to create an iso image (not to install Linux on my hard disk for boot) to t...
You do not need to run make install, the kernel and modules are already compiled. The compiled kernel is in the source directory at "arch/x86/boot/bzImage" (or similar depending on your compression), note the relative path here. normally you can manually "install" it with sudo cp arch/x86/boot/bzImage /boot/vmlinuz-ve...
Make Install Linux Kernel Location Change
1,327,664,209,000
I have made some little change to if_igb in /usr/src/sys/dev/e1000/if_igb.c. How can I compile only this file and load it to kernel dynamically? I'm using FreeBSD 8.2 Release.
To build just the igb module you can build it from /usr/src/sys/modules/igb. Note: igb is part of the GENERIC kernel. To use the module remove igb from the kernel config and rebuild your kernel
Change a driver's source code and compile
1,327,664,209,000
I have recorded that it took 50 minutes for an initial compilation of the OpenWrt firmware image, assuming all the necessary packages have been installed via sudo apt-get install. My BuildRoot Root Dir is openwrt. Subsequently, I found that if I rename the directory above the openwrt folder, with a minor change in a f...
No, it doesn't change the timestamps of contained files and directories, only on the directory itself. However, if the Makefile contains targets or dependencies that use absolute paths or even just $(src_dir) it will remake them, b/c it's a different/new target. See the GNU make documentation for conventions and advic...
How to make OpenWrt Makefile compile faster?
1,366,580,315,000
TLDR: What environment variables should I update to guarantee that my system has access to everything a package provides when building it on a non-traditional path? I usually don't have root access to the system where I work, so I install my packages on local folder under my home directory: ~/my_installations/ Over t...
You can update MANPATH (as well as INFOPATH) to point at your personal directory's man pages. Unfortunately, there's no single way to tell software to also look in your include paths. You might have to set CFLAGS (but not always) or other variable used in the build system.
Installing packages and tools on a local non-standard directory
1,366,580,315,000
I am trying to compile rrdtool from the source package. I don't use RPM packages, so don't ask me to install packages ;) I compile all the required software before rrdtool according to http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html ./configure of rrdtool is OK. But when I do make I got the following error : ...
"Aucun fichier ou dossier de ce type" == "No such file or directory" PKG_CONFIG_PATH contains (non-default) paths to add in order to find extra .pc files, not the packages themselves. If you have the correct .pc file in that directory it should work. Check the output of: pkg-config --cflags --libs glib-2.0 (with and ...
rrdtool 1.4.7 compilation fail : glib-2.0/glib.h
1,366,580,315,000
I'm trying to build MariaDB 5.5.27 from source. In fact, I just need the client, but I seem to have to build the complete database system anyway. While configuring with cmake and later compiling with make, I ran into the following problem: In file included from /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x...
You could try with: cmake . -DWITHOUT_OQGRAPH_STORAGE_ENGINE=1
Building MariaDB 5.5.27 without OQGraph: How to deselect the plugin?
1,366,580,315,000
I'm trying to install the webcam driver for my Logitech C210. After some googling Linux UVC driver seems to be what I need. I followed their typical use in hope to get it installed: git clone git://linuxtv.org/media_build.git cd media_build ./build make install Now, I get these errors when I try to ./build: make ...
You need to install the linux-headers package in order to compile additional modules. This package contains the .config file and other files that are generated during the compilation of the kernel. Pick the version of the package that matches your running kernel.
How can I install my webcam on Debian?
1,366,580,315,000
I'm trying to compile Ruby and really understanding what's going on while doing so. I've used and written Makefiles before, but not autoconf's configure.in files, so maybe the result I'm getting is by design: $ git clone https://github.com/ruby/ruby.git ... $ cd ruby $ git clean -fdx $ autoconf $ ./configure ... chec...
I know almost nothing about Ruby. I do, however know a fair amount about build systems. I'm gonna go way out on a limb here and suggest you've found a bona-fide bug in the Ruby build system. Here's my reasoning: I get the same result you do, on completely different systems (even Cygwin/Windows 7), both with the git r...
Why doesn't Ruby's configure script detect my executables and header files?
1,366,580,315,000
I am attempting to install the protobuf library on a Redhat system (Amazon EC2's Linux build). I ran configure, make, and make install without a problem, and the .so libraries were copied over to /usr/local/lib. Since Redhat doesn't include the /usr/local/lib directory in /etc/ld.so.conf, I added it, and then ran ldco...
ld.so.conf is only used by the runtime dynamic linker. ld doesn't us that at all - you need to pass /usr/local/lib as a linker search directory (either directly to ld if you're calling it directly, or via your compiler). For ld, GCC (or clang, and possibly quite a few other compilers), you do that with the -L flag.
ldconfig not finding libprotobuf.so
1,366,580,315,000
So I wasn't sure if this question would go best here or on Overflow or Server Fault, but decided to try here first. I'm installing LAMP on a VPS, and am running into issues configuring and building PHP. I've got MySQL installed, and it seems to be running fine. I'm trying to just go for a basic install of PHP with MyS...
I recommend looking for binary packages for your distribution. If you want to stick with building from source, I recommend that you start from a pristine source when you've installed new libraries. The configure program keeps a cache of what it's found, and sometimes won't realize that the cache is no longer up-to-dat...
Troubles installing php with MySQL support
1,366,580,315,000
I'd like to build custom Ubuntu installation CD's daily (CRON job). Think Daily Build but with custom packages coming from a text file. Packages would be a mix of some official Ubuntu packages as well as some custom packages from other sources. Any help would be appreciated but I'm specifically looking for suggestions...
This sounds like cdimage (which is what creates the Daily Build, and other Ubuntu images). You can read more about it and how to configure it here: http://people.canonical.com/~cjwatson/bzr/cdimage/mainline/README
How do I build custom Ubuntu CD's automatically?
1,366,580,315,000
Following instructions at http://lik.noblogs.org/post/2010/05/07/wacom-debian/ Though, i downloaded and built linuxwacom-0.8.8-11 ./configure --enable-wacom --with-kernel=/usr/src/linux-headers-2.6.32-5-686 completes without any problem, then copy sudo cp src/2.6.30/wacom.ko /lib/modules/2.6.32-5-686/kernel/drivers/...
I'm posting this as an answer, seeing as the OP has resolved his/her issue Apparently, performing a dist-upgrade will fix this issue. Although without more information we cannot really say how.
wacom pen & touch cth-460 on debian [closed]
1,366,580,315,000
I am working on Linux from Scratch and currently, I am on this page. While compiling binutils-2.32, I am getting this error: lfs@pop-os:/mnt/lfs/sources/binutils-2.32/build$ ../configure --prefix=/tools \ > --with-sysroot=$LFS \ > --with-lib-path=/tools/lib \ > ...
I think you have a permissions problem. Most likely somewhere in the path /mnt/lfs/sources/binutils-2.32/build, there is directory which lacks x permission for the user you are using. (It might also lack r permission; it should have both.) This is usually the result of creating as directory as root.
Linux From Scratch: Error while compiling binutils 2.32
1,366,580,315,000
In Ubuntu 16.04 I can do it like this: apt-get install build-essential git git clone https://github.com/CristianVladescu/rtl8814AU.git cd rtl8814AU && make && make install In FreeBSD, I tried this: Install FreeBSD 10.3 with source files - OK pkg install git - OK git clone https://github.com/CristianVladescu/rtl8814...
It appears that you are trying to compile a Linux kernel module on FreeBSD. Although both Linux and FreeBSD are Unix-like operating systems, they employ kernels that are in many aspects totally different from each other. This means that a piece of kernel code (a kernel module, for example) that is written specificall...
How to compile driver in FreeBSD
1,366,580,315,000
I'm encountering errors while trying to compile the kernel from source. I've looked around but I'm not finding anything that deals with the error I'm seeing specifically. I am using the guide on the Raspberry Pi website to go through the process and am just following the instructions. I'm compiling this as a kernel fo...
Unfortunately, this seems to be a more system-wide issue. A re-install of the OS solved this, and I used NOOBS instead or imaging the OS directly. Not the most elegant solution, but there you have it.
Error compiling kernel using guide provided on Raspberry Pi website
1,366,580,315,000
I'm compiling third-party kernel modules. Their build system goes to /usr/src/linux-headers-[version] (of a custom kernel chroot) and runs make from there. I want to find out, which files - sources and headers - have been used for the compilation, and which have not. Standard scripts/Makefile.build creates *.d files f...
Try using libtrashcan. After compiling it and installing, preload the library to your process. For example, the following will create a test file and then try to remove it, but because of libtrashcan the unlink system call will be replaced by a move, so the file will end up in ~/Trash: export LD_PRELOAD=/usr/local/lib...
How to preserve .d files after kernel compilation?
1,366,580,315,000
I tried to install MADWIFI on my OpenMediaVault-Server. Any more information needed? I get this error, every time i enter make: root@NAS2024:/media/5703066A59887FF7/Dsys/madwifi-0.9.4# make Checking requirements... ok. Checking kernel configuration... ok. make -C /lib/modules/2.6.32-5-amd64/build SUBDIRS=/media/570306...
Take a look at the details on how to cross compile the MadWifi drivers for other architectures. Such as in your case you're attempting to compile for ARM4, though perhaps not intentionally. http://madwifi-project.org/svn/madwifi/branches/madwifi-0.9.4/INSTALL excerpt Cross-compiling The build system is designed to ...
make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2
1,379,957,270,000
I am on Ubuntu Server 12.04 x86_64 and I need to build Android CyanogenMod 7.2 kernel module. My phone has custom ROM and a patched kernel: adb shell cat /proc/version yields Linux version 2.6.37.3-cyanogenmod-gf3345ef-dirty (subbotin@avs234) (gcc version 4.4.0 (GCC) ) #2 PREEMPT Sun Mar 13 14:55:50 MSK 2011 I have ...
However, if I remove "(subbotin@avs234)" the kernel compiles just fine. You don't need this in the LOCALVERSION. "subbotin@avs234" is just the one that compiled the kernel (user@host). It's not part of the version string nor needed for anything related to the compilation of the kernel.
Running make with vermagic kernel string with parentheses causes /bin/sh syntax error
1,379,957,270,000
I am trying to install a new gcc version (g++ version) in my home directory on a server I have access too. This server already has gcc elsewhere (and gmp etc) but older versions, and I want to locally install new ones. I followed this guide to the letter, working in my home directory. In summary I downloaded the new t...
If configure says "MPFR >= 2.4.2 needed", there is probably a good reason for that. I'm not sure whether GCC's build system can compile the libraries before it tries to link against them. The traditional way of doing this, is: build the required libraries and install them into your home directory or a subdirectory th...
gcc 4.6.3 local installation with gmp 5.0.5 mpfr 3.1.1 errors
1,379,957,270,000
So, I'm attempting to compile and use the 3.6.2 kernel on my Debian 6 VM (running under Windows 7 in VMware Workstation 9). I've already had several hick ups, but I am slowly getting through them but still not there, yet. So, I'm running the following (after extracting the file into /usr/src and running the commands v...
Alrighty then, I found the solution! Booyakasha! :) After running lspci I did a google search for LSI Logic kernel compile (or something to that affect) and came across this site. Since it applied to an older kernel version (I assume as it looks different to the settings I have available) I applied the following and g...
Unable to mount root fs after new kernel compile in VMware
1,379,957,270,000
I keep getting this error, when trying to compile my C program in SCO (using gcc). I have had a look on Google, and found this other forum: Linux Questions, and that guy had the exact same issue as I am getting. So I tried his solution, which is adding a line at the top of the program.c file: #include "err.h" I tried...
in C/C++ you have #include "" and #include <> , When you use "" It means you introduce your header file to compiler, So you need to -I in compile time such as: gcc -I. -I../Includes program.c -I get an argument as path of your includes files, When you use stdio or stdlib, they are default installed in gcc path and in...
/usr/include/stdio.h:140: parse error before `__gnuc_va_list'
1,379,957,270,000
I just found out today that our apache installation was installed without threading support (we need this for mod_wsgi). Will the following in the apache22 ports folder reinstall our apache with threading support? More importantly, will it do it seamlessly (leaving mod_wsgi working, http_root in tact etc?). make conf...
The above commands worked. Some forum posts seemed to suggest that ports doesn't mess with any files you've touched (therefore you're configuration files are saved).
Recompile Apache22 with threading seamlessly? [closed]
1,379,957,270,000
If I want to compile an application which needs packages that are not provided by distribution's package manager and I want to generate a distribution package from it, do users who use this distribution package need all those extra libraries installed or will these libraries packed into the binary? I know that it coul...
The ldd command will tell if a binary of yours is using shared libraries. For those that do not belong to a distribution package, it is up to you to either point the users of your package to the location where to download them, or to bundle the libraries in your package which is certainly the simpler way for the users...
Do applications usually use dynamic linked libraries?
1,379,957,270,000
I compiled the linux kernel by downloading it from kernel.org, put it on my desktop, and opened up terminal. I changed to the linux-3.2.13 folder, typed mr proper. Then I use make menuconfig to configure my .config file. After I am done with that and I save it I type make and terminal starts to compile the files. Afte...
Did I do something wrong? Doesn't look like it. Compiling a recent kernel is very resource-consuming. If your CPU isn't recent, and you don't have a lot of RAM, it can take very long. Make sure you only select the modules/features you actually need, and if you have a multi-core/thread machine with a bit of RAM, use ...
Am I in the right direction for a linux os?
1,379,957,270,000
I have built the Linux kernel, but I wanted to do it without building the debug package. I know that it's possible to disable the flag CONFIG_DEBUG_INFO, via scripts/config (with either --set str "" or --disable). However, I'm confused, because when I invoke make deb-pkg, the flag is reset to the value y, so that the ...
The behaviour changed slightly in 5.18, which may be why you’re seeing this. DEBUG_INFO is now a selection, so CONFIG_DEBUG_INFO is set based on other configuration settings. To disable DEBUG_INFO, you need to enable DEBUG_INFO_NONE and make sure all the other selections are disabled (DEBUG_INFO_DWARF_TOOLCHAIN_DEFAUL...
Why is the flag `CONFIG_DEBUG_INFO` reset when building the Linux kernel?
1,379,957,270,000
If I have installed a program from source (.tar.gz) using ./configure, make, make install – and then later on, want to add a build option (not sure the proper terminology – compile option?), is this possible? Do I have to uninstall the program first (like make uninstall or something) or, assuming I am using the same s...
To add to Fabby's answer: The answer to your question is Yes and No.  Yes, it's possible to add compile-time options to a program that you have installed.  But no, you can't do it without replacing / overwriting the compiled binary. At the risk of belaboring the obvious, some programs allow you to change how they wor...
Is it possible to add compile options to an already-installed program?
1,379,957,270,000
After building apache2 http server from source (2.4.23) I don't have the a2dissite and a2ensite commands. Configure was: ./configure --with-included-apr --prefix=/usr/local/apache2 When I run: whereis apache2 I get: apache2: /etc/apache2 /usr/local/apache2 But which apache2 shows nothing, maybe there needs to be so...
I'm guessing you built from the source available from the Apache Software Foundation. The a2en... scripts (and the supporting configuration) are Debian-specific; you'll find the source code in the corresponding Debian repository. Your best bet to build the httpd server from source and still be able to use a2ensite etc...
Can't find `a2dissite` and `a2ensite` after building `apache2` from source on Mint17
1,379,957,270,000
I informed about cross-compiling and found many information on how to create one, but very little information on how to use it. I would like to compile the tool bluez-utils-3.36 from this site with my own compiler. I found the cross compiler (arm-linux-gcc-4.4.3.tgz) on this site. My gcc version is 4.4.3, so i assume ...
There is a GNU standard naming scheme for compilers and other parts of the toolchain: <target triplet>-<tool name> The target triplet is of the form <machine>-<vendor>-<operatingsystem> And the tool name is gcc for the compiler, or another tool name like ld or strip or ar, etc... The default compiler, the one that c...
How to use my cross-compiler to compile something?
1,379,957,270,000
Trying to compile following code in terminal i got root@debian:/home/mz2/Documentos# LANG=C ./soma.c ./soma.c: line 2: syntax error near unexpected token `(' ./soma.c: line 2: `int soma (int a, int b);' The file soma.c is #include < stdio.h > int soma (int a, int b); int main (int argc, char **argv) { int x, ...
You have to compile it; as in: gcc -o soma soma.c Then run by: ./soma As of now you are running is as a script with what ever shell you are using. A better compile line would be: gcc -Wall -Wextra -pedantic -o soma soma.c That line will give you a lot of help and hints. And always remember to compile often so you d...
"fatal error: stdio.h : No such file or directory" while compiling a C file [closed]
1,379,957,270,000
I'm trying to compile a program which requires gettext (for intltools) on macOS. I tried the following commands to run the configure script: LDFLAGS=-L/usr/local/opt/gettext/lib CPPFLAGS=-I/usr/local/opt/gettext/include ./configure LDFLAGS=/usr/local/opt/gettext/lib CPPFLAGS=/usr/local/opt/gettext/include ./configure ...
The configure script fails because it can't find the gettext tools in the current $PATH. These tools include xgettext, msgfmt and other binaries. On macOS with Homebrew, the gettext Homebrew package does actually install these binaries, but they are located in the /usr/local/Cellar/gettext/0.18.1.1/bin directory rath...
Using gettext in configure
1,379,957,270,000
I have installed pfSense (FreeBSD based) in order to test it and learn. The first thing I want to do is installing some undetected network card (Silicom PXG6BPi) driver, but it needs compiling its source with the make command, so I issue: [2.2.6-RELEASE][[email protected]]/root: pkg search make R-cran-pkgmaker-0.22...
pfSense doesn't include make because they don't think you should be compiling code on the firewall. Q: Can I compile software on pfSense in the shell or console? The short answer: No The long answer: No... As they don't set it up as a build environment or test it, there will be more issues along the way. Best t...
pfSense: What package may I install for the `make` command?
1,379,957,270,000
This is the first time to install from source code in my life so thank you for any help. I am trying to install h4toh5 utility which could allow converting a hdf4 to hdf5 file. After a long process of reading online, I figured out how to configure. ./configure CC=/usr/bin/h4cc --with-hdf5=/usr/lib/x86_64-linux-gnu -...
According to your log file, you are missing the libmfhdf.a and libdf.a static libraries. Here is the interesting part of the log: gcc: error: /usr/lib/libmfhdf.a: No such file or directory gcc: error: /usr/lib/libdf.a: No such file or directory configure:3124: $? = 0 configure:3113: /usr/bin/h4cc -v >&5 gcc: error: /u...
C compiler cannot create executables when installing h4toh5 on debian
1,379,957,270,000
I'm getting an error when using make to install a program. The full step that it fails on with error looks like this: gcc -g -O2 -fopenmp -L/usr/lib -lcfitsio -lm -o lenstool_tab e_nfwg.o lenstool_tab.o midpnt.o nrutil.o polint.o qromo.o read_bin.o lenstool_tab.o: In function `main': /usr/local/src/lenstool-6.8/tabl...
The libraries being linked to should be specified after there is a reference to them. Thus, you will change the command to: gcc -g -O2 -fopenmp -L/usr/lib -o lenstool_tab e_nfwg.o lenstool_tab.o midpnt.o nrutil.o polint.o qromo.o read_bin.o lenstool_tab.o -lcfitsio -lm This should fix your problem. You can possib...
Undefined reference to math functions when linking with gcc
1,379,957,270,000
Somewhere in the back of my brain is the memory of reading a cautionary internet voice warning against compiling (i.e. running make) as the root user. Perhaps it's something like this story cprogramming.com. At the same time, it's generally advised that the root user owns /usr/local and its subdirectories. This makes ...
It's all about risk mitigation; if make does something destructive, you can only lose whatever data was modifiable (or deletable) by the user running it. So you run make as a plain user to limit the scope to that user's files, and you run make install as root because you have to if you want to install to /usr/local ty...
How do I install programs in /usr/local if they shouldn't be compiled by root?
1,379,957,270,000
I am trying to build a minimal linux, for experimenting out with drivers (LLD 3 book refers kernel version 2.6.10). LFS looks out to be a hell of a task, and I am not sure of if I would be able to build 2.6.10 looking at the latest documents. I am following this blog to build a minimal image that can run on qemu (I d...
If you do want to mess up with building everything from scratch, you can try Buildroot. git clone git://git.buildroot.net/buildroot cd buildroot make qemu_x86_defconfig make See this blog for further information.
Minimal Linux, stuck at building GRUB
1,379,957,270,000
I have an automatic build script; it uses a makefile which starts different ant scripts depending on the target. I start it using xterm (I have a shortcut on the desktop). It works fine, but if I want to check if the execution was successful, I can't close the terminal automatically. Is there a terminal emulator which...
You seem to open a terminal to run one command and close the terminal. This is a highly unusual workflow outside the Windows world. The usual workflow is to have a terminal open permanently, and run commands in it when needed. Or, when the command is a build command, work in an IDE and have it invoke the build process...
terminal emulator which auto closes after execution but stays open if there was an error during execution
1,379,957,270,000
I need to use older version of linphone on Debian 12. The version in bookworm is 4.4.10-3, and I actually need 3.12.0, which is available in Buster. On my bookworm build machine, I changed the sources, and downloaded linphone-3.12.0 sources from buster. Then I switched sources back to bookworm, and installed any neces...
The build fails because of Traceback (most recent call last): File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 764, in <module> main() File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 760, in main genwrapper.render_all() File "/mnt/src/deb/LINPHON...
building Debian package from Buster fails on Bookworm
1,379,957,270,000
I am trying to compile a file using a makefile but for some reason, I am getting an error in /bin/sh, I am getting the following: nvc FLAGS(LDFLAGS) black_scholes.o gaussian.o main.o parser.o random.o dcmt0.4/lib/random_seed.o timer.o util.o -o hw1.x /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh:...
The errors are in this line: $(CC) $LFLAGS$ (LDFLAGS) $(HW1_C_OBJS) -o $@ $LFLAGS is interpreted as $L followed by FLAGS; then $ (LDFLAGS) is interpreted as $ (the value of the variable whose name is a single space) followed by (LDFLAGS), which is why you get the FLAGS(LDFLAGS) output. To fix it, use $(CC) $(LDFLAGS...
Getting error in /bin/sh when trying to use a makefile
1,379,957,270,000
I am trying to compile dirtycow exploit file which can be found in here. gcc -pthread dirty.c -o dirty -m32 -lcrypt Because my target is 32 bit I compile it with -m32 and -lycrypt to make sure it works like intended. But an error occurs at compile time, /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/lib...
You need to install libc6-dev:i386, which is the package containing /usr/lib/i386-linux-gnu/libcrypt.so (which is what the linker needs): sudo apt install libc6-dev:i386
-lcrypt error cross compiling 64 to 32
1,379,957,270,000
I need to change the build configuration of a large number of rpm files for testing purposes. I'm only speaking of C/C++ code here. I'm not necessarily looking to do automation, but I could use a hand in doing it even manually. I'll use a specific example this time to make the question more clear. Say I have the rpm f...
The most universal way that would apply to most packages is customizing optflags macro. You can create $HOME/.rpmrc and put your customized value for it. To get the current value for our OS, you can first run: rpm --eval %{optflags} This will yield, for example on RHEL 8: -O2 -g -pipe -Wall -Werror=format-security -...
How can I reliably modify build configs and add compiler flags in C/C++ RPM files?
1,379,957,270,000
I have been using Linux for a few months, and I am currently running Arch on an old desktop. I have heard great things about compiling everything from source, for example, that Gentoo and other similar distros are blazing fast. I have never used it, and I do not plan to very soon. However, I may want to speed up my da...
The answer is yes. Noticeably? Almost never. Depending on the hardware you are going to run it on, speed "might" be improved, because you could use whatever optimizations your CPU offers. But note that most of the time an applications is just using libraries, so in order to take advantage of that you should go full Ge...
Does compiling applications from source improve speed and/or RAM?
1,379,957,270,000
If I want to implement some functionalities in Linux (e.g. open, copy, compress, delete, waiting events), is it better to implement it in C++ and run the binary as a process or to implement it in a shell script? Assuming I ignore the details of the implementation, I would like to now, during the start of the binary as...
Will in make a difference in speed? Yes an No If you are implementing a compression algorithm in a script, then it will be much slower than what can be done in C++. If you are just calling a library-function / command to do it, then there will be little difference. The time will be dominated by the compression done by...
Performance | Binary vs script
1,379,957,270,000
I tried to install apache on solaris. While I did know I can do this by pkg install apache-ver, this doesn't allow me to install to custom directory. CC='/usr/bin/gcc' ./configure --prefix=/opt/app/apache --with-pcre=~/Downloads/pcre-8.40 checking for chosen layout... Apache checking for working mkdir -p... yes checki...
The C pre-processor is being invoked incorrectly; you need to help ./configure out by setting the CPP variable: CC='/usr/bin/gcc' CPP='/usr/bin/gcc -E' ./configure --prefix=/opt/app/apache --with-pcre=~/Downloads/pcre-8.40
gcc cannot do ./configure apache
1,379,957,270,000
Could someone explain, what is the precise definition of cross compilation. I am asking this because. When a program is compiled to a different platform (operating system) other than the host platform on which the code is compiled, many refer to this as cross compilation. Eg : Compiling for Linux arm on Windows. On...
The term platform includes all the details regarding the computer on which the program is compiled or/and run. This means stuff like: CPU: instruction set (x86, x86_64, ARM), endianess (big endian, littel endian) compiler: language (e.g. C90, C99, C11), vendor (GCC, LLVM) libraries, for example glibc and BSD libc, ma...
Cross Compiling - Platform Vs Architecture
1,379,957,270,000
GNU C compiler passes the wrong architecture name to the linker. For example gcc helloworld.i throws the error ld: unknown/unsupported architecture name: -arch arm. After some experimenting with LD, it seems armv7 is the architecture I should use. The compiling and assembling operations seem to work fine. It appears t...
You shouldn't be upgrading your toolchain piecemeal. The parts have to work together. The GNU tools allow so much variation that it is essential that the pieces be set up to work together, especially for a cross-compiler. If you need a newer ld for some reason, you should build up a complete toolchain to support it.
GCC: set architecture to pass to linker
1,379,957,270,000
I am trying to compile vanilla Linux kernel 3.12.14 downloaded from kernel.org. When I try make gconfig, it says: * Unable to find the GTK+ installation. Please make sure that * the GTK+ 2.0 development package is correctly installed... * You need gtk+-2.0, glib-2.0 and libglade-2.0. * make[1]: *** No rule to make tar...
You have missed developement packages. They are libgtk2.0-dev, libglib2.0-dev. libglade2-dev. Install them and try again. Update In my Ubuntu 12.04: % cuonglm at ~ % apt-cache search libgtk2.0-dev libgtk2.0-dev - development files for the GTK+ library % cuonglm at ~ % apt-cache search libglib2.0-dev libglib2.0-dev - ...
Trouble using `make gconfig` in ubuntu linux
1,379,957,270,000
EDIT: Thanks to all answerers and commenters, there's enough material to keep me busy for a while ! I recently switch to Linux and wanted to do my first development steps with the following source: SDL Sopwith Beside compiling and running the program with the following lines : ./configure make I couldn't figure out...
I usually use vim or gvim, Eclipse, or IntelliJ. Eclipse works surprisingly well for other languages, it's primarily suited to Java but through the use of plugins can be adapted to suite other languages too. Eclipse CDT (C/C++ Development Tooling) excerpt The CDT Project provides a fully functional C and C++ Integr...
How do I know on which IDE to edit a project's source code?
1,379,957,270,000
I am trying to create a .spec file for creating mapserver as an rpm package. I am building on an RHEL6 64-bit server. In rpm files I can use some dir references like %{_libdir}, %{_bindir} and %{_libexecdir}. Where are these dir paths configured, and which can be used? The %files part of my rpm spec looks lige this...
This problem stems from the fact that RHEL wants 64-bit libraries to be installed to the /usr/lib64 directory, rather than the default /usr/lib directory. mapserver 6.2.1 uses autoconf, and includes a --libdir option. In your .spec file modify the ./configure command: %configure --libdir=$RPM_BUILD_ROOT%{_libdir}
How does RPM handle file locations?
1,371,543,299,000
I have recently compiled linux kernel 3.2. But at time of compiling in make menuconfig, I had disabled sound support. Now, I want to enable it without recompile it. I don't want to use stock kernel or direct kernel image, I always wanted to use compiled kernel.
make menuconfig and enable it as a module. Then, make modules_install, which compiles and installs modules, should do the trick. Though you wil not need to compile whole kernel, you will have to compile modules. At least on Gentoo. You haven't mentioned what distro you are using. May be someone else could provide bett...
how to enable sound support in linux kernel without recompile?
1,371,543,299,000
Is there a way to determine when a binary was compiled or installed? For example, I have a binary mdrun_d, and I would like to know when this particular binary was compiled or installed. The system administrator may have recompiled or reinstalled the binary, and I would like to know if this is the case (without emai...
Run ls -l /path/to/mdrun_d and ls -lc /path/to/mdrun_d to see when the executable was last modified and when its inode was last changed. Binary executables are rarely modifed after they are compiled, so the modification is likely to indicate when the program was compiled. The ctime will be at least as recent as the la...
Is there a way to determine when a binary was compiled or installed?
1,371,543,299,000
I am trying to install a Cisco VPN client under Ubuntu 10.04 LTS. In the extracted folder I type: alex@alex-laptop:~/Downloads/cisco4.8/vpnclient$ sudo ./vpn_install and there is output of activity which appears to end unsuccessfully with: /home/alex/Downloads/cisco4.8/vpnclient/linuxcniapi.c:458: error: ‘struct sk_b...
Your kernel is too recent for the Cisco VPN client. You'll need to downgrade your kernel to a 2.6.30 version or below. See the release notes.
Kernel module for Cisco VPN client doesn't compile under ubuntu 10.04 LTS?