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 or NDK, and my understanding is that none of the tools used (SDK, etc.) contain a toolchain, either. But of course compiling the source from scratch also builds the kernel. What's going on -- why do we need a gcc toolchain when building the kernel one way, but not the other?
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 about compiling the android kernel has different instructions because it assumes you want to build only a kernel and may not even download the entire android source tree. That's why it explains how to get and choose a toolchain in a manner different than through "lunch".
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 same options of this package. When I type: ./configure --help I get a whole host of options. How do I find out the options used to compile the default package version so I can match its functionality. I have tried to use: --enable-debug --enable-button --enable-ect. but after 10 or so options I worry that I will miss something (and according to the output of the other compile I am) or I will add something that is conflicting. Is there a list of options that the repository is using for wxWidgets. Using Mint Nadia 14/Ubuntu 12.10.
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 uname -r)/build PWD := $(shell pwd) EXTRA_CFLAGS := -DDEBUG=0 all: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install clean: rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions vtty This is the error the compiler is throwing when I run make: [sj755@localhost xr21v141x-lnx-2.6.35-pak]$ make make -C /lib/modules/3.4.9-2.fc16.x86_64/build M=/home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak make[1]: Entering directory `/usr/src/kernels/3.4.9-2.fc16.x86_64' LD /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/built-in.o CC [M] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.o /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1643:9: warning: initialization from incompatible pointer type [enabled by default] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1643:9: warning: (near initialization for ‘vizzini_device.ioctl’) [enabled by default] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1646:9: warning: initialization from incompatible pointer type [enabled by default] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1646:9: warning: (near initialization for ‘vizzini_device.tiocmget’) [enabled by default] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1647:9: warning: initialization from incompatible pointer type [enabled by default] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1647:9: warning: (near initialization for ‘vizzini_device.tiocmset’) [enabled by default] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c: In function ‘vizzini_init’: /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1663:9: error: implicit declaration of function ‘usb_serial_register’ [-Werror=implicit-function-declaration] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1677:9: error: implicit declaration of function ‘usb_serial_deregister’ [-Werror=implicit-function-declaration] /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c: In function ‘__check_debug’: /home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.c:1698:83: warning: return from incompatible pointer type [enabled by default] cc1: some warnings being treated as errors make[2]: *** [/home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak/vizzini.o] Error 1 make[1]: *** [_module_/home/sj755/Downloads/xr21v141x-lnx-2.6.35-pak] Error 2 make[1]: Leaving directory `/usr/src/kernels/3.4.9-2.fc16.x86_64' make: *** [all] Error 2 These are the headers included in the main c source file: #include <linux/kernel.h> #include <linux/jiffies.h> #include <linux/errno.h> #include <linux/tty.h> #include <linux/tty_flip.h> #include <linux/module.h> #include <linux/usb.h> #include <linux/usb/serial.h> #include <linux/serial.h> #include <linux/slab.h> #include <asm/unaligned.h> #include <asm/uaccess.h> #include <linux/usb/cdc.h> #ifndef CDC_DATA_INTERFACE_TYPE #define CDC_DATA_INTERFACE_TYPE 0x0a #endif #ifndef USB_RT_ACM #define USB_RT_ACM (USB_TYPE_CLASS | USB_RECIP_INTERFACE) #define ACM_CTRL_DTR 0x01 #define ACM_CTRL_RTS 0x02 #define ACM_CTRL_DCD 0x01 #define ACM_CTRL_DSR 0x02 #define ACM_CTRL_BRK 0x04 #define ACM_CTRL_RI 0x08 #define ACM_CTRL_FRAMING 0x10 #define ACM_CTRL_PARITY 0x20 #define ACM_CTRL_OVERRUN 0x40 #endif #include "linux/version.h" #include "vizzini.h" Running Linux kernel 3.4.9-2.fc16.x86_64 I would greatly appreciate any help in resolving the errors.
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 of functions: int usb_serial_register(struct usb_serial_driver *driver); void usb_serial_deregister(struct usb_serial_driver *device); int usb_serial_register_drivers(struct usb_driver *udriver, struct usb_serial_driver * const serial_drivers[]); void usb_serial_deregister_drivers(struct usb_driver *udriver, struct usb_serial_driver * const serial_drivers[]); usb_serial_register_drivers takes an NULL terminated array of pointers to usb-serial drivers to be registered and a usb_driver used for matching devices/interfaces. The details of the two sets of functions can be read here: http://lxr.free-electrons.com/source/drivers/usb/serial/usb-serial.c?v=3.4#L1379 http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/usb/serial/usb-serial.c#L1337 Within the source code for the driver, lines such as this: retval = usb_serial_register(&vizzini_device); were replaced with this: struct usb_serial_driver *serial_drivers[2] = {&vizzini_device,NULL}; retval = usb_serial_register_drivers(&vizzini_driver,serial_drivers); vizzini_driver and vizzini_device was defined elsewhere in the code as the following: static struct usb_driver vizzini_driver = { .name = "vizzini", .probe = usb_serial_probe, .disconnect = vizzini_disconnect, .id_table = id_table, .no_dynamic_id = 1, }; static struct usb_serial_driver vizzini_device = { .driver = { .owner = THIS_MODULE, .name = "vizzini", }, .usb_driver = &vizzini_driver, .description = "Vizzini USB serial port", .id_table = id_table, .calc_num_ports = vizzini_calc_num_ports, .probe = vizzini_probe, .open = vizzini_open, .close = vizzini_close, .write = vizzini_write, .write_room = vizzini_write_room, .ioctl = vizzini_ioctl, .set_termios = vizzini_set_termios, .break_ctl = vizzini_break_ctl, .tiocmget = vizzini_tiocmget, .tiocmset = vizzini_tiocmset, .attach = vizzini_attach, .disconnect = vizzini_serial_disconnect, .release = vizzini_serial_release, .read_int_callback = vizzini_int_callback, };
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 complicated. What is the best way to approach this problem, to get ucs2 python and all? Please note that I cannot influence the pre-built company binaries that are built with ucs2 to be built with ucs4. thanks
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 - from what you've said, it's not likely to be a viable option. compile and install a ucs2 version of python in /usr/local (preferably use GNU Stow to install it to get some of the benefits that a package would have given you). Set up the environment to point to the ucs2 python binaries and libraries - including LD_PRELOAD, PYTHONHOME, PYTHONPATH, etc. you probably want to write a script for this (source it, or put it in your shell's rc script - e.g. ~/.bashrc for bash - if you don't care about running non-ucs2 python at all) You will probably need to rebuild/reinstall any python libraries that care about unicode using your ucs2 python environment and install them under /usr/local. Finally, install your company's ucs2 packages under /usr/local. These may also need to be rebuilt to install under /usr/local. Either way, you should reinstall the fedora python packages to un-break everything else in the system that expects python to be installed (including yum)
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 break the rest of the system. The clutter-mx project uses autotools and looks for the glib-2 version. The questions are: If I build and install the new components, and something goes wrong, can you get back using yum, or something similar? Is there a way of getting autotools to look in another directory for the installed headers?
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 version. You can try to modify the required verions to your versions and try to build the package. You cannot directly make the autotools look in some alternate path but IIRC the autotools use pkg-config to determine package-installation specifics (man pkg-config). You can tell pkg-config to look in other directories by the evironmental variable PKG_CONFIG_PATH. However, the pkg-config path only works if you have the more recent libraries actually installed somewhere. But then I believe you can edit the *.pc files to force clutter-mx statically link those libraries. If you install two versions of a library and sometimes use the one and sometimes the other you may run into problems. If you actually replace files that were put there by rpm your about screwed. My advice is to modify the builddependencies or if need be determine why the more recent version of library XY is required and modify clutter-mx sources to not require that recent version and work with your current version. My second best advice is to get/build packages for your distribution of the requried libraries and install those. You really really shouldn't break out of the world set up by your distro, i.e. package manager. There are evil forces out there. :-)
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 libcupsimage.so.2... ../cups/libcups.a(file.o): In function `cupsFileRewind': /opt/cups/cups-1.4.8/cups/file.c:1465: undefined reference to `_inflateEnd' ../cups/libcups.a(file.o): In function `cups_fill': /opt/cups/cups-1.4.8/cups/file.c:2096: undefined reference to `_crc32' /opt/cups/cups-1.4.8/cups/file.c:2098: undefined reference to `_inflateInit2_' /opt/cups/cups-1.4.8/cups/file.c:2133: undefined reference to `_inflate' /opt/cups/cups-1.4.8/cups/file.c:2136: undefined reference to `_crc32' ../cups/libcups.a(file.o): In function `cupsFileSeek': /opt/cups/cups-1.4.8/cups/file.c:1569: undefined reference to `_inflateEnd' ../cups/libcups.a(file.o): In function `cups_compress': /opt/cups/cups-1.4.8/cups/file.c:1873: undefined reference to `_crc32' /opt/cups/cups-1.4.8/cups/file.c:1900: undefined reference to `_deflate' ../cups/libcups.a(file.o): In function `cupsFileOpenFd': /opt/cups/cups-1.4.8/cups/file.c:996: undefined reference to `_deflateInit2_' /opt/cups/cups-1.4.8/cups/file.c:1002: undefined reference to `_crc32' ../cups/libcups.a(file.o): In function `cupsFileClose': /opt/cups/cups-1.4.8/cups/file.c:121: undefined reference to `_inflateEnd' /opt/cups/cups-1.4.8/cups/file.c:150: undefined reference to `_deflate' /opt/cups/cups-1.4.8/cups/file.c:174: undefined reference to `_deflateEnd' collect2: ld returned 1 exit status Makefile:331: recipe for target `libcupsimage.so.2' failed make[1]: *** [libcupsimage.so.2] Error 1 Makefile:34: recipe for target `all' failed make: *** [all] Error 1 What to do?
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. I have the following situation: kron@kron:~/Software/Sources/boost_1_49_0/tools/build/v2$ ./bootstrap.sh bash: ./bootstrap.sh: /bin/sh^M: bad interpreter: No such file or directory kron@kron:~/Software/Sources/boost_1_49_0/tools/build/v2$ sh bootstrap.sh : not foundh: 8: : not foundh: 10: : not foundh: 14: bootstrap.sh: 15: Syntax error: Bad for loop variable kron@kron:~/Software/Sources/boost_1_49_0/tools/build/v2$ ls -l total 224 -rw-r--r-- 1 kron kron 271 Nov 5 2006 boost-build.jam -rw-r--r-- 1 kron kron 7437 Nov 9 2008 boost_build.png -rw-r--r-- 1 kron kron 7169 Jan 14 2009 boost_build.svg -rw-r--r-- 1 kron kron 842 Nov 5 2006 boost.css -rw-r--r-- 1 kron kron 1088 Jun 6 2011 bootstrap.bat -rw-r--r-- 1 kron kron 778 Oct 29 2003 bootstrap.jam -rwxr-xr-x 1 kron kron 2737 Jun 6 2011 bootstrap.sh drwx------ 2 kron kron 4096 Feb 22 18:28 build -rw-r--r-- 1 kron kron 36462 Jun 6 2011 build-system.jam
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 invoked sh explicitly, it also treated the CR as an ordinary character, part of commands names. This is a sign that those files were copied from a Windows machine where they were text files. You can't directly copy text files between Windows and Linux machines, you need to convert the line endings. Chances are that you extracted the archive on Windows, then copied the files to Linux. Instead of doing that, extract the archive on Linux. In the case of Boost, as of version 1.49.0, the archive is distributed in four formats: gzip and bzip2, with unix line endings; zip and 7z, with Windows line endings. The easiest way of compiling Boost under Linux is to use the bzip2 archive. If you must work with the 7z, you can use commands such as dos2unix or sed -i -e 's/\r$//' on all text files to convert the line endings.
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 aligntraps.o g++: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead cc1plus: error: CPU you selected does not support x86-64 instruction set Makefile:22: recipe for target 'aligntraps.o' failed make: *** [aligntraps.o] Error 1 Could someone advice on how to change the Makefile, shown below, so my software compilation make step will complete successfully? CFLAGS = -O3 -march=pentiumpro -mcpu=pentiumpro -funroll-loops -Winline -DNDEBUG=1 LDLIBS = -lm -static # LDLIBS = -lm OBJ = .o EXE = RM = rm -f CP = cp GPP = g++ LD = $(GPP) $(CFLAGS) CPP = $(GPP) -c $(CFLAGS) CC = gcc -c $(CFLAGS) all: pals CPPSRC = $(sort $(wildcard *.cpp)) CPPOBJ = $(subst .cpp,.o,$(CPPSRC)) $(CPPOBJ): %.o: %.cpp $(CPP) $< -o $@ pals: $(CPPOBJ) $(LD) -o pals $(CPPOBJ) $(LDLIBS)
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's how. Not that my system is 64-bit Ubuntu 18.04 with gcc/g++ 7 $ uname -a Linux t400s 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ g++ --version g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. In this particular case, the software you are trying to build does not appear to use any libraries beyond libm.a, and it appears to be sufficient to install the g++-multilib package (which will install gcc-multilib and libc6-dev-x32 as dependencies) and then modify the Makefile's CFLAGS to include -m32 So sudo apt install g++-multilib Then $ head -3 Makefile CFLAGS = -m32 -O3 -march=pentiumpro -mcpu=pentiumpro -funroll-loops -Winline -DNDEBUG=1 LDLIBS = -lm -static # LDLIBS = -lm $ make You will get some warnings that g++: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead however the pals program should build: $ file pals pals: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=1b9e369acf2aa7c6448b4132a203b8dccde16a7d, not stripped and run $ ./pals PALS v1.0 http://www.drive5.com/pals Written by Bob Edgar and Gene Myers. This software is donated to the public domain. Please visit web site for requested citation. Usage: pals -target <fastafile> -query <fastafile> pals -self <fastafile> Options: -out <outfile> (default standard output) -fwdonly don't align reverse strand -filterout <file> save filter hits to file Alignment parameters can be specified in three ways: (1) Defaults -length 400 -pctid 94 (2) Specify -length <minhitlength> -pctid <minhitid> (3) Specify all filter and d.p. parameters: -wordsize Filter word size -seedlength Seed hit length -seeddiffs Max #diffs in seed hit -length Min length of final hit -pctid Min %id of final hit -tubeoffset (Optional) For further information, please see the User Guide. Must specify either -self or both -target and -query
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 install qtquick1-5-dev but that package is no longer available in Debian. I know that Musescore exists as a package, but it is to old. Also, I don't want to use the app image. The error message begins like this. Tell me if you need more. In file included from /home/me/src/MuseScore/mscore/musescore.cpp:116: /home/me/src/MuseScore/mscore/startcenter.h:24:75: error: expected class-name before ‘{’ token class MyWebUrlRequestInterceptor : public QWebEngineUrlRequestInterceptor { ^
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, using 100% of one core. I need to do this several times every day, as I keep needing to reset the SD card to a fresh image of Raspbian. This is obviously very time-consuming, and is slowing down progress. When pip is done compiling cython, where are the binaries stored? Inside the virtualenv? Somewhere else on the filesystem? If they are stored in the virtualenv, can I archive the entire virtualenv folder, and restore it to a fresh Linux, and expect it to work? I know virtualenvs aren't supposed to be portable (without using the --relocatable arg, which seems to have its own issues), but in my case, the path of the virtualenv will remain the same when I restore it.
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 file; to install from the local file, just issue $ pip install path/to/file.whl Where to go from here: local repository When you have a lot of prebuilt wheels collected, the next step would be setting up a local PyPI repository to install from. The simplest way is to organize the wheels into package-named dirs and run a simple HTTP server: └── repodir ├── Cython │ └── Cython-0.28.0-cp36-cp36m-linux_aarch64.whl ... Start the server with e.g. $ python3 -m http.server -p 9000 Now you can pass the repo to pip: $ pip install Cython --extra-index-url=http://127.0.0.1:9000 or even persist the repo URL in the pip.conf to not to enter it each time: # pip.conf [global] extra-index-url=http://127.0.0.1:9000 Should you look for more, there are lots of fancy PyPI repo servers out there like devpi which offer versatile package management, web UI etc.
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). By default this one brings python 2.7.5 with it but I need the newer version for some testings and to get pip OOTB. I did the usual: # ./configure --enable-shared --with-ensurepip # make # make install Everything ran fine until I tried to install some extra package like requests with pip. [root@oel7 python_pkgs]# pip install requests-2.11.1/ Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip import main ImportError: No module named pip Huh... Then I tried to check what python was actually installed in /usr/local/ [root@oel7 ~]# /usr/local/bin/python2.7 --version Python 2.7.5 So I tried to recompile everything BUT without installing the resulting binaries to see what was actually being made inside the sources directory. [root@oel7 Python-2.7.13]# make distclean [root@oel7 Python-2.7.13]# ./configure --enable-shared --with-ensurepip [root@oel7 Python-2.7.13]# ... [root@oel7 Python-2.7.13]# make [root@oel7 Python-2.7.13]# ... [root@oel7 Python-2.7.13]# ./python --version Python 2.7.5 I don't have a clue of what to do now. Why does the resulting binary says its version is the one that's installed in the system by default? I also tried using another prefix without success.
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 build of 2.7.13 has for some reason picked up on the system-wide /lib64/libpython2.7* library, version 2.7.5. Without --enabled-shared the version is correctly 2.7.13: -bash-4.2$ make distclean ... -bash-4.2$ ./configure --disable-shared --with-ensurepip && make ... -bash-4.2$ ldd ./python linux-vdso.so.1 => (0x00007ffffab95000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f59a15a2000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f59a139e000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f59a119a000) libm.so.6 => /lib64/libm.so.6 (0x00007f59a0e98000) libc.so.6 => /lib64/libc.so.6 (0x00007f59a0ad7000) /lib64/ld-linux-x86-64.so.2 (0x00007f59a17d0000) -bash-4.2$ ./python --version Python 2.7.13 -bash-4.2$ This is completely undocumented in the python 2.7.13 README file, but one can use LD_* tricks (or ELF-mangling applications, below) to workaround this deficiency of the python build process. Also! If possible avoid building to the default of /usr/local as that will mix whatever version you're building into whatever might be in /usr/local; GNU stow or similar could be used if you do need a /usr/local/bin/python program but want the actual build sequestered off in, say, /usr/local/python-2.7.13: -bash-4.2$ make distclean ... -bash-4.2$ ./configure --enable-shared --with-ensurepip --prefix=/usr/local/python-2.7.13 -bash-4.2$ make && sudo make install ... Ugh, the LD_RUN_PATH method requires two builds, and now the second (the first build installed 2.7.13 libpython2.7 libraries this next build picks up on and uses)... -bash-4.2$ make distclean ... -bash-4.2$ ./configure --enable-shared --with-ensurepip --prefix=/usr/local/python-2.7.13 ... -bash-4.2$ LD_RUN_PATH=/usr/local/python-2.7.13/lib make ... -bash-4.2$ ldd ./python linux-vdso.so.1 => (0x00007ffca7bcd000) libpython2.7.so.1.0 => /usr/local/python-2.7.13/lib/libpython2.7.so.1.0 (0x00007fc6534fb000) ... -bash-4.2$ sudo make install ... -bash-4.2$ /usr/local/python-2.7.13/bin/python --version Python 2.7.13 -bash-4.2$ With instead ELF-mangling tools, one of which is https://github.com/NixOS/patchelf which after being installed per the README file in that repository one can do a single python build and install: -bash-4.2$ sudo rm -rf /usr/local/python-2.7.13 -bash-4.2$ ./configure --enable-shared --with-ensurepip --prefix=/usr/local/python-2.7.13 -bash-4.2$ make -bash-4.2$ patchelf --set-rpath /usr/local/python-2.7.13/lib python -bash-4.2$ sudo make install -bash-4.2$ ldd /usr/local/python-2.7.13/bin/python linux-vdso.so.1 => (0x00007ffeb57ac000) libpython2.7.so.1.0 => /usr/local/python-2.7.13/lib/libpython2.7.so.1.0 (0x00007fcea6b75000) ... -bash-4.2$ /usr/local/python-2.7.13/bin/python --version Python 2.7.13 -bash-4.2$
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 anyway, since terminal has overflown. After no errors, I fired /linux-4.12.9$ sudo make modules_install install THE PROBLEM which returns INSTALL arch/x86/crypto/aes-x86_64.ko cp: cannot stat 'arch/x86/crypto/aes-x86_64.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: /lib/modules/4.12.9/kernel/arch/x86/crypto/aes-x86_64.ko: No such file or directory scripts/Makefile.modinst:35: recipe for target 'arch/x86/crypto/aes- x86_64.ko' failed make[2]: *** [arch/x86/crypto/aes-x86_64.ko] Error 1 Makefile:1237: recipe for target '_modinst_' failed make[1]: *** [_modinst_] Error 2 Makefile:527: recipe for target '__build_one_by_one' failed make: *** [__build_one_by_one] Error 2 I've posted the working directory as well in the command above, in case I'm doing it in wrong one.
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 together. Also Note, I'm using Ubuntu 16.04 LTS and based on your Distro commands and package requirement are subject to change The Compilation So the above mentioned command (In question) for compilation is correct, just notice that it takes a pretty much time to complete. To verify if everything is going smooth, you reach at a point where you can find this - Setup is 17564 bytes (padded to 17920 bytes). System is 7215 kB CRC 3b136d62 Kernel: arch/x86/boot/bzImage is ready (#1) and it halts there for few mins and starts again with creation of object files. Yes, I didn't receive when I was first doing it with qt5 packages. The Installation Again the above mentioned command (In question) is cent percent correct and on firing same you'll see multiple Kernel objects installing in your system, something like this: ... INSTALL /lib/firmware/emi62/spdif.fw INSTALL /lib/firmware/emi62/midi.fw INSTALL /lib/firmware/kaweth/new_code.bin INSTALL /lib/firmware/kaweth/trigger_code.bin INSTALL /lib/firmware/kaweth/new_code_fix.bin INSTALL /lib/firmware/kaweth/trigger_code_fix.bin INSTALL /lib/firmware/ti_3410.fw ... and it must end with Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.12.9 Found initrd image: /boot/initrd.img-4.12.9 Found linux image: /boot/vmlinuz-4.4.0-93-generic Found initrd image: /boot/initrd.img-4.4.0-93-generic Found linux image: /boot/vmlinuz-4.4.0-92-generic Found initrd image: /boot/initrd.img-4.4.0-92-generic Found linux image: /boot/vmlinuz-4.4.0-91-generic Found initrd image: /boot/initrd.img-4.4.0-91-generic Found linux image: /boot/vmlinuz-4.4.0-83-generic Found initrd image: /boot/initrd.img-4.4.0-83-generic Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi Adding boot menu entry for EFI firmware configuration done NOOB ALERT Also please note, based on number of Operating Systems (and Kernel) installed on your system the number of Found statements may change! I have 2 OS and hence I've got one extra Found statement for Windows
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.org. I've extracted the kernel sources with tar xf, cd'd into the directory, then I try to apply the patch with xzcat ../patches-4.4.12.tar.xz | patch -p1 (per recommendations here: https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO). This command just generates a slew of errors complaining about patches for files that don't exist, previously applied patches, failed hunks, etc. Some of the patch hunks seem to succeed but so many of them fail. This can't be the correct means to patch this kernel can it? Any idea where I'm going wrong? EDIT: Here's a sample that covers the kinds of errors I'm seeing: rush@lubuntuvm:~/preempt-rt/linux-4.4.12$ xzcat ../patches-4.4.12-rt20.tar.xz | patch -p1 patching file arch/x86/kernel/nmi.c Hunk #1 FAILED at 231. Hunk #2 FAILED at 256. Hunk #3 FAILED at 305. 3 out of 3 hunks FAILED -- saving rejects to file arch/x86/kernel/nmi.c.rej patching file arch/x86/kernel/reboot.c patching file include/linux/kernel.h Hunk #1 succeeded at 255 (offset -4 lines). Hunk #2 FAILED at 460. 1 out of 2 hunks FAILED -- saving rejects to file include/linux/kernel.h.rej patching file kernel/panic.c Hunk #1 FAILED at 61. 1 out of 1 hunk FAILED -- saving rejects to file kernel/panic.c.rej patching file kernel/watchdog.c Hunk #1 FAILED at 361. 1 out of 1 hunk FAILED -- saving rejects to file kernel/watchdog.c.rej patching file kernel/stop_machine.c Hunk #12 succeeded at 482 (offset -10 lines). Hunk #13 succeeded at 544 (offset -10 lines). Hunk #14 succeeded at 648 (offset -10 lines). patching file block/blk-mq.c Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] Skipping patch. 3 out of 3 hunks ignored -- saving rejects to file block/blk-mq.c.rej patching file block/blk-mq.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 3 out of 3 hunks ignored -- saving rejects to file block/blk-mq.h.rej patching file net/core/dev.c Hunk #1 succeeded at 3542 (offset -3 lines). Hunk #2 succeeded at 3552 (offset -3 lines). patching file arch/arm64/Kconfig patching file arch/arm64/include/asm/thread_info.h patching file arch/arm64/kernel/asm-offsets.c patching file arch/arm64/kernel/entry.S can't find file to patch at input line 794 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |-- |2.8.1 | |patches/0026-hwlat-detector-Use-trace_clock_local-if-available.patch0000644001303100130310000000625512741715155025466 0ustar rostedtrostedtFrom c184dd4a4a5d88b3223704297a42d1aaab973811 Mon Sep 17 00:00:00 2001 |From: Steven Rostedt <[email protected]> |Date: Mon, 19 Aug 2013 17:33:26 -0400 |Subject: [PATCH 026/351] hwlat-detector: Use trace_clock_local if available | |As ktime_get() calls into the timing code which does a read_seq(), it |may be affected by other CPUS that touch that lock. To remove this |dependency, use the trace_clock_local() which is already exported |for module use. If CONFIG_TRACING is enabled, use that as the clock, |otherwise use ktime_get(). | |Signed-off-by: Steven Rostedt <[email protected]> |Signed-off-by: Sebastian Andrzej Siewior <[email protected]> |--- | drivers/misc/hwlat_detector.c | 34 +++++++++++++++++++++++++--------- | 1 file changed, 25 insertions(+), 9 deletions(-) | |diff --git a/drivers/misc/hwlat_detector.c b/drivers/misc/hwlat_detector.c |index c07e85932cbf..0fcc0e38df42 100644 |--- a/drivers/misc/hwlat_detector.c |+++ b/drivers/misc/hwlat_detector.c
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 tar file structure, apparently), so some of the patches work. But I suppose the component patches might depend on each other, and be in the wrong order in the tar file, so it doesn't apply cleanly.
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(); int main() { printf("%d\n", foo()); return (0); } If I compiled it with the foo.o directly, everything works well. But if I compiled like this : gcc main.c -L. -lfoo I would get this error : /usr/.../bin/ld: warning: type and size of dynamic symbol `foo' are not defined I thought it was because the prototype is not declared, but I recompiled foo.o with a lib.h file containing the prototype, and the same problem occurs. Is that I must complete another section of the elf file? Thank you.
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 <stdlib.h> #include <stdio.h> SDL_Window* window; SDL_GLContext* main_context; int main(int argc, char** argv) { printf("hello world %d %c \n", argc, argv[0][argc]); if (SDL_Init(SDL_INIT_EVERYTHING) != 0) { SDL_Log("sdl failed to core_engine_init, %s", SDL_GetError()); SDL_Quit(); return -1; } SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); window = SDL_CreateWindow( "title", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 300, 300, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE); if (NULL == window) { SDL_Log("SDL Failed to create window, %s", SDL_GetError()); SDL_Quit(); return -1; } main_context = SDL_GL_CreateContext(window); if (NULL == main_context) { SDL_Log("SDL failed to create main context, %s", SDL_GetError()); SDL_Quit(); return -1; } return 0; } Trying to compile this with gcc -o main main.c I get these errors: blubee$ gcc -o main main.c /tmp/cc5hRcaO.o: In function `main': main.c:(.text+0x3e): undefined reference to `SDL_Init' main.c:(.text+0x47): undefined reference to `SDL_GetError' main.c:(.text+0x59): undefined reference to `SDL_Log' main.c:(.text+0x5e): undefined reference to `SDL_Quit' main.c:(.text+0x77): undefined reference to `SDL_GL_SetAttribute' main.c:(.text+0x86): undefined reference to `SDL_GL_SetAttribute' main.c:(.text+0x95): undefined reference to `SDL_GL_SetAttribute' main.c:(.text+0xa4): undefined reference to `SDL_GL_SetAttribute' main.c:(.text+0xb3): undefined reference to `SDL_GL_SetAttribute' main.c:(.text+0xd8): undefined reference to `SDL_CreateWindow' main.c:(.text+0xf0): undefined reference to `SDL_GetError' main.c:(.text+0x102): undefined reference to `SDL_Log' main.c:(.text+0x107): undefined reference to `SDL_Quit' main.c:(.text+0x11d): undefined reference to `SDL_GL_CreateContext' main.c:(.text+0x135): undefined reference to `SDL_GetError' main.c:(.text+0x147): undefined reference to `SDL_Log' main.c:(.text+0x14c): undefined reference to `SDL_Quit' collect2: error: ld returned 1 exit status adding the SDL2 linker flag this returns an error still: blubee$ gcc -lSDL2 -o main main.c /usr/bin/ld: cannot find -lSDL2 collect2: error: ld returned 1 exit status this command compiles everything fine though blubee$ gcc -I/opt/SDL2/include/SDL2 main.c -o main -L/opt/SDL2/lib -l SDL2 the thing is that I've added these paths to my .bashrc although I might have done it incorrectly. Here is my bashrc export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/SDL2/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/SDL_IMAGE/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/SDL_TTF/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/SDL_MIXER/lib export LD_RUN_PATH=$LD_RUN_PATH:/opt/SDL2/lib export LD_RUN_PATH=$LD_RUN_PATH:/opt/SDL_IMAGE/lib export LD_RUN_PATH=$LD_RUN_PATH:/opt/SDL_TTF/lib export LD_RUN_PATH=$LD_RUN_PATH:/opt/SDL_MIXER/lib export C_INCLUDE_PATH=$C_INCLUDE_PATH:/opt/SDL2/include/SDL2 export C_INCLUDE_PATH=$C_INCLUDE_PATH:/opt/SDL_IMAGE/include/SDL2 export C_INCLUDE_PATH=$C_INCLUDE_PATH:/opt/SDL_TTF/include/SDL2 export C_INCLUDE_PATH=$C_INCLUDE_PATH:/opt/SDL_MIXER/include/SDL2 echoing these environmental variables show that they are there and should be working but it's not. What am I doing wrong with this setup?
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 specification with -l) comes last. SDL2 comes with sdl2-config script preinstalled. You will need to set your PATH to the directory where it resides to call it successfully: export PATH=/opt/SDL2/bin:$PATH If you will run every of *-config commands directly, you will see that they just output right cflags and ldflags for you. That's because the libraries that employ these scripts usually bigger than to specify single -I/-L argument, and it is not portable to specify single -I/-L arguments for them, because number of such arguments can be increased in future. And you should not install every package in it's own directory. Install everything into /usr/local for example, then you will not need even to specify anything (most distros point you to /usr/local automatically).
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 lot of differences (can include if needed). Or am I misunderstanding how make defconfig works?
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 so you only have to modify them a bit. The make armada_370_v7up_defconfig creates your initial .config, which you can now edit through make menuconfig and make your changes. After that, you can run make which will then compile the kernel using your settings.
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 without complaining (after installing some -dev packages). How to solve this? (so used to tmux now that I don't want to go back to screen). Or is there a repository I can download a tmux.deb from?
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/files/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz gzip -d < libevent-2.0.22-stable.tar.gz | tar xf - cd libevent-2.0.22-stable ./configure --prefix=/usr make sudo make install ldconfig and after that configure, compile and install tmux (I used an older 2.0 version, but this should solve your problem).
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) Building modules, stage 2. MODPOST 0 modules Does anyone have any clue how to fix this? I do have a configuration where loadable modules are enabled and for example I have the hid-multitouch enabled. When executing make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install I get: DEPMOD 3.19.0-rc6-45640-g77f18db With no build modules in it at all..
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 generation. So changing it to export GREP_OPTIONS='--color=auto' or export GREP_OPTIONS='--color=never' AND logging out/in solved the problem! When GREP_OPTIONS='--color=always' used: $ make clean modules SUBDIRS=drivers/staging/usbip CLEAN drivers/staging/usbip/.tmp_versions CLEAN drivers/staging/usbip/Module.symvers LD drivers/staging/usbip/built-in.o CC [M] drivers/staging/usbip/usbip_common.o CC [M] drivers/staging/usbip/usbip_event.o CC [M] drivers/staging/usbip/stub_dev.o CC [M] drivers/staging/usbip/stub_main.o CC [M] drivers/staging/usbip/stub_rx.o CC [M] drivers/staging/usbip/stub_tx.o CC [M] drivers/staging/usbip/vhci_sysfs.o CC [M] drivers/staging/usbip/vhci_tx.o CC [M] drivers/staging/usbip/vhci_rx.o CC [M] drivers/staging/usbip/vhci_hcd.o LD [M] drivers/staging/usbip/usbip-core.o LD [M] drivers/staging/usbip/vhci-hcd.o LD [M] drivers/staging/usbip/usbip-host.o Building modules, stage 2. MODPOST 0 modules Changing to GREP_OPTIONS='--color=auto' and logging out/in: $ make clean modules SUBDIRS=drivers/staging/usbip CLEAN drivers/staging/usbip/.tmp_versions CLEAN drivers/staging/usbip/Module.symvers LD drivers/staging/usbip/built-in.o CC [M] drivers/staging/usbip/usbip_common.o CC [M] drivers/staging/usbip/usbip_event.o CC [M] drivers/staging/usbip/stub_dev.o CC [M] drivers/staging/usbip/stub_main.o CC [M] drivers/staging/usbip/stub_rx.o CC [M] drivers/staging/usbip/stub_tx.o CC [M] drivers/staging/usbip/vhci_sysfs.o CC [M] drivers/staging/usbip/vhci_tx.o CC [M] drivers/staging/usbip/vhci_rx.o CC [M] drivers/staging/usbip/vhci_hcd.o LD [M] drivers/staging/usbip/usbip-core.o LD [M] drivers/staging/usbip/vhci-hcd.o LD [M] drivers/staging/usbip/usbip-host.o Building modules, stage 2. MODPOST 3 modules CC drivers/staging/usbip/usbip-core.mod.o LD [M] drivers/staging/usbip/usbip-core.ko CC drivers/staging/usbip/usbip-host.mod.o LD [M] drivers/staging/usbip/usbip-host.ko CC drivers/staging/usbip/vhci-hcd.mod.o LD [M] drivers/staging/usbip/vhci-hcd.ko Mad!
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 which throws me this error when trying to compile. I do have the /lib/modules/3.16-0.bpo.2-amd64/ directory, but no build folder. I have tried adding this folder, but the script is apparently looking for some source files and I don't know what they are and where to get them. Any tip? Error Authentication requested [root] for make driver: make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.16-0.bpo.2-amd64/build M=/root/netis-wf2190/driver/rtl8812AU_linux_v4.3.8_12175.20140902 modules make: *** /lib/modules/3.16-0.bpo.2-amd64/build: No such file or directory. Stop. make: *** [modules] Error 2 ################################################## Compile make driver error: 2 Please check error Mesg ################################################## ... after creating the missing build folder it is looking for rules (??) Authentication requested [root] for make driver: make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.16-0.bpo.2-amd64/build M=/root/netis-wf2190/driver/rtl8812AU_linux_v4.3.8_12175.20140902 modules make[1]: Entering directory `/lib/modules/3.16-0.bpo.2-amd64/build' make[1]: *** No rule to make target `modules'. Stop. make[1]: Leaving directory `/lib/modules/3.16-0.bpo.2-amd64/build' make: *** [modules] Error 2 ################################################## Compile make driver error: 2 Please check error Mesg ################################################## Here how I have installed the kernel Added deb http://http.debian.net/debian-backports squeeze-backports(-sloppy) main to source.list and then aptitude -t wheezy-backports install linux-image-amd64 How do install kernel source for 3.16-0.bpo.2-amd64 kernel? I tried this which RESOLVED! # apt-get install linux-headers-3.16-0.bpo.2-amd64 from /lib/modules/3.16-0.bpo.2-amd64 ln -s /usr/src/linux-headers-3.16-0.bpo.2-amd64/ build and ran install.sh
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 directory. Stop. The script isn't equipped to make this directory and is expecting that it's already there for it to use: /lib/modules/3.16.3-200.fc20.x86_64/build Checking shows that it's not there: $ cd /lib/modules/3.16.3-200.fc20.x86_64/build bash: cd: /lib/modules/3.16.3-200.fc20.x86_64/build: No such file or directory This directory can be a bit confusing, but if you change directories 1 level up, the situation is a bit clearer: $ cd /lib/modules/3.16.3-200.fc20.x86_64/ $ ls -l | grep build lrwxrwxrwx. 1 root root 39 Sep 29 14:25 build -> /usr/src/kernels/3.16.3-200.fc20.x86_64 So build is a link to another directory. In this case it's a link where the Kernel's development tree would be installed if you had them installed. So to resolve this you simply need to install a package for your distro that includes them. On Fedora these packages go by the name kernel-devel-<kernel version #>, so I suspect that if you simply installed those, you'd be all set.
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 computer and run make. Then copy the folder back to my raspberry /home/pi/node and run make install. Would that work and if yes, are there any downsides to this method? EDIT: I accepted to use the precompiled Version suggested by goldilocks as it is truly the fastest way of getting the newest node asap.
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 cross compiler. In the former case, resolving dependencies will be easy since you can just install them w/ apt-get, but the build will be SLOW. In the latter case, the build will probably be much much faster (presuming your desktop is not also a 700 Mhz single core), but getting it set up and resolving dependencies in the cross environment will probably take you a lot of time to learn and is more prone to error -- including the possibility of subtle flaws in the executable. run make install The default install directory is probably /usr/local, so you should do that step as root (I don't know how well sudo make ... works), or else set INSTALL_DIR -- ./configure --help should provide some information about this.
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 safe to fully automatize the process? It would look like this: Check the most recent kernel that grsecurity is available for Download the grsecurity patchset and the matching kernel source tree Patch the kernel Copy the previous kernel configuration file into the kernel source directory Run make olddefconfig to configure the kernel based on the previous configuration Compile the kernel with fakeroot make deb-pkg Install the resulting packages and change bootloader priority Send me a mail indicating that a reboot is required The main question: is it likely that a kernel compiled with olddefconfig will contain errors that prevent the system from booting if the previous configuration is working correctly? It is very important because it is a remote server accessed via SSH and a manual rescue would take a lot of effort.
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 then copy and deploy the new package to your remote system. Now to your main question: will your plan and make olddefconfig contain errors that will result in a boot failure? Only an idiot would believe any system to be completely foolproof. When you want to run the most recent kernel, as you stated, you will be bleeding edge and have all the advantages and risks associated with that. Reducing risk is selecting a long term release where a feature set is frozen, and only bug/security fixes will be introduced. Regardless: any reboot runs a small risk of failing. On a side note: I have spent too many hours in the past in data centers repairing issues/misconfigurations in servers that I recommend everyone to always add a suitable remote management option (e.g. HP ILO, Dell's DRAC, Oracle's ILOM etc. or a KVM over IP gateway) to your remote servers, that allows you to fix most issues the comfort of your desk.
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 freeBSD just support both formats? Is the resulting executable actually in elf format, but is it just called a.out for some reason:P?
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 make install or stick to the instruction and do make MANDIR=/usr/share/man MANSUFFIX=ssl install && install -dv -m755 /usr/share/doc/openssl-1.0.1e && cp -vfr doc/* /usr/share/doc/openssl-1.0.1e EDIT: I did both of the methods but I still have the old version of the openssl. do I need to copy the openssl binary and paste it to a specific directory (e.g., /usr/bin) to replace the new binary with the old one? How do I suppose to update the program? EDIT2: make test output: ALL TESTS SUCCESSFUL. make[1]: Leaving directory `/home/openssl-1.0.1e/test' OPENSSL_CONF=apps/openssl.cnf util/opensslwrap.sh version -a OpenSSL 1.0.1e 11 Feb 2013 built on: Mon Jun 10 05:08:05 UTC 2013 platform: dist options: bn(32,32) rc4(ptr,int) des(idx,cisc,2,long) idea(int) blowfish(idx) compiler: cc -O OPENSSLDIR: "/usr/local/ssl" make install output: make[1]: Leaving directory `/home/openssl-1.0.1e/engines' making install in apps... make[1]: Entering directory `/home/openssl-1.0.1e/apps' installing openssl installing CA.sh installing CA.pl installing tsget make[1]: Leaving directory `/home/openssl-1.0.1e/apps' making install in test... make[1]: Entering directory `/home/openssl-1.0.1e/test' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/home/openssl-1.0.1e/test' making install in tools... make[1]: Entering directory `/home/openssl-1.0.1e/tools' make[1]: Leaving directory `/home/openssl-1.0.1e/tools' installing libcrypto.a installing libssl.a cp libcrypto.pc /usr/local/ssl/lib/pkgconfig chmod 644 /usr/local/ssl/lib/pkgconfig/libcrypto.pc cp libssl.pc /usr/local/ssl/lib/pkgconfig chmod 644 /usr/local/ssl/lib/pkgconfig/libssl.pc cp openssl.pc /usr/local/ssl/lib/pkgconfig chmod 644 /usr/local/ssl/lib/pkgconfig/openssl.pc
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 your OpenSSL, but this could overwrite your binaries installed through apt and it could break you system. A better more correct way to compile is to use debian source packages. Is there any feature that you want that is not compiled on the stable version(http://packages.debian.org/source/wheezy/openssl)?
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: I am running FreeBSD 9.1; I tried to install gnome by following the FAQ I simply cd /usr/ports/x11/gnome2 then I ran make install cleanand as for the configs, I left them unchanged; by checking make config I have two unselected options: XSCREENSAVER MAPI As for the output of python2.7-config --includes I got the following: -I/usr/local/include/python2.7 -I/usr/local/include/python2.7
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=/media/sda5_k/ install sh /media/src_prog/linux-3.5/arch/x86/boot/install.sh 3.5.0 arch/x86/boot/bzImage \ System.map "/boot" Cannot find LILO. [root@localhost linux-3.5]# I also tried this manually: cp /media/sda5_k/arch/x86/bzImage /media/sda5_k/boot/ cp /media/sda5_k/arch/x86/System.map /media/sda5_k/boot/ and repeated the make O=/media/sda5_k/ install but it doesn't work. I'm using Arch for compilation and boot process is done with Ubuntu's GRUB2. What do I do at this step? Edit: fdisk: Device Boot Start End Blocks Id System /dev/sda1 * 2048 65538047 32768000 83 Linux /dev/sda2 65538048 98306047 16384000 83 Linux /dev/sda3 98306048 122882047 12288000 83 Linux /dev/sda4 122882048 1953523711 915320832 5 Extended /dev/sda5 122884096 139268095 8192000 83 Linux /dev/sda6 139270144 204806143 32768000 83 Linux /dev/sda7 204808192 229384191 12288000 83 Linux /dev/sda8 229386240 245770239 8192000 83 Linux /dev/sda9 245772288 270348287 12288000 83 Linux /dev/sda10 270350336 319502335 24576000 83 Linux /dev/sda11 450578432 929523711 239472640 83 Linux /dev/sda12 929525760 1953523711 511998976 83 Linux /dev/sda13 319504384 450576383 65536000 83 Linux df: Filesystem 1K-blocks Used Available Use% Mounted on rootfs 12245648 9913616 1717632 86% / dev 1024756 0 1024756 0% /dev run 1027708 328 1027380 1% /run /dev/sda3 12245648 9913616 1717632 86% / shm 1027708 112 1027596 1% /dev/shm tmpfs 1027708 68 1027640 1% /tmp /dev/sda7 12245648 1100504 10530744 10% /media/src_prog /dev/sda5 8165804 436548 7319656 6% /media/sda5_k /media/src_prog/ -> Where I keep the source files /media/sda5_k/ -> Where I want Linux Kernel to be put /dev/sda1 -> Ubuntu /dev/sda2 -> Old unused Ubuntu /dev/sda3 -> Arch (here :-D) /dev/sda1/boot -> Boot (Ubuntu's) the one bound to MBR.
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. Since you're booting one distibution's kernel with another distribution's bootloader, this may not work, so you may need to edit the Grub configuration file manually. That's /boot/grub/menu.lst for Grub legacy (Grub 0.9x) and /boot/grub.grub.cfg for Grub2 (Grub 1.9x). For Grub2, you need an entry like menuentry "Homemade 3.5 kernel" { insmod ext2 set root='(hd0,msdos5)' linux /boot/bzImage root=/dev/sda3 ro }
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: No such file or directory strutil.c:3: stdio.h: No such file or directory In file included from test.c:77: pcutils.h:3: ctype.h: No such file or directory In file included from test.c:78: pcutils.c:2: string.h: No such file or directory pcutils.c:3: stdio.h: No such file or directory test.c:79: time.h: No such file or directory test.c:81: stdio.h: No such file or directory Most of those files are in /opt/K/SKUNK99/Gcc/2.95.2pl1/usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/include/oldstyle Now it is showing this: In file included from test.c:77: pcutils.h:3: ctype.h: No such file or directory Therefore my question is: Where can I find the ctype.h file? This question is related to .profile in SCO
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 there's some other standard location under SCO. find should be able to tell you where it is, in any case.
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/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lglib-2.0 re.c -o re /tmp/ccxas1nI.o: In function `print_uppercase_words': re.c:(.text+0x21): undefined reference to `g_regex_new' re.c:(.text+0x41): undefined reference to `g_regex_match' re.c:(.text+0x54): undefined reference to `g_match_info_fetch' re.c:(.text+0x6e): undefined reference to `g_print' re.c:(.text+0x7a): undefined reference to `g_free' re.c:(.text+0x8b): undefined reference to `g_match_info_next' re.c:(.text+0x97): undefined reference to `g_match_info_matches' re.c:(.text+0xa7): undefined reference to `g_match_info_free' re.c:(.text+0xb3): undefined reference to `g_regex_unref' collect2: ld returned 1 exit status make: *** [re] Error 1 Makefile used: # Need to installed libglib2.0-dev some system specific install that will # provide a value for pkg-config INCLUDES=$(shell pkg-config --libs --cflags glib-2.0) CC=gcc $(INCLUDES) PROJECT=re # Targets full: clean compile clean: rm $(PROJECT) compile: $(CC) $(PROJECT).c -o $(PROJECT) .c code being compiled: #include <glib.h> void print_upppercase_words(const gchar *string) { /* Print all uppercase-only words. */ GRegex *regex; GMatchInfo *match_info; regex = g_regex_new("[A-Z]+", 0, 0, NULL); g_regex_match(regex, string, 0, &match_info); while (g_match_info_matches(match_info)) { gchar *word = g_match_info_fetch(match_info, 0); g_print("Found %s\n", word); g_free(word); g_match_info_next(match_info, NULL); } g_match_info_free(match_info); g_regex_unref(regex); } int main() { gchar *string = "My body is a cage. My mind is THE key."; print_uppercase_words(string); } Strangely, when I run glib-config it doesn't like that command -- though I don't know how to tell bash or make how to just use one over the other when it complains that gdlib-config is in these 2 packages. $> glib-config No command 'glib-config' found, did you mean: Command 'gdlib-config' from package 'libgd2-xpm-dev' (main) Command 'gdlib-config' from package 'libgd2-noxpm-dev' (main) glib-config: command not found
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 that, you might still have a problem because you are specifying the libraries before the modules that require those libraries. In short, your command should be written gcc -o re re.o -lglib-2.0 so that -lglib-2.0 comes after re.o. So I'd write your Makefile more like this: re.o: re.c $(CC) -I<includes> -o $@ -c $^ re: re.o $(CC) $^ -l<libraries> -o $@ In fact, if you set the right variables, make will figure it all out for you automatically. CFLAGS=$(shell pkg-config --cflags glib-2.0) LDLIBS=$(shell pkg-config --libs glib-2.0) CC=gcc re: re.o
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 if I do this export CPPFLAGS="$(CPPFLAGS) -I$/home/xxx/include" ./configure this is the result: ... checking for g++... g++ checking whether the C++ compiler works... no configure: error: in `/home/redies/ginac-1.6.2': configure: error: C++ compiler cannot create executables See `config.log' for more details In config.log there is the line CPPFLAGS='CPPFLAGS: command not found -I$/home/xxx/include' Any ideas?
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="$CPPFLAGS -I/home/xxx/include" Oh, and if there's no prior value of CPPFLAGS in your environment, you can write this export CPPFLAGS="-I/home/xxx/include" (but it won't hurt to use $CPPFLAGS either, the value is empty if the variable has never been set).
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: libxml++.x86_64 2.33.2-1.fc15 @koji-override- 0/$releasever libxml++-devel.x86_64 2.33.2-1.fc15 @fedora libxml2.i686 2.7.8-6.fc15 @fedora libxml2.x86_64 2.7.8-6.fc15 @koji-override-0/$releasever libxml2-devel.x86_64 2.7.8-6.fc15 @fedora libxml2-python.x86_64 2.7.8-6.fc15 @koji-override-0/$releasever Any ideas? Maybe libcroco was compiled with older version and I need older libxml installed?
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 Makefile is like so: TARGET=usr/bin/txtrevise make: chmod +x $(TARGET) install: cp -r $(TARGET) $(DESTDIR) I've used $(DESTDIR), as I understand it to place the file under the debian subdir when debuild is run. I have the txtrevise script, my executable, under usr/bin folder under the root of my package. I also have the Makefile and usr/bin/textrevise in my tarball: txtrevise_1.1.original.tar.gz. However when I build this and look inside of the Debian package, txtrevise is always at the root of the package instead of under usr/bin and will be installed to / instead of /usr/bin. How can I get debuild to put the script in the right place?
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 program to its final destination cp $(TARGET) $(DESTDIR)/$(TARGET) # ensure the program and directories have the correct permissions chmod a+rx $(DESTDIR)/$(TARGET) Note that you must also ensure, when building a software package for others to use, that the permissions an all directories and binaries are set according to the Debian policy; in this case you want $(DESTDIR)/usr/bin/textrevise to be owned by root:root and mode 0755 (and so the directories $(DESTDIR)/usr and $(DESTDIR)/usr/bin). You might want to have a look at the install command, that gives you more control over the owner, group and mode of the installed files to write more concise Makefile stanzas.
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.6.38 can be rebuilt (so that I can use VirtualBox under 2.6.38), but I get this error: Building initial module for 2.6.38-2-686-bigmem Error! Bad return status for module build on kernel: 2.6.38-2-686-bigmem (i686) Consult the make.log in the build directory /var/lib/dkms/virtualbox-ose/3.2.10/build/ for more information. dpkg: error processing virtualbox-ose-dkms (--configure): subprocess installed post-installation script returned error exit status 10 configured to not write apport reports Errors were encountered while processing: virtualbox-ose-dkms E: Sub-process /usr/bin/dpkg returned an error code (1) Here's the contents of the file they asked me to look at: $ cat /var/lib/dkms/virtualbox-ose/3.2.10/build/make.log DKMS make.log for virtualbox-ose-3.2.10 for kernel 2.6.38-2-686-bigmem (i686) Sat Apr 9 14:11:57 SAST 2011 make: Entering directory `/usr/src/linux-headers-2.6.38-2-686-bigmem' LD /var/lib/dkms/virtualbox-ose/3.2.10/build/built-in.o LD /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/built-in.o CC [M] /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.o In file included from /var/lib/dkms/virtualbox-ose/3.2.10/build/include/VBox/types.h:30, from /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/../SUPDrvInternal.h:35, from /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.c:33: /var/lib/dkms/virtualbox-ose/3.2.10/build/include/iprt/types.h:97:31: error: linux/autoconf.h: No such file or directory /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.c: In function ‘VBoxDrvLinuxInit’: /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.c:451: error: ‘nmi_watchdog’ undeclared (first use in this function) /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.c:451: error: (Each undeclared identifier is reported only once /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.c:451: error: for each function it appears in.) /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.c:451: error: ‘NMI_IO_APIC’ undeclared (first use in this function) /var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.c:465: error: ‘nmi_active’ undeclared (first use in this function) make[4]: *** [/var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv/linux/SUPDrv-linux.o] Error 1 make[3]: *** [/var/lib/dkms/virtualbox-ose/3.2.10/build/vboxdrv] Error 2 make[2]: *** [_module_/var/lib/dkms/virtualbox-ose/3.2.10/build] Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 make: Leaving directory `/usr/src/linux-headers-2.6.38-2-686-bigmem'
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 watchdog has changed a lot between 2.6.37 and 2.6.38. This looks like it requires a nontrivial porting effort on the module source code. In the meantime, you might have some luck just patching out the offending code. The purpose of the NMI watchdog is to debug kernel lockups, so it's something you can live without.
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 /tmp/_MEImvaIVL/libpython3.8.so.1.0) (In this case I'm using a program with embedded python interpreter, packaged with PyInstaller) I have a working workflow to build the python used in that case from source, and use that python to build the final package, so I figured if I just build it under the right glibc version I'm good to go. I'm using build containers (first docker, now buildah (since it gives me much more flexibility to interact with my build containers)), based on debian:stretch-arm32v7. After significant trial & horror, glibc seems to compile quite well initially, but now I'm stuck at: gcc -no-pie -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/opt/glibc-2.17/lib/ld-linux-armhf.so.3 -B/buildroot/build/csu/ -Wl,--version-script=/buildroot/build/libnss_db.map -Wl,-soname=libnss_db.so.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -L/buildroot/build -L/buildroot/build/math -L/buildroot/build/elf -L/buildroot/build/dlfcn -L/buildroot/build/nss -L/buildroot/build/nis -L/buildroot/build/rt -L/buildroot/build/resolv -L/buildroot/build/crypt -L/buildroot/build/nptl -Wl,-rpath-link=/buildroot/build:/buildroot/build/math:/buildroot/build/elf:/buildroot/build/dlfcn:/buildroot/build/nss:/buildroot/build/nis:/buildroot/build/rt:/buildroot/build/resolv:/buildroot/build/crypt:/buildroot/build/nptl -o /buildroot/build/nss/libnss_db.so -T /buildroot/build/shlib.lds /buildroot/build/csu/abi-note.o -Wl,--whole-archive /buildroot/build/nss/libnss_db_pic.a -Wl,--no-whole-archive /buildroot/build/elf/interp.os /buildroot/build/linkobj/libc.so /buildroot/build/libc_nonshared.a /buildroot/build/nss/libnss_files.so /buildroot/build/nss/libnss_db_pic.a(db-proto.os): In function `_nss_db_getprotoent_r': db-proto.c:(.text+0x15c): undefined reference to `_nss_files_parse_protoent' /buildroot/build/nss/libnss_db_pic.a(db-proto.os): In function `_nss_db_getprotobyname_r': db-proto.c:(.text+0x268): undefined reference to `_nss_files_parse_protoent' ... (more failing functions) ... collect2: error: ld returned 1 exit status ../Makerules:446: recipe for target '/buildroot/build/nss/libnss_db.so' failed make[2]: *** [/buildroot/build/nss/libnss_db.so] Error 1 If I enter the container and copy&paste above gcc command, I can immediately reproduce this error. Now if I add the flags -L/usr/lib/arm-linux-gnueabihf (which contains the host's libnss_files.so and the functions the linker can't find, and execute the command again, I get the same error, but if I also add -lnss_files (unsurprisingly?) it works. But this will be the case for many more files, so there must be a deeper lying problem? What surprises me is the flag -Wl,-dynamic-linker=/opt/glibc-2.17/lib/ld-linux-armhf.so.3 in above command. While that indeed is the final target (--prefix=/opt/glibc-2.17), it is still empty since glibc is still being built. Is somehow glibc not bootstrapping correctly? Any ideas? TIA!
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, e.g. /usr/src/linux-3.13.3. You probably want to do this stuff su root as the source tree should remain secure in terms of write permissions (it should be owned by root). While in the reference book, that he mentioned: Linux Kernel in a nutshell, Greg Kroah-Hartman says: This warning is the most important thing to remember while working through the steps in this book. Everything in this book — downloading the kernel source code,uncompressing it, configuring the kernel, and building it — should be done as a normal user on the machine. Only the two or three commands it takes to install a new kernel should be done as the superuser (root). and The kernel source code should also never be placed in the/usr/src/linux/directory, as that is the location of the kernel that the system libraries were built against, not your new custom kernel. Do not do any kernel development under the /usr/src/directory tree at all, but only in a local user directory where nothing bad can happen to the system. Both sources are quite old, what is the correct approach to this nowadays?
/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). /usr/src/linux This was the traditional place for the kernel source. Some distributions put here the source for the default kernel they ship. You should probably use another directory when building your own kernel. man file-hierarchy: /usr/ Vendor-supplied operating system resources. Usually read-only, but this is not required. Possibly shared between multiple hosts. This directory should not be modified by the administrator, except when installing or removing vendor-supplied packages. /usr/include was relying on /usr/src/linux before: /usr/include/linux This contains information which may change from system release to system release and used to be a symbolic link to /usr/src/linux/include/linux to get at operating-system-specific information. So the kernel sources only belong in /usr/src to be referenced, not modified. The Documentation/admin-guide/README.rst shows the O= option so you can turn a build into a read-only affair in /usr/src/linux-VERSION cd /usr/src/linux-4.X make O=/home/name/build/kernel menuconfig make O=/home/name/build/kernel Like that also the .config file is created under /home.
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.4 getaliasent_r@@GLIBC_2.4 fgetpos64@@GLIBC_2.4 sys_siglist@@GLIBC_2.4 _IO_file_underflow@@GLIBC_2.4 gethostent_r@@GLIBC_2.4 _IO_file_init@@GLIBC_2.4 readdir64_r@@GLIBC_2.4 fclose@@GLIBC_2.4 sys_nerr@@GLIBC_2.4 _IO_file_attach@@GLIBC_2.4 getrpcbyname_r@@GLIBC_2.4 setrlimit@@GLIBC_2.4 msgctl@@GLIBC_2.4 pclose@@GLIBC_2.4 scandir64@@GLIBC_2.4 getgrgid_r@@GLIBC_2.4 pthread_cond_wait@@GLIBC_2.4 _IO_fsetpos@@GLIBC_2.4 fopen@@GLIBC_2.4 getservent_r@@GLIBC_2.4 pthread_cond_timedwait@@GLIBC_2.4 getnetbyname_r@@GLIBC_2.4 getservbyport_r@@GLIBC_2.4 pthread_cond_broadcast@@GLIBC_2.4 getspent_r@@GLIBC_2.4 getaliasbyname_r@@GLIBC_2.4 getrpcent_r@@GLIBC_2.4 versionsort64@@GLIBC_2.4 getrlimit64@@GLIBC_2.4 gethostbyname_r@@GLIBC_2.4 GLIBC_2.5 _dl_tls_get_addr_soft@@GLIBC_PRIVATE getprotobynumber_r@@GLIBC_2.4 _rtld_global_ro@@GLIBC_PRIVATE glob64@@GLIBC_2.4 gethostbyaddr_r@@GLIBC_2.4 _IO_file_close_it@@GLIBC_2.4 pthread_cond_signal@@GLIBC_2.4 localeconv@@GLIBC_2.4 __libc_enable_secure@@GLIBC_PRIVATE pthread_cond_destroy@@GLIBC_2.4 _sys_errlist@@GLIBC_2.4 __libc_stack_end@@GLIBC_2.4 sched_getaffinity@@GLIBC_2.4 tmpfile@@GLIBC_2.4 fdopen@@GLIBC_2.4 _dl_argv@@GLIBC_PRIVATE getnetbyaddr_r@@GLIBC_2.4 realpath@@GLIBC_2.4 getrpcbynumber_r@@GLIBC_2.4 fopencookie@@GLIBC_2.4 _IO_do_write@@GLIBC_2.4 fgetpos@@GLIBC_2.4 semctl@@GLIBC_2.4 fsetpos64@@GLIBC_2.4 gethostbyname2_r@@GLIBC_2.4 getprotoent_r@@GLIBC_2.4 alphasort64@@GLIBC_2.4 _IO_fdopen@@GLIBC_2.4 getgrent_r@@GLIBC_2.4 GLIBC_2.4 _IO_file_setbuf@@GLIBC_2.4 __tls_get_addr@@GLIBC_2.4 _IO_fgetpos@@GLIBC_2.4 getspnam_r@@GLIBC_2.4 pthread_attr_init@@GLIBC_2.4 sys_sigabbrev@@GLIBC_2.4 nftw64@@GLIBC_2.4 sys_errlist@@GLIBC_2.4 getpwnam_r@@GLIBC_2.4 regexec@@GLIBC_2.4 _IO_proc_close@@GLIBC_2.4 _IO_file_fopen@@GLIBC_2.4 getnetent_r@@GLIBC_2.4 fnmatch@@GLIBC_2.4 popen@@GLIBC_2.4 _IO_fclose@@GLIBC_2.4 _IO_popen@@GLIBC_2.4 _IO_fsetpos64@@GLIBC_2.4 getpwent_r@@GLIBC_2.4 _IO_file_sync@@GLIBC_2.4 _sys_siglist@@GLIBC_2.4 shmctl@@GLIBC_2.4 fsetpos@@GLIBC_2.4 _sys_nerr@@GLIBC_2.4 _IO_file_overflow@@GLIBC_2.4 sched_setaffinity@@GLIBC_2.4 readdir64@@GLIBC_2.4 _IO_fgetpos64@@GLIBC_2.4 _IO_fopen@@GLIBC_2.4 _rtld_global@@GLIBC_PRIVATE _res@GLIBC_2.4 pthread_cond_init@@GLIBC_2.4 nftw@@GLIBC_2.4 getrlimit@@GLIBC_2.4 _IO_proc_open@@GLIBC_2.4 getprotobyname_r@@GLIBC_2.4 _IO_file_finish@@GLIBC_2.4 getgrnam_r@@GLIBC_2.4 getpwuid_r@@GLIBC_2.4 getservbyname_r@@GLIBC_2.4 GLIBC_PRIVATE _IO_file_write@@GLIBC_2.4 _IO_file_seekoff@@GLIBC_2.4 What is actual glibc version used, 2.4 or 2.5?
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 in drivers/platform/x86/silead_dmi.c) and that refers to the silead_ts.fw firmware that i found here https://github.com/onitake/gsl-firmware/tree/master/firmware/trekstor/surftab7new (FYI Mediacom W700 is equivalent at SurfTab wintron 7.0 ST70416-6). I used apt-get source linux-headers-$(uname -r) and got the linux-4.15 folder of 800 MB. That has the path drivers/platform/x86/silead_dmi.c in which i made the drivers/platform/x86/silead_dmi.c file. Following the guide i used apt-get source linux-image-$(uname -r) and got the linux-signed-4.15.0 folder of 118 kB. Now using fakeroot debian/rules editconfigs i get an error: dh editconfigs dh: Unknown sequence editconfigs (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep) debian/rules:35: recipe for target 'editconfigs' failed make: *** [editconfigs] Error 2 How can i fix this error and recompile the kernel? And the folder obtained from apt-get source linux-headers-$(uname -r) which has the path drivers/platform/x86/silead_dmi.c? And the firmware? https://askubuntu.com/questions/1067640/enable-the-touchscreen-of-a-mediacom-winpad-w700 If someone want more info can check there.
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/onitake/gsl-firmware/blob/master/firmware/linux/silead/gsl1686-surftab-wintron70-st70416-6.fw ,put the file in /lib/firmware/silead(create the folder silead). Also made a copy with the name mssl1680.fw (backup firmware). Now follow this guide for recompile the kernel https://debian-handbook.info/browse/squeeze/sect.kernel-compilation.html. Use apt-cache search ^linux-source to find the source for the kernel (as the guide explains). In the silead_dmi.c file add: static const struct property_entry mediacom_w700_props[] = { PROPERTY_ENTRY_U32("touchscreen-size-x", 884), PROPERTY_ENTRY_U32("touchscreen-size-y", 632), PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"), PROPERTY_ENTRY_U32("silead,max-fingers", 10), PROPERTY_ENTRY_BOOL("silead,home-button"), { } }; And most important in the DMI_MATCH add: { /* Mediacom WinPad 7.0 W700 */ .driver_data = (void *)&surftab_wintron70_st70416_6_data, .matches = { DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"), DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"), }, },
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 to access it from command line which works fine but how do I force all programs and daemons using this /usr/local version? The original OpenSSL package can't be uninstalled because of dependencies (= no symlinking). So what's the correct way of coexisting these two and using the one from /usr/local? Note: I'm aware of my responsibility of keeping the /usr/local OpenSSL updated.
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 OpenSSL-using applications that you've started since installing your own custom version should be using it ahead of the version in /usr/lib. You can confirm this by using ldd on a binary linked against OpenSSL. For example: $ ldd /usr/sbin/nginx ... libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fd50f80b000) ... Note the path of libssl - that's the version it'll use, even if multiple copies are on the system. If your custom version of OpenSSL is in a directory below /usr/local/lib (eg, /usr/local/lib/ssl) and you see that it isn't being found by ld, you can add that directory to a new file in /etc/ld.so.conf.d and re-run ldconfig (be sure to use the -v option so that it displays the names of all the libraries in the defined search paths).
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: Building Firefox in Linux on top of a non-native file system - for example, on a mounted NTFS partition - is explicitly not supported. While a build environment like this may succeed it may also fail while claiming to have succeeded, which can be quite difficult to diagnose and fix. So, Which ones are linux native file system ? Update When I built on xfs the file system becomes unusable, and for further details I will provide the exact kernel message [ 1514.286849] XFS: Assertion failed: (bip->bli_flags & XFS_BLI_STALE) || (xfs_blft_from_flags(&bip->__bli_format) > XFS_BLFT_UNKNOWN_BUF && xfs_blft_from_flags(&bip->__bli_format) < XFS_BLFT_MAX_BUF), file: fs/xfs/xfs_buf_item.c, line: 301 [ 1514.286876] ------------[ cut here ]------------ [ 1514.286877] kernel BUG at fs/xfs/xfs_message.c:108! [ 1514.286879] invalid opcode: 0000 [#1] SMP [ 1514.286882] Modules linked in: w83627ehf hwmon_vid snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss bnep rfcomm bluetooth rfkill snd_hda_codec_hdmi snd_hda_codec_realtek fuse nvidia(PO) uvcvideo videobuf2_core coretemp snd_hda_intel videodev snd_hda_codec rtc_cmos kvm_intel firewire_ohci firewire_core nv_tco videobuf2_vmalloc videobuf2_memops kvm snd_hwdep mousedev forcedeth evdev i2c_nforce2 snd_pcm snd_timer snd soundcore snd_page_alloc [last unloaded: i2c_dev] [ 1514.286912] CPU: 0 PID: 14942 Comm: python Tainted: P O 3.10.104-afterglow+ #8 [ 1514.286914] Hardware name: EVGA 122-CK-NF68/122-CK-NF68, BIOS 6.00 PG 09/04/2008 [ 1514.286916] task: ffff880255def350 ti: ffff8801e465c000 task.ti: ffff8801e465c000 [ 1514.286917] RIP: 0010:[<ffffffff812713fd>] [<ffffffff812713fd>] assfail+0x1d/0x20 [ 1514.286925] RSP: 0018:ffff8801e465dba8 EFLAGS: 00010296 [ 1514.286927] RAX: 00000000000000e1 RBX: ffff880163671f90 RCX: ffff88025fc0d6b0 [ 1514.286929] RDX: 0000000000000000 RSI: ffff88025fc0bf18 RDI: ffff88025fc0bf10 [ 1514.286931] RBP: ffff8801e465dba8 R08: 000000000000ffff R09: 0000000000000000 [ 1514.286932] R10: 0000000000000331 R11: 0000000000000000 R12: ffff8801604da118 [ 1514.286934] R13: 0000000000000002 R14: ffff880163671f60 R15: ffff8802346d6980 [ 1514.286936] FS: 00002b9103b34760(0000) GS:ffff88025fc00000(0000) knlGS:0000000000000000 [ 1514.286938] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1514.286940] CR2: 00000000024ec1c8 CR3: 000000016279d000 CR4: 00000000000007f0 [ 1514.286942] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1514.286943] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 1514.286944] Stack: [ 1514.286946] ffff8801e465dc38 ffffffff812d5777 0000000000000250 0000000000000050 [ 1514.286949] ffff8801a50d1b00 0000000051eb851f ffff8801e465dc18 ffffffff8127861f [ 1514.286952] 0000000000000001 0000000000000002 ffff8802347ac0e8 0000000000000002 [ 1514.286955] Call Trace: [ 1514.286960] [<ffffffff812d5777>] xfs_buf_item_format+0x97/0x400 [ 1514.286963] [<ffffffff8127861f>] ? kmem_alloc+0x6f/0xe0 [ 1514.286966] [<ffffffff812d4c48>] xfs_log_commit_cil+0xb8/0x550 [ 1514.286970] [<ffffffff81042c11>] ? current_fs_time+0x11/0x50 [ 1514.286973] [<ffffffff812cecad>] xfs_trans_commit+0xbd/0x290 [ 1514.286976] [<ffffffff812cc917>] xfs_symlink+0x947/0x9c0 [ 1514.286980] [<ffffffff8112f6fe>] ? __lookup_hash+0x1e/0x40 [ 1514.286983] [<ffffffff8126ecad>] xfs_vn_symlink+0x4d/0xd0 [ 1514.286986] [<ffffffff81133b0d>] vfs_symlink+0xcd/0x130 [ 1514.286989] [<ffffffff81135cdd>] SyS_symlinkat+0x6d/0xd0 [ 1514.286992] [<ffffffff81135d51>] SyS_symlink+0x11/0x20 [ 1514.286996] [<ffffffff8165a4f2>] system_call_fastpath+0x16/0x1b [ 1514.286997] Code: 48 c7 c7 50 81 96 81 e8 32 aa dc ff c9 c3 55 48 89 f1 41 89 d0 48 89 e5 48 89 fa 48 c7 c6 38 53 95 81 31 ff 31 c0 e8 73 fc ff ff <0f> 0b 90 55 49 89 f9 48 89 e5 48 63 f6 48 83 ec 10 41 b8 01 00 [ 1514.287026] RIP [<ffffffff812713fd>] assfail+0x1d/0x20 [ 1514.287029] RSP <ffff8801e465dba8> [ 1514.287032] ---[ end trace b261b019fb030112 ]---
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/libfuse/releases/download/fuse-3.0.0/fuse-3.0.0.tar.gz tar xvf fuse-3.0.0.tar.gz && cd fuse-3.0.0 ./configure --prefix=/usr make make install export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64 ldconfig modprobe fuse pkg-config –modversion fuse No problems there... Things show up where they should it seems, $ ls /usr/lib: libfuse3.a libfuse3.la libfuse3.so libfuse3.so.3 libfuse3.so.3.0.0 pkgconfig udev $ ls /usr/local/lib/pkgconfig/: fuse3.pc $ which fusermount3: /usr/bin/fusermount3 So I proceed to install s3fs: cd ~/src git clone https://github.com/s3fs-fuse/s3fs-fuse.git cd s3fs-fuse ./autogen.sh ./configure --prefix=/usr And then every time, I hit this: ... configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6) were not met: No package 'fuse' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables common_lib_checking_CFLAGS and common_lib_checking_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. Any idea why s3fs is not finding Fuse properly?
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 compilation error - didn't save the error). I ended up installing fuse 2.9.x and s3fs installation went well.
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 Folder/gdmap-0.8.1/src' gcc -DHAVE_CONFIG_H -I. -I.. -DGDMAP_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gdmap"\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz -DGTK_DISABLE_DEPRECATED -I/usr/include/libxml2 -g -O2 -W -Wall -D_GNU_SOURCE -Wno-pointer-sign -MT gdmap-gui_support.o -MD -MP -MF .deps/gdmap-gui_support.Tpo -c -o gdmap-gui_support.o test -f 'gui_support.c' || echo './'gui_support.c gui_support.c: In function ‘on_ebox_enter’: gui_support.c:88:3: warning: implicit declaration of function ‘GTK_WIDGET_SENSITIVE’ [-Wimplicit-function-declaration] if (GTK_WIDGET_SENSITIVE(label)) { ^ gui_support.c: In function ‘ui_create_event_label’: gui_support.c:167:3: warning: implicit declaration of function ‘GTK_OBJECT_FLAGS’ [-Wimplicit-function-declaration] GTK_WIDGET_SET_FLAGS(ebox, GTK_CAN_FOCUS); ^ In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35:0, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from gui_support.c:10: /usr/include/gtk-2.0/gtk/gtkwidget.h:459:80: error: lvalue required as left operand of assignment #define GTK_WIDGET_SET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) |= (flag)); }G_STMT_END ^ gui_support.c:167:3: note: in expansion of macro ‘GTK_WIDGET_SET_FLAGS’ GTK_WIDGET_SET_FLAGS(ebox, GTK_CAN_FOCUS); ^ make[2]: * [gdmap-gui_support.o] Error 1 make[2]: Leaving directory /home/wh1t3ni9ht/Desktop/New Folder/gdmap-0.8.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/wh1t3ni9ht/Desktop/New Folder/gdmap-0.8.1' make: * [all] Error 2 What should I do?
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 include it in my kernel? The menu generated after running make menuconfig shows no option of init anywhere.
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 that's marked as BROKEN and you can't find a suitable kernel version, you should remove the dependency on BROKEN and start working on fixing the driver: first get it to build, then get it to run. Obviously that's an option only if you know Linux kernel programming.
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 configure file or is there a better way? Edit: or maybe I'm not supposed to add build-dependencies to the usage dependencies in AUR? Edit #2: I'm trying to create AUR for this: http://www.acs.com.hk/download-driver-unified/6258/ACS-Unified-Driver-Lnx-Mac-113-P.zip
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 dependency summary at the end to make this easier for packagers). For the problem at hand the README is most useful, it says: Linux - pcsclite 1.8.3 or above - libusb 1.0.9 or above - flex - perl - pkg-config Now, let us have a look at that. An AUR package can assume that base and base-devel groups of packages are installed, which make things easier to reason about. Enumerating the dependencies we see: pkg-config: is in base-devel, we do not need to care about it. perl: is part of base, fine. flex: base-devel again. libusb 1.0.9 or above and pcsclite 1.8.3 or above pacman -Ss libusb core/libusb 1.0.20-1 Library that provides generic access to USB devices pacman -Ss pcsclite community/pcsclite 1.8.16-1 PC/SC Architecture smartcard middleware library The beauty of a rolling forward distribution is that you can assume that the user has the latest packages (if he is a sane user he will do pacman -Syu before installing your AUR package). Therefore we can simply do (inside PKGBUILD): depends=(libusb pcsclite) Extra note: Sometimes it is not as easy to find the package a README or INSTALL talks about. In this case google-fu is needed. Yet, arch also has pkgfile which is the database of which files are in which packages. For finding dependencies to be added to AUR packages I strongly recommend installing pkgfile, i.e. pacman -S pkgfile And then you can query suspicious packages for libraries, e.g. pkgfile -l <package> | grep lib
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 directory Being this Gentoo, that error message probably means I missed compiling some kernel feature. However, I looked around on the kernel's configuration menu (make menuconfig) and couldn't find any option, and the internet wasn't conclusive at all when looking up online how to enable this option. The closest thing I could find was this Linux kernel's documentation page that explains all the configuration files located under /proc/sys/vm. What do I have to do to be able to use vm.zone_reclaim_mode=1?
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/worked around with other drivers, for instance here for rtl8188CU driver. Is there any fix/workaround which can make the complilation work for the RTL8192SE? Thanks. (I don't want the pre-installed driver because it does not allow me to get in monitor mode) EDIT: You can download the drivers ISO here (containing windows, OSX and Linux versions). I use kali-linux Sana (2.0), with kernel 4.0.0-kali1-amd64. gcc version is 4.9.2.
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. No wonder the build fails. Look for people working on this device (perhaps start with the names cited in the vanilla driver or perhaps its in-kernel documentation). There might be something in staging.
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 https://github.com/jonjonarnearne/smi2021. So there are 2 options: 1) Install module with full kernel source, by downloading kernel 3.19.0 from kernel.org - This does not work as the custom modules from debian-kernel3.19.0-bananapi are not compatible with the kernel from kernel.org 2) Install module without full kernel, with only using the already built in kernel headers. - I would like to use this option as I already have the kernel headers installed. So can anyone show how to install step by step kernel modules with kernel headers already installed? I tried to do as said in the comment from blog post posted above but can't do it. I get stuck at step 2: copy from /boot the config file to .config in /usr/src/linux
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. For instance, if you select to build and install atl1c driver, the config file produced as a result of the above command, .config, should have the following line: CONFIG_ATL1C=m Choose the right driver for your case and make sure to label it with "m". make prepare make make modules make modules_install shutdown -r 0 Check to see if the driver is installed lsmod
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 seem to work. See here the final part with warnings and errors causing this failure: make gcc kernel headers of the running kernel Searching for GCC... Detected GCC binary at "/bin/gcc". The path "/bin/gcc" appears to be a valid path to the gcc binary. Would you like to change it? [no] Searching for a valid kernel header path... Detected the kernel headers at "/lib/modules/3.15.5-200.fc20.i686/build/include". The path "/lib/modules/3.15.5-200.fc20.i686/build/include" appears to be a valid path to the 3.15.5-200.fc20.i686 kernel headers. Would you like to change it? [no] Using 2.6.x kernel build system. make: Entering directory `/tmp/modconfig-F7dG4u/vmhgfs-only' /bin/make -C /lib/modules/3.15.5-200.fc20.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory `/usr/src/kernels/3.15.5-200.fc20.i686' CC [M] /tmp/modconfig-F7dG4u/vmhgfs-only/message.o In file included from /tmp/modconfig-F7dG4u/vmhgfs-only/backdoor.h:30:0, from /tmp/modconfig-F7dG4u/vmhgfs-only/message.c:54: /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from include/linux/kernel.h:13:0, from /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/kernelStubs.h:36, from /tmp/modconfig-F7dG4u/vmhgfs-only/message.c:45: include/linux/printk.h:92:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ CC [M] /tmp/modconfig-F7dG4u/vmhgfs-only/dir.o In file included from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfs.h:40:0, from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfsProto.h:37, from /tmp/modconfig-F7dG4u/vmhgfs-only/dir.c:37: /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from include/linux/kernel.h:13:0, from /usr/src/kernels/3.15.5-200.fc20.i686/arch/x86/include/asm/percpu.h:44, from /usr/src/kernels/3.15.5-200.fc20.i686/arch/x86/include/asm/preempt.h:5, from include/linux/preempt.h:18, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /tmp/modconfig-F7dG4u/vmhgfs-only/dir.c:29: include/linux/printk.h:92:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ CC [M] /tmp/modconfig-F7dG4u/vmhgfs-only/rpcout.o In file included from /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/vmware.h:39:0, from /tmp/modconfig-F7dG4u/vmhgfs-only/rpcout.c:43: /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from include/linux/kernel.h:13:0, from /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/kernelStubs.h:36, from /tmp/modconfig-F7dG4u/vmhgfs-only/rpcout.c:33: include/linux/printk.h:92:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ CC [M] /tmp/modconfig-F7dG4u/vmhgfs-only/hgfsUtil.o In file included from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfs.h:40:0, from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfsUtil.h:55, from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfsUtil.c:33: /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from include/linux/kernel.h:13:0, from /usr/src/kernels/3.15.5-200.fc20.i686/arch/x86/include/asm/percpu.h:44, from /usr/src/kernels/3.15.5-200.fc20.i686/arch/x86/include/asm/preempt.h:5, from include/linux/preempt.h:18, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfsUtil.h:32, from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfsUtil.c:33: include/linux/printk.h:92:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ CC [M] /tmp/modconfig-F7dG4u/vmhgfs-only/cpName.o CC [M] /tmp/modconfig-F7dG4u/vmhgfs-only/link.o In file included from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfs.h:40:0, from /tmp/modconfig-F7dG4u/vmhgfs-only/hgfsProto.h:37, from /tmp/modconfig-F7dG4u/vmhgfs-only/module.h:39, from /tmp/modconfig-F7dG4u/vmhgfs-only/link.c:32: /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from include/linux/kernel.h:13:0, from /usr/src/kernels/3.15.5-200.fc20.i686/arch/x86/include/asm/percpu.h:44, from /usr/src/kernels/3.15.5-200.fc20.i686/arch/x86/include/asm/preempt.h:5, from include/linux/preempt.h:18, from include/linux/spinlock.h:50, from include/linux/wait.h:8, from include/linux/fs.h:6, from /tmp/modconfig-F7dG4u/vmhgfs-only/./shared/compat_fs.h:22, from /tmp/modconfig-F7dG4u/vmhgfs-only/link.c:29: include/linux/printk.h:92:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ /tmp/modconfig-F7dG4u/vmhgfs-only/link.c: In function ‘HgfsReadlink’: /tmp/modconfig-F7dG4u/vmhgfs-only/link.c:186:10: error: implicit declaration of function ‘vfs_readlink’ [-Werror=implicit-function-declaration] error = vfs_readlink(dentry, buffer, buflen, fileName); ^ cc1: some warnings being treated as errors make[2]: *** [/tmp/modconfig-F7dG4u/vmhgfs-only/link.o] Error 1 make[1]: *** [_module_/tmp/modconfig-F7dG4u/vmhgfs-only] Error 2 make[1]: Leaving directory `/usr/src/kernels/3.15.5-200.fc20.i686' make: *** [vmhgfs.ko] Error 2 make: Leaving directory `/tmp/modconfig-F7dG4u/vmhgfs-only' The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine. These packages are available on your distribution's installation CD. I can finish the setup, but it does not really install things properly - shared folder is not mounted (folder is shown with no contents ) - and I also get this final warning Found VMware Tools CDROM mounted at /run/media/jfrumau/VMware Tools. Ejecting device /dev/sr0 ... /sbin/restorecon: Warning no default label for /tmp/vmware-block-restore0/tmp_file Any ideas around this issue - vmhgfs module related it seems - so the shared folder gets mounted again and all works?
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, fileName); > #endif > } This worked for me.
"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 Loading mirror speeds from cached hostfile * base: mirror.team-cymru.org * epel: mirror.steadfast.net * extras: ftpmirror.your.org * updates: mirrors.gigenet.com Checking for new repos for mirrors Getting requirements for netbsd-rump-20130704-2.1.src No uninstalled build requires Step #2 - setup rpmbuild Install the RPM developer tools. $ sudo yum install rpmdevtools Setup your rpmbuild area. $ rpmdev-setuptree Step #3 - install developer tools Install the developer tools (gcc, etc.). $ sudo yum install gcc You can also install a developers group, for example, "C Development Tools and Libraries". $ yum groups list | grep Dev Development and Creative Workstation C Development Tools and Libraries Development Tools RPM Development Tools $ yum groups install "C Development Tools and Libraries" Step #4 - rebuild netbsd-rump Now we rebuild rump. $ rpmbuild --rebuild netbsd-rump-20130704-2.1.src.rpm Step #5 - install the resulting RPM. $ sudo yum localinstall \ $HOME/rpmbuild/RPMS/x86_64/netbsd-rump-20130704-2.1.x86_64.rpm References CentOS RPM Tutorial Part 1 - Building your own RPMs
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 uname -s = SunOS uname -v = Generic_147148-26 /usr/bin/uname -p = i386 /bin/uname -X = System = SunOS Node = unknown Release = 5.10 KernelID = Generic_147148-26 Machine = i86pc BusType = <unknown> Serial = <unknown> Users = <unknown> OEM# = 0 Origin# = 1 NumCPU = 1 /bin/arch = i86pc /usr/bin/arch -k = i86pc /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /opt/gnome/bin PATH: /usr/local/bin PATH: /opt/netscape PATH: /usr/ccs/bin PATH: //bin PATH: /usr/sbin PATH: /usr/bin PATH: /usr/openwin/bin PATH: /usr/ucb PATH: //bin PATH: /usr/sbin PATH: /usr/bin PATH: /root/bin PATH: /usr/bin PATH: /usr/sbin PATH: /usr/local/bin PATH: /usr/local/sbin PATH: /bin PATH: /sbin PATH: /opt/csw/bin PATH: /opt/csw/sbin PATH: /opt/csw/gcc3/bin PATH: /usr/sfw/sbin PATH: /usr/sfw/bin PATH: /opt/csw/mysql5/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1392: checking for a BSD-compatible install configure:1447: result: ./install-sh -c configure:1458: checking whether build environment is sane configure:1501: result: yes configure:1566: checking for gawk configure:1595: result: no configure:1566: checking for mawk configure:1595: result: no configure:1566: checking for nawk configure:1582: found //bin/nawk configure:1592: result: nawk configure:1602: checking whether make sets $(MAKE) configure:1622: result: yes configure:1792: checking whether to enable maintainer-specific portions of Makefiles configure:1801: result: no configure:1830: checking for style of include used by make configure:1858: result: GNU configure:1929: checking for gcc configure:1955: result: gcc configure:2199: checking for C compiler version configure:2202: gcc --version </dev/null >&5 gcc (GCC) 3.3.2 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2205: $? = 0 configure:2207: gcc -v </dev/null >&5 Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.3.2 configure:2210: $? = 0 configure:2212: gcc -V </dev/null >&5 gcc: `-V' option must have argument configure:2215: $? = 1 configure:2238: checking for C compiler default output file name configure:2241: gcc -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:2244: $? = 0 configure:2290: result: a.out configure:2295: checking whether the C compiler works configure:2301: ./a.out configure:2304: $? = 0 configure:2321: result: yes configure:2328: checking whether we are cross compiling configure:2330: result: no configure:2333: checking for suffix of executables configure:2335: gcc -o conftest -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:2338: $? = 0 configure:2363: result: configure:2369: checking for suffix of object files configure:2390: gcc -c -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:2393: $? = 0 configure:2415: result: o configure:2419: checking whether we are using the GNU C compiler configure:2443: gcc -c -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:2449: $? = 0 configure:2453: test -z || test ! -s conftest.err configure:2456: $? = 0 configure:2459: test -s conftest.o configure:2462: $? = 0 configure:2475: result: yes configure:2481: checking whether gcc accepts -g configure:2502: gcc -c -g -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:2508: $? = 0 configure:2512: test -z || test ! -s conftest.err configure:2515: $? = 0 configure:2518: test -s conftest.o configure:2521: $? = 0 configure:2532: result: yes configure:2549: checking for gcc option to accept ANSI C configure:2619: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:2625: $? = 0 configure:2629: test -z || test ! -s conftest.err configure:2632: $? = 0 configure:2635: test -s conftest.o configure:2638: $? = 0 configure:2656: result: none needed configure:2674: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 conftest.c:2: error: parse error before "me" configure:2680: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2815: checking dependency style of gcc configure:2905: result: gcc3 configure:2923: checking for library containing strerror configure:2953: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:2959: $? = 0 configure:2963: test -z || test ! -s conftest.err configure:2966: $? = 0 configure:2969: test -s conftest configure:2972: $? = 0 configure:3042: result: none required configure:3095: checking for gcc configure:3121: result: gcc configure:3365: checking for C compiler version configure:3368: gcc --version </dev/null >&5 gcc (GCC) 3.3.2 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3371: $? = 0 configure:3373: gcc -v </dev/null >&5 Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.3.2 configure:3376: $? = 0 configure:3378: gcc -V </dev/null >&5 gcc: `-V' option must have argument configure:3381: $? = 1 configure:3384: checking whether we are using the GNU C compiler configure:3440: result: yes configure:3446: checking whether gcc accepts -g configure:3497: result: yes configure:3514: checking for gcc option to accept ANSI C configure:3621: result: none needed configure:3639: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 conftest.c:2: error: parse error before "me" configure:3645: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:3780: checking dependency style of gcc configure:3870: result: gcc3 configure:3895: checking how to run the C preprocessor configure:3930: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c configure:3936: $? = 0 configure:3968: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c conftest.c:11:28: ac_nonexistent.h: No such file or directory configure:3974: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "gtkdialog" | #define PACKAGE_TARNAME "gtkdialog" | #define PACKAGE_VERSION "0.7.9" | #define PACKAGE_STRING "gtkdialog 0.7.9" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE "gtkdialog" | #define VERSION "0.7.9" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:4013: result: gcc -E configure:4037: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c configure:4043: $? = 0 configure:4075: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c conftest.c:11:28: ac_nonexistent.h: No such file or directory configure:4081: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "gtkdialog" | #define PACKAGE_TARNAME "gtkdialog" | #define PACKAGE_VERSION "0.7.9" | #define PACKAGE_STRING "gtkdialog 0.7.9" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE "gtkdialog" | #define VERSION "0.7.9" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:4125: checking for egrep configure:4135: result: egrep configure:4140: checking for ANSI C header files configure:4165: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:4171: $? = 0 configure:4175: test -z || test ! -s conftest.err configure:4178: $? = 0 configure:4181: test -s conftest.o configure:4184: $? = 0 configure:4273: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:4276: $? = 0 configure:4278: ./conftest configure:4281: $? = 0 configure:4296: result: yes configure:4310: checking for flex configure:4326: found /usr/sfw/bin/flex configure:4336: result: flex configure:4349: checking for yywrap in -lfl configure:4379: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c -lfl >&5 ld: fatal: library -lfl: not found ld: fatal: file processing errors. No output written to conftest collect2: ld returned 1 exit status configure:4385: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "gtkdialog" | #define PACKAGE_TARNAME "gtkdialog" | #define PACKAGE_VERSION "0.7.9" | #define PACKAGE_STRING "gtkdialog 0.7.9" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE "gtkdialog" | #define VERSION "0.7.9" | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char yywrap (); | int | main () | { | yywrap (); | ; | return 0; | } configure:4411: result: no configure:4416: checking for yywrap in -ll configure:4446: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c -ll >&5 configure:4452: $? = 0 configure:4456: test -z || test ! -s conftest.err configure:4459: $? = 0 configure:4462: test -s conftest configure:4465: $? = 0 configure:4478: result: yes configure:4489: checking lex output file root configure:4500: flex conftest.l configure:4503: $? = 0 configure:4515: result: lex.yy configure:4520: checking whether yytext is a pointer configure:4536: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c -ll >&5 configure:4542: $? = 0 configure:4546: test -z || test ! -s conftest.err configure:4549: $? = 0 configure:4552: test -s conftest configure:4555: $? = 0 configure:4569: result: yes configure:4587: checking for bison configure:4603: found /usr/sfw/bin/bison configure:4613: result: bison -y configure:4676: checking for pkg-config configure:4694: found //bin/pkg-config configure:4706: result: //bin/pkg-config configure:4721: checking pkg-config is at least version 0.9.0 configure:4724: result: yes configure:4735: checking for GTK configure:4743: $PKG_CONFIG --exists --print-errors "$pkg_modules" configure:4746: $? = 0 configure:4761: $PKG_CONFIG --exists --print-errors "$pkg_modules" configure:4764: $? = 0 configure:4840: result: yes configure:4850: checking for GTHREAD configure:4858: $PKG_CONFIG --exists --print-errors "$pkg_modules" configure:4861: $? = 0 configure:4876: $PKG_CONFIG --exists --print-errors "$pkg_modules" configure:4879: $? = 0 configure:4955: result: yes configure:4965: checking for GLADE_LIB configure:4974: $PKG_CONFIG --exists --print-errors "\ $glade_lib" configure:4978: $? = 0 configure:4995: $PKG_CONFIG --exists --print-errors "\ $glade_lib" configure:4999: $? = 0 configure:5042: result: yes configure:5067: checking for sys/types.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5067: checking for sys/stat.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5067: checking for stdlib.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5067: checking for string.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5067: checking for memory.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5067: checking for strings.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5067: checking for inttypes.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5067: checking for stdint.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5067: checking for unistd.h configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5089: $? = 0 configure:5093: test -z || test ! -s conftest.err configure:5096: $? = 0 configure:5099: test -s conftest.o configure:5102: $? = 0 configure:5113: result: yes configure:5139: checking locale.h usability configure:5151: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5157: $? = 0 configure:5161: test -z || test ! -s conftest.err configure:5164: $? = 0 configure:5167: test -s conftest.o configure:5170: $? = 0 configure:5180: result: yes configure:5184: checking locale.h presence configure:5194: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c configure:5200: $? = 0 configure:5220: result: yes configure:5255: checking for locale.h configure:5262: result: yes configure:5283: checking for setlocale configure:5340: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5 configure:5346: $? = 0 configure:5350: test -z || test ! -s conftest.err configure:5353: $? = 0 configure:5356: test -s conftest configure:5359: $? = 0 configure:5371: result: yes configure:5507: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by gtkdialog config.status 0.7.9, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on unknown config.status:709: creating Makefile config.status:709: creating gtkdialog.spec config.status:709: creating src/Makefile config.status:709: creating doc/Makefile config.status:709: creating examples/Makefile config.status:813: creating config.h config.status:925: config.h is unchanged config.status:1105: executing depfiles commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set=set ac_cv_env_CC_value=gcc ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_GLADE_LIB_CFLAGS_set= ac_cv_env_GLADE_LIB_CFLAGS_value= ac_cv_env_GLADE_LIB_LIBS_set= ac_cv_env_GLADE_LIB_LIBS_value= ac_cv_env_GTHREAD_CFLAGS_set= ac_cv_env_GTHREAD_CFLAGS_value= ac_cv_env_GTHREAD_LIBS_set= ac_cv_env_GTHREAD_LIBS_value= ac_cv_env_GTK_CFLAGS_set= ac_cv_env_GTK_CFLAGS_value= ac_cv_env_GTK_LIBS_set= ac_cv_env_GTK_LIBS_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_func_setlocale=yes ac_cv_header_inttypes_h=yes ac_cv_header_locale_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_lib_fl_yywrap=no ac_cv_lib_l_yywrap=yes ac_cv_objext=o ac_cv_path_ac_pt_PKG_CONFIG=//bin/pkg-config ac_cv_prog_AWK=nawk ac_cv_prog_CPP='gcc -E' ac_cv_prog_LEX=flex ac_cv_prog_YACC='bison -y' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_egrep=egrep ac_cv_prog_lex_root=lex.yy ac_cv_prog_lex_yytext_pointer=yes ac_cv_prog_make_make_set=yes ac_cv_search_strerror='none required' am_cv_CC_dependencies_compiler_type=gcc3 am_cv_prog_cc_stdc= pkg_cv_GLADE_LIB_CFLAGS='-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include ' pkg_cv_GLADE_LIB_LIBS='-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lsocket -lnsl -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 ' pkg_cv_GTHREAD_CFLAGS='-mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include ' pkg_cv_GTHREAD_LIBS='-mt -lgthread-2.0 -lglib-2.0 ' pkg_cv_GTK_CFLAGS='-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include ' pkg_cv_GTK_LIBS='-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 ' ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run aclocal-1.9' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run tar' AUTOCONF='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run autoconf' AUTOHEADER='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run autoheader' AUTOMAKE='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run automake-1.9' AWK='nawk' CC='gcc' CCDEPMODE='depmode=gcc3' CFLAGS='-g -O2' CPP='gcc -E' CPPFLAGS='-I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include' CYGPATH_W='echo' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='egrep' EXEEXT='' GLADE_LIB_CFLAGS='-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include ' GLADE_LIB_LIBS='-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lsocket -lnsl -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 ' GTHREAD_CFLAGS='-mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include ' GTHREAD_LIBS='-mt -lgthread-2.0 -lglib-2.0 ' GTK_CFLAGS='-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include ' GTK_LIBS='-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 ' HAVE_GLADE_LIB='1' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' LDFLAGS='' LEX='flex' LEXLIB='-ll' LEX_OUTPUT_ROOT='lex.yy' LIBOBJS='' LIBS='' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run makeinfo' OBJEXT='o' PACKAGE='gtkdialog' PACKAGE_BUGREPORT='[email protected]' PACKAGE_NAME='gtkdialog' PACKAGE_STRING='gtkdialog 0.7.9' PACKAGE_TARNAME='gtkdialog' PACKAGE_VERSION='0.7.9' PATH_SEPARATOR=':' PKG_CONFIG='//bin/pkg-config' SET_MAKE='' SHELL='/bin/bash' STRIP='' VERSION='0.7.9' YACC='bison -y' ac_ct_CC='gcc' ac_ct_STRIP='' ac_pt_PKG_CONFIG='//bin/pkg-config' am__fastdepCC_FALSE='#' am__fastdepCC_TRUE='' am__include='include' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build_alias='' datadir='${prefix}/share' exec_prefix='${prefix}' host_alias='' includedir='${prefix}/include' infodir='${prefix}/info' install_sh='/Desktop/gtkdialog-0.7.9/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='${prefix}/var' mandir='${prefix}/man' mkdir_p='$(mkinstalldirs)' oldincludedir='/usr/include' prefix='/usr/local' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define HAVE_INTTYPES_H 1 #define HAVE_LOCALE_H 1 #define HAVE_MEMORY_H 1 #define HAVE_SETLOCALE 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define PACKAGE "gtkdialog" #define PACKAGE_BUGREPORT "[email protected]" #define PACKAGE_NAME "gtkdialog" #define PACKAGE_STRING "gtkdialog 0.7.9" #define PACKAGE_TARNAME "gtkdialog" #define PACKAGE_VERSION "0.7.9" #define STDC_HEADERS 1 #define VERSION "0.7.9" #define YYTEXT_POINTER 1 configure: exit 0 After make command I get this below. Guys suggested me to remove -mt flag, but then I get other error's.I'm not so good in Solaris, to solve this problem, and still I'm stuck here: bash-3.2# make make all-recursive make[1]: Entering directory `/Desktop/gtkdialog-0.7.9' Making all in src make[2]: Entering directory `/Desktop/gtkdialog-0.7.9/src' make all-am make[3]: Entering directory `/Desktop/gtkdialog-0.7.9/src' if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DHAVE_GLADE_LIB=1 -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi cc1: error: invalid option `t' make[3]: *** [main.o] Error 1 make[3]: Leaving directory `/Desktop/gtkdialog-0.7.9/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/Desktop/gtkdialog-0.7.9/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/Desktop/gtkdialog-0.7.9' make: *** [all] Error 2
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 ./configure should be enough to do the right thing. Your sudo is broken because it can't find one of its shared libraries. It's probably installed but not included in your library path. Check the output of crle, and add /usr/sfw/lib, which is where that library probably resides.
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 *** Multimedia core support *** [*] Video For Linux [*] Enable Video For Linux API 1 (DEPRECATED) *** Multimedia drivers *** [*] Video capture adapters ---> [*] Radio Adapters ---> [ ] DAB adapters
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 other camera support; most people will probably want to access it via USB, and if you select Device Drivers -> Multimedia Support -> Media USB Adapters -> USB Video Class V4L2 is part of that. However, the options for 2.6.x may be slightly different. You probably do not need to build this into the kernel. If you can take your current configuration and add the required options as modules, then you should be able to make modules_install with INSTALL_MOD_PATH set (if not, they'll end up in /lib/modules/x.x.x) and copy them over to the target system's /lib/modules/x.x.x. You then need to run depmod from the target system (or see man depmod).
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 test in an emulator.
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-version and updating grub.
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 file say wifi.lua the next make (in openwrt folder) takes 21 minutes to compile successfully. However, if I don't rename the directory above the openwrt folder, with a similar minor change in the same file, the next make V=99 takes only 3 minutes to compile successfully. When I now rename the directory above and do the same as above again, the make takes 21 minutes to compile successfully. With make V=99, I can see that there were many more compilation steps taken compared to the case where I did not rename the top directory. I can see that the Makefile compilation is much faster if I do not rename the top directory. This brings me to the related question: In Linux, will renaming or moving a directory change the times of the files in subdirectories? I know that the Makefile does not build a target again if the modification time of the target is more recent than all its dependencies. I was also reading about some issues with the GNU Makefile: http://www.conifersystems.com/whitepapers/gnu-make/ Does the OpenWrt Makefile, supposed to be much more advanced than the original Linux Makefile, address some or all of these issues? (To get the Makefile to compile faster, I also have the openwrt/dl as a symbolic link to a folder in my home directory, so that the user-space package tarballs don't need to be downloaded again.)
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 advice on "standard" targets and variables. However, Makefiles don't compile and there is no such thing as the original Linux Makefile. Creating/maintaining an environment like BuildRoot is very complex and the maintainers probably focus on getting it to build correctly before efficiently. If a simple patch, like adding a symlink helps to speed up the process, maybe you should send it as a suggestion for improvement upstream.
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 time, this creates the typical folder hierarchy that includes bin lib man share info include among others. In order to properly provide access to the corresponding binaries and libraries after installation, I update PATH to include ~/my_installations/bin and LD_LIBRARY_PATH to include ~/my_installations/lib. However, how can I provide implicit access to the rest of the material under my build path ? What other environment variables should I update to have everything else available to command line tools and my system in general? (e.g. include paths, man pages, etc.). Is there a general set of standards or guide for this?
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 : CC rrdcached-rrd_daemon.o rrd_daemon.c:108:27: erreur: glib-2.0/glib.h : Aucun fichier ou dossier de ce type rrd_daemon.c:246: erreur: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token rrd_daemon.c: In function âadd_response_infoâ: rrd_daemon.c:540: attention : implicit declaration of function âva_startâ rrd_daemon.c:540: attention : nested extern declaration of âva_startâ rrd_daemon.c:546: attention : implicit declaration of function âva_endâ rrd_daemon.c:546: attention : nested extern declaration of âva_endâ [...] glib-2.0/glib.h exist in my system, in /usr/local/glib-2.34.0/glib/glib.h I set up env variable PKG_CONFIG_PATH which contain glib's path. /usr/local/glib-2.34.0/lib/pkgconfig/ I saw some topic about it but nothing for my case. Looking in config.log everything seems Ok!
"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 without setting PKG_CONFIG_PATH) It should show your glib-2.0 install path for includes & libraries, this is mine, installed to /usr/local/: -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include \ -L/usr/local/lib -lglib-2.0 If it's wrong then check the .pc file. However, the path you give for glib.h looks more like it's just the unpacked source, not a complete installation of glib-2.0. Did you have glib-2.0 installed and built already? If you are building it following the instructions URL then it does not seem correct, and you need to repeat that step. There's no reason not to do a normal configure/make/install of some of these packages to /usr/local, especially glib-2.0, zlib, libpng, libXML2 -- unless they conflict with something you already have installed. The logic behind the RRDtool build document is to build everything under /tmp and install everything under /opt to make it as self-contained as possible. While it's likely to be a reasonably robust method, there are some drawbacks to it (including the requirement to set various magic environment variables). Update: the problem is the install path of glib-2.0 is conflicting with the includes used in rrdtool . When you install it to /usr/local/glib-2.34.0/ the .pc is built to specify an include directory of /usr/local/glib-2.34.0/include/glib-2.0. This path already contains the sub-directory glib-2.0 so when rrdtool tries to include <glib-2.0/glib.h> it fails. I believe this to be an rrdtool issue, it is masked when glib-2.0 is installed to an "expected" place under /usr or /usr/local (and presumably when you use the build guideline paths exactly). If you install to /usr/local, an include path of /usr/local/include will cause "#include <glib-2.0/glib.h>" to work correctly. As a fix I suggest either building and installing all the dependencies in /usr/local (then you only need to set PKG_CONFIG_PATH=/usr/local/lib/pkgconfig) or following the rrdtool build instructions exactly, or you can set CFLAGS to where you installed glib-2.0 before you run configure, e.g.: export CFLAGS="-I/usr/local/glib-2.34.0/include" (i.e. one directory above that reported by pkg-config --cflags glib-2.0) You can see better what's going on if the compile breaks by running: make AM_DEFAULT_VERBOSITY=1 just after an error, the commands used will be retried and printed this time, so you can check the gcc -I flags. OK, Found a bug report, it's fixed (though the title "Fix build with non-standard glib location" is slightly misleading). There has been no new stable release since then though. FWIW, there are several unanswered questions on the user list that seem to be this same problem.
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_x86.hpp:27:0, from /usr/include/boost/smart_ptr/detail/sp_counted_base.hpp:36, from /usr/include/boost/smart_ptr/detail/shared_count.hpp:29, from /usr/include/boost/smart_ptr/shared_ptr.hpp:32, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/boost/property_map/vector_property_map.hpp:14, from /usr/include/boost/property_map/property_map.hpp:844, from /home/bereziak/make/mariadb-5.5.27/storage/oqgraph/graphcore.cc:36: /usr/include/boost/detail/sp_typeinfo.hpp: In instantiation of ‘boost::detail::sp_typeinfo boost::detail::sp_typeid_<boost::checked_array_deleter<unsigned char> >::ti_’: /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:149:75: instantiated from ‘void* boost::detail::sp_counted_impl_pd<P, D>::get_deleter(const boost::detail::sp_typeinfo&) [with P = unsigned char*, D = boost::checked_array_deleter<unsigned char>]’ /home/bereziak/make/mariadb-5.5.27/storage/oqgraph/graphcore.cc:1101:1: instantiated from here /usr/include/boost/detail/sp_typeinfo.hpp:77:48: error: conversion from ‘const char*’ to non-scalar type ‘boost::detail::sp_typeinfo’ requested make[2]: *** [storage/oqgraph/CMakeFiles/oqgraph.dir/graphcore.cc.o] Error 1 make[1]: *** [storage/oqgraph/CMakeFiles/oqgraph.dir/all] Error 2 make: *** [all] Error 2 Now, since I just need the client, I was thinking of deactivating the OQGraph plugin completely when configuring. But how should I do that? This is what I did: cmake . Inside my MariaDB directory, of course. How do I deactivate plugins/parts from it? with configure I'd simply use the option --without-plugin_oqgraph, I tried that with cmake as well, but it didn't work.
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 -C /home/pi/media_build/v4l allyesconfig make[1]: Entering directory `/home/pi/media_build/v4l' make[2]: Entering directory `/home/pi/media_build/linux' Applying patches for kernel 3.1.9+ patch -s -f -N -p1 -i ../backports/api_version.patch patch -s -f -N -p1 -i ../backports/pr_fmt.patch patch -s -f -N -p1 -i ../backports/v3.1_no_export_h.patch patch -s -f -N -p1 -i ../backports/v3.1_no_pm_qos.patch Patched drivers/media/dvb/dvb-core/dvbdev.c Patched drivers/media/video/v4l2-dev.c Patched drivers/media/rc/rc-main.c make[2]: Leaving directory `/home/pi/media_build/linux' ./scripts/make_kconfig.pl /lib/modules/3.1.9+/build /lib/modules/3.1.9+/build 1 Preparing to compile for kernel version 3.1.9 File not found: /lib/modules/3.1.9+/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4. make[1]: *** [allyesconfig] Error 2 make[1]: Leaving directory `/home/pi/media_build/v4l' make: *** [allyesconfig] Error 2 can't select all drivers at ./build line 451. Btw im trying to do this on the Raspberry PI, architecture is ARM cpu.
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 ... checking for dot... no checking for doxygen... no checking for pkg-config... no ... checking direct.h usability... no checking direct.h presence... no checking for direct.h... no ... checking for daemon... (cached) no However, all of these are at least installed: $ dot -V dot - graphviz version 2.26.3 (20100126.1600) $ doxygen --version 1.7.4 $ pkg-config --version 0.26 $ sudo updatedb $ locate /direct.h /usr/src/linux-headers-3.0.0-16-generic/include/config/pci/direct.h /usr/src/linux-headers-3.0.0-17-generic/include/config/pci/direct.h $ daemon --version daemon-0.6.4 I realize there might be different causes for each of these, but why aren't they detected by the configure script? I'm running Ubuntu 11.10 with the latest patches. $ uname -a Linux username 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Tried on another host. From config.log: configure:6408: checking for dot configure:6424: found /usr/bin/dot configure:6438: result: no configure:6445: checking for doxygen configure:6461: found /usr/bin/doxygen configure:6475: result: no configure:6483: checking for pkg-config configure:6504: found /usr/bin/pkg-config configure:6530: result: no What? They were found, but still no go? configure:11880: checking direct.h usability configure:11880: gcc -c -O3 -ggdb conftest.c >&5 conftest.c:135:20: fatal error: direct.h: No such file or directory compilation terminated. configure:11880: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" ... | #endif | #include <direct.h> configure:11880: result: no configure:11880: checking direct.h presence configure:11880: gcc -E conftest.c conftest.c:102:20: fatal error: direct.h: No such file or directory compilation terminated. configure:11880: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | /* end confdefs.h. */ | #include <direct.h> configure:11880: result: no configure:11880: checking for direct.h configure:11880: result: no Funky test script - Maybe it needs to be in a default path of some sort? configure:15175: checking for daemon configure:15175: result: no Turns out this is not checking for an executable, but for a C function using AC_CHECK_FUNCS.
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 repo you specify and the stock Ruby 1.9 sources The reason you see found: /usr/bin/dot in your configure.log is because it genuinely found it on the path. This is easy to see in the generated configure script, especially if you modify its first line to #!/bin/sh -x to get shell debug output: + test -z /bin + for ac_exec_ext in ''\'''\''' '$ac_executable_extensions' + test -f /bin/dot + test -x /bin/dot + ac_cv_prog_DOT= + printf '%s\n' 'configure:6424: found /bin/dot' + break 2 + IFS=' The reason you see result: no is because, as you can see the snippet above, ac_cv_prog_DOT was set to empty string, and the following lines in configure simply reflect that missing value: + DOT= + test -n '' + printf '%s\n' 'configure:6438: result: no' + printf '%s\n' no no The reason that was set to empty string is (and this is the crux of the matter) that configure.in specified empty string on line 371: AC_CHECK_PROG(DOT, dot) AC_CHECK_PROG(DOXYGEN, doxygen) I belive that's a buggy invocation of the AC_CHECK_PROG macro, which the GNU Autoconf docs specify takes three required arguments, not two: ― Macro: AC_CHECK_PROG (variable, prog-to-check-for, value-if-found, [value-if-not-found], [path = ‘$PATH’], [reject]) Check whether program prog-to-check-for exists in path. If it is found, set variable to value-if-found, otherwise to value-if-not-found, if given. Always pass over reject (an absolute file name) even if it is the first found in the search path; in that case, set variable using the absolute file name of the prog-to-check-for found that is not reject. If variable was already set, do nothing. Calls AC_SUBST for variable. The result of this test can be overridden by setting the variable variable or the cache variable ac_cv_prog_variable. There's no default value. Leaving it off effectively means "if you find dot, set DOT to empty string" I believe the reason this mistake was made was because the original definition for that line used a different macro, AC_CHECK_TOOL, that only takes two arguments. From checkin to svn.ruby-lang.org on Nov 11, 2010 It's possible this may have been busted for a while, and some ChangeLog comments seem to indicate that they've been having trouble with DOXYGEN, for example: Fri Mar 26 19:55:41 2010 Akinori MUSHA <[email protected]> * Makefile.in (DOXYGEN): Define a missing variable DOXYGEN. Build has been failing when doxygen(1) is found by configure but the variable is not defined by the system and make(1) does not allow an empty command. ("@$(DOXYGEN)" was the cause) Finally, it's possible I have this all wrong. But I'm pretty sure that configure is finding those tools, and it has been instructed to set the corresponding Makefile variables to empty string. Curious to hear what others think of this analysis.
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 ldconfig to update the linkages. My problem is that, for whatever reason, ldconfig isn't picking up libprotobuf.so, even though it is in the /usr/local/lib directory. Here is the output of ls -l /usr/local/lib: total 61336 -rw-r--r-- 1 root root 17654940 Mar 26 02:39 libprotobuf.a -rwxr-xr-x 1 root root 994 Mar 26 02:39 libprotobuf.la -rw-r--r-- 1 root root 1948106 Mar 26 02:39 libprotobuf-lite.a -rwxr-xr-x 1 root root 1029 Mar 26 02:39 libprotobuf-lite.la lrwxrwxrwx 1 root root 25 Mar 26 02:39 libprotobuf-lite.so -> libprotobuf-lite.so.7.0.0 lrwxrwxrwx 1 root root 25 Mar 26 02:39 libprotobuf-lite.so.7 -> libprotobuf-lite.so.7.0.0 -rwxr-xr-x 1 root root 893083 Mar 26 02:39 libprotobuf-lite.so.7.0.0 lrwxrwxrwx 1 root root 20 Mar 26 02:39 libprotobuf.so -> libprotobuf.so.7.0.0 lrwxrwxrwx 1 root root 20 Mar 26 02:39 libprotobuf.so.7 -> libprotobuf.so.7.0.0 -rwxr-xr-x 1 root root 7326093 Mar 26 02:39 libprotobuf.so.7.0.0 -rw-r--r-- 1 root root 25883264 Mar 26 02:39 libprotoc.a -rwxr-xr-x 1 root root 1010 Mar 26 02:39 libprotoc.la lrwxrwxrwx 1 root root 18 Mar 26 02:39 libprotoc.so -> libprotoc.so.7.0.0 lrwxrwxrwx 1 root root 18 Mar 26 02:39 libprotoc.so.7 -> libprotoc.so.7.0.0 -rwxr-xr-x 1 root root 9071740 Mar 26 02:39 libprotoc.so.7.0.0 drwxr-xr-x 2 root root 4096 Mar 26 02:39 pkgconfig Here is the output of ldconfig -v | grep protobuf: libprotobuf.so.7 -> libprotobuf.so.7.0.0 libprotobuf-lite.so.7 -> libprotobuf-lite.so.7.0.0 What do I have to do to get libprotobuf recognized by the linker? Edit: When I try to link the library directly, I get this error: ldconfig: Ignored file /usr/local/lib/libprotobuf.so since it is not a regular file. I tried copying libprotobuf.so.7.0.0 over libprotobuf.so so that it is no longer a symlink, which fixed the error, but my linker still can't find libprotobuf.
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 MySQL support as instructions are given here: http://www.php.net/manual/en/install.unix.apache2.php Here's the configure command I was running: ./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql I was getting this error: configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore! I just had a basic, default MySQL install with yum install mysql-server mysql. After some Googling, I installed mysql-devel to get rid of that error: yum install mysql-devel Then I started getting this error: configure: error: Try adding –with-zlib-dir=<DIR>. Please check config.log for more information. Okay. So I changed my command to: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-zlib Now I just get this: configure: error: mysql configure failed. Please check config.log for more information. Honestly kind of lost at this point. I'm looking at the config.log, but not exactly sure what I need to be looking for. Here's the sections I think may be relevant: configure:60061: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden-Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib conftest.c -lmysqlclient -lz -lrt -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status configure: failed program was: #line 60050 "configure" #include "confdefs.h" Any thoughts? Or should I be looking at something else in config.log?
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-date. If configure has finished running and produced a Makefile, then run make distclean. Otherwise, if PHP isn't doing anything too exotic, rm config.cache config.status should do the trick.
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 on what tools/software I could use to get this done. Less software = better :)
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/input/tablet/wacom.ko unplug and replug, jcress@debian:~/Downloads/linuxwacom-0.8.8-11$ dmesg | grep wacom [ 878.879686] usbcore: registered new interface driver wacom [ 878.879694] wacom: v1.52:USB Wacom tablet driver [ 963.774142] usbcore: deregistering interface driver wacom [ 1613.534147] usbcore: registered new interface driver wacom [ 1613.534671] wacom: v1.52-pc-0.4:USB Wacom tablet driver and dmesg | grep input doesn't list the wacom advice? Does this mean the module isn't working? EDIT: === fixed === I did dist-upgrade to testing and it 'just works'
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 \ > --target=$LFS_TGT \ > --disable-nls \ > --disable-werror ../configure: line 1345: cd: /mnt/lfs/sources/binutils-2.32/build: Not a directory configure: error: working directory cannot be determined lfs@pop-os:/mnt/lfs/sources/binutils-2.32/build$ As you can see from the prompt, build is a directory. Still, it shows the error that it is not a directory. I tried to understand the code at line 1345 of configure file but unable to understand. What mistake I did in this process?
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/rtl8814AU.git - OK cd rtl8814AU - OK make - FAIL make: "/root/rtl8814AU/Makefile" line 137: Missing dependency operator make: "/root/rtl8814AU/Makefile" line 139: Need an operator make: "/root/rtl8814AU/Makefile" line 141: Missing dependency operator ... make: "/root/rtl8814AU/Makefile" line 1688: Need an operator make: "/root/rtl8814AU/Makefile" line 1692: Need an operator make: "/root/rtl8814AU/Makefile" line 1734: Need an operator make: Fatal errors encountered -- cannot continue make: stopped in /root/rtl8814AU pkg install gmake - OK gmake - FAIL gmake ARCH=amd64 CROSS_COMPILE= -C /lib/modules/10.3-RELEASE/build M=/root/rtl8814AU modules gmake[1]: *** /lib/modules/10.3-RELEASE/build: No such file or directory. Stop. gmake: *** [Makefile:1699: modules] Error 2 Now I've reached a dead end. I have no clue what to google anymore.
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 specifically for the Linux kernel will not compile and/or work on a FreeBSD system. It's in situations like these that someone with knowledge of the FreeBSD kernel and its architecture, and at least a general knowledge of the Linux kernel, would possibly consider sitting down to port the driver from Linux to FreeBSD. This involves taking the essential workings of the driver and translating it into something that would fit the way that the FreeBSD kernel would do the equivalent things. It is an undertaking that would require both time and knowledge. As I'm not familiar with the driver, or with FreeBSD to any greater extent, I can unfortunately not say if the devices that the driver supports are or are not already supported by FreeBSD.
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 for the Raspberry Pi model B (first generation) on a Raspberry Pi 2 board running Raspbian Jessie. These errors will occur whether the kernel is for the original or Raspberry Pi 2. Here's what I'm doing and seeing: pi@rpi4 ~ $ git clone --depth=1 https://github.com/raspberrypi/linux Cloning into 'linux'... remote: Counting objects: 52876, done. remote: Compressing objects: 100% (50355/50355), done. remote: Total 52876 (delta 4013), reused 17588 (delta 1852), pack-reused 0 Receiving objects: 100% (52876/52876), 142.61 MiB | 3.87 MiB/s, done. Resolving deltas: 100% (4013/4013), done. Checking connectivity... done. Checking out files: 100% (49946/49946), done. pi@rpi4 ~ $ cd linux pi@rpi4 ~/linux $ KERNEL=kernel pi@rpi4 ~/linux $ make bcmrpi_defconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf # # configuration written to .config # pi@rpi4 ~/linux $ time make -j5 zImage modules dtbs scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config/kernel.release WRAP arch/arm/include/generated/asm/bitsperlong.h WRAP arch/arm/include/generated/asm/cputime.h .................... CC mm/frontswap.o In file included from include/linux/sched.h:27:0, from kernel/rcu/tree.c:37: include/linux/mm_types.h:209:8: internal compiler error: Segmentation fault struct page_frag { ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions. CC [M] fs/9p/v9fs.o CC [M] crypto/ctr.o CC [M] fs/9p/fid.o CC mm/dmapool.o CC [M] crypto/gcm.o CC [M] fs/9p/xattr.o CC [M] fs/9p/xattr_user.o CC mm/slub.o CC [M] fs/9p/xattr_trusted.o CC [M] fs/9p/acl.o CC [M] crypto/ccm.o LD [M] fs/9p/9p.o CC fs/autofs4/init.o The bug is not reproducible, so it is likely a hardware or OS problem. scripts/Makefile.build:258: recipe for target 'kernel/rcu/tree.o' failed make[2]: *** [kernel/rcu/tree.o] Error 1 scripts/Makefile.build:403: recipe for target 'kernel/rcu' failed make[1]: *** [kernel/rcu] Error 2 Makefile:947: recipe for target 'kernel' failed make: *** [kernel] Error 2 make: *** Waiting for unfinished jobs.... LD fs/btrfs/built-in.o CC [M] fs/btrfs/super.o CC fs/autofs4/inode.o .................... CC fs/fscache/netfs.o CC fs/f2fs/segment.o CC [M] fs/fuse/dir.o In file included from include/linux/mm.h:921:0, from include/linux/pagemap.h:7, from include/linux/fscache.h:23, from include/linux/fscache-cache.h:21, from fs/fscache/internal.h:31, from fs/fscache/netfs.c:15: include/linux/vmstat.h: In function ‘count_vm_event’: include/linux/vmstat.h:41:2: internal compiler error: Segmentation fault this_cpu_inc(vm_event_states.event[item]); ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions. CC [M] fs/btrfs/raid56.o The bug is not reproducible, so it is likely a hardware or OS problem. scripts/Makefile.build:258: recipe for target 'fs/fscache/netfs.o' failed make[2]: *** [fs/fscache/netfs.o] Error 1 scripts/Makefile.build:403: recipe for target 'fs/fscache' failed make[1]: *** [fs/fscache] Error 2 make[1]: *** Waiting for unfinished jobs.... CC [M] fs/btrfs/uuid-tree.o CC [M] fs/fuse/file.o CC [M] fs/fuse/inode.o CC fs/ext4/extents.o CC [M] fs/btrfs/props.o CC fs/f2fs/recovery.o CC [M] fs/fuse/control.o cc1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions. CC fs/f2fs/debug.o CC [M] fs/btrfs/hash.o CC [M] fs/btrfs/acl.o CC [M] fs/fuse/cuse.o The bug is not reproducible, so it is likely a hardware or OS problem. scripts/Makefile.build:258: recipe for target 'fs/f2fs/recovery.o' failed make[2]: *** [fs/f2fs/recovery.o] Error 1 make[2]: *** Waiting for unfinished jobs.... LD [M] fs/fuse/fuse.o CC fs/ext4/ext4_jbd2.o scripts/Makefile.build:403: recipe for target 'fs/f2fs' failed make[1]: *** [fs/f2fs] Error 2 CC fs/ext4/migrate.o .................... LD fs/ext4/built-in.o Makefile:947: recipe for target 'fs' failed make: *** [fs] Error 2 real 11m41.081s user 43m2.340s sys 2m1.510s pi@rpi4 ~/linux $ ccache -s cache directory /home/pi/.ccache cache hit (direct) 0 cache hit (preprocessed) 0 cache miss 0 files in cache 0 cache size 0 Kbytes max cache size 1.0 Gbytes As you can see, the compilation process fails out around the time when file system components and modules are being built. Ccache does not seem to be picking up any files, either. I see that it says there's an internal compiler error that may be due to a hardware problem, but I'm not sure what this would be. The thing is, I have also been compiling the kernel and modules on my laptop, an x86-64 machine running Ubuntu with the cross-compile toolchain installed. The laptop seems to have a much higher success rate at compiling the kernel. I'd use it for the job, but I'm working on a project that makes more sense when compiling on the Raspberry Pis themselves. I've been looking all over for a solution but can't seem to find one, and it's holding back a fairly important (to me) project.
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 for each compiled source, and I'd like to use that... but these files are deleted after short processing. (That is rule_cc_o_c definition in Makefile.build.) What could be a way to collect these files with minimal modifications to the standard build system?
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/libtrash.so.3.3 touch testfile rm testfile
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/5703066A59887FF7/Dsys/madwifi-0.9.4 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64' CC [M] /media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.o /media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.c:1: error: bad value (armv4) for -march= switch make[5]: *** [/media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.o] Error 1 make[4]: *** [/media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath] Error 2 make[3]: *** [_module_/media/5703066A59887FF7/Dsys/madwifi-0.9.4] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64' make: *** [modules] Fehler 2 Why has this error occured?
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 support cross-compiling without any modification to the distribution files. It should be sufficient to specify any parameters on the make command line. In most cases, only KERNELPATH and CROSS_COMPILE need to be defined. CROSS_COMPILE is the prefix for cross-compiling tools. For instance, if the cross compiler is called arm-linux-gcc, set CROSS_COMPILE to "arm-linux-": $ make KERNELPATH=/usr/src/linux-arm CROSS_COMPILE=arm-linux- The build system determines ARCH and TARGET based on the .config file in the Linux build tree. TARGET still may need to be provided on the command line some uncommon systems. If ARCH is determined incorrectly, please report it.
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 this variable setup in addition to toolchain variables etc. export LOCALVERSION="-cyanogenmod-gf3345ef-dirty (subbotin@avs234)" When I run make (note that on Ubuntu bash is dash) I get the following: CHK include/linux/version.h /bin/sh: 1: Syntax error: "(" unexpected (expecting ")") make: ***[include/generated/utsrelease.h] Error 2 However, if I remove "(subbotin@avs234)" the kernel compiles just fine. I need a full vermagic string since I suspect that this kernel module wouldn't load because of difference in the version string. What is the problem with parentheses? A more detailed description: The device is HTC Desire (bravo) GSM and the application is EDS Lite (http://play.google.com/store/apps/details?id=com.sovworks.edslite). I partially followed this http://oldwiki.cyanogenmod.org/wiki/Building_Kernel_from_source and this is a kernel module compilation guide http://www.sovworks.com/details.html#compileModule. In the latter link it is mentioned that vermagic string should probably match completely. When I try to load this module from the application mount menu I get 'failed loading kernel module' #get repo tool mkdir -p ~/bin curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo chmod a+x ~/bin/repo #clone repo for cm-kernel mkdir -p ~/Android/kernel cd ~/Android/kernel git clone git://github.com/CyanogenMod/cm-kernel.git cd cm-kernel #pull the kernel configuration from the device #my config file is here: http://pastebin.com/aHA2mETG adb pull /proc/config.gz ~/Android/kernel/cm-kernel cd ~/Android/kernel/cm-kernel gunzip config.gz #replace CONFIG_LOCALVERSION and CONFIG_LOCALVERSION_AUTO with null string sed 's/CONFIG_LOCALVERSION\([[:alnum:][:punct:]]\)*//' config > .config cp config .config #toolchain from http://developer.android.com/sdk/index.html#download (sdk tools) export CROSS_COMPILE=~/Android/Toolchain/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- export CCOMPILER=~/Android/Toolchain/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- export ARCH=arm export SUBARCH=arm export LOCALVERSION="-cyanogenmod-gf3345ef-dirty (subbotin@avs234)" make oldconfig #Answer "no" CONFIG_LOCALVERSION_AUTO (the second prompt) request. make #download EDS kernel module src http://www.sovworks.com/downloads.html #extract to ~/Android/km cd ~/km make -C ~/Android/kernel/cm-kernel\ ARCH=arm CROSS_COMPILE=~/Android/Toolchain/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-\ EXTRA_CFLAGS=-fno-pic\ SUBDIRS=~/Android/km modules #if LOCALVERSION="-cyanogenmod-gf3345ef-dirty" then vermagic string is as in the following modinfo eds.ko #... vermagic: 2.6.37.6-cyanogenmod-gf3345ef-dirty preempt mod_unload ARMv7 upd: just noticed that the stable version of currently installed kernel (which is 3) is not equal to the built kernel stable version (6). Not sure if they are compatible - maybe the problem is with installed kernel version string after all?
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 tars (gcc,gmp,mpfr,mpc) extracted them and moved gmp,mpfr,mpc into the sources directory of gcc (ensuring they were then named gmp, mpfr, mpc). I then cd .. out of sources and then into the build directory (objdir) and from there I ran configure. Configure goes through fine but then 'make' eventually returns: checking for MPFR... yes checking for recent GMP... yes checking for recent MPFR... no configure: error: MPFR version >= 2.4.2 required make[2]: *** [configure-stage1-mpc] Error 1 make[2]: Leaving directory `/home/myusername/gcc-temp/objdir' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/myusername/gcc-temp/objdir' make: *** [all] Error 2 Does it really have to be version 2.4.2? Is this the problem? Is the fact gcc etc are already installed elsewhere messing things up? I've set things like LD_LIBRARY_PATH="" to try to stop it looking elsewhere to no avail. I would have thought it would happily just use the mpfr in the gcc sources directory though, as it seems to be OK using the gmp that is there. The full config.log: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64. Invocation command line was $ /home/myusername/gcc-temp/gcc-4.6.3/configure --prefix=/home/myusername/opt/gcc-4.6.3 --with-local-prefix=/home/myusername/usr/local ## --------- ## ## Platform. ## ## --------- ## hostname = erased uname -m = x86_64 uname -r = 2.6.18-308.1.1.el5 uname -s = Linux uname -v = #1 SMP Fri Feb 17 16:51:01 EST 2012 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /opt/streamline/bin PATH: /opt/streamline/sbin PATH: /software/bin PATH: /usr/kerberos/bin PATH: /opt/intel/Compiler/11.1/bin/intel64/ PATH: /opt/absoft/bin PATH: /opt/pgi//linux86-64/9.0/bin PATH: /usr/local/bin PATH: /bin PATH: /usr/bin PATH: /opt/pathscale/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2222: checking build system type configure:2236: result: x86_64-unknown-linux-gnu configure:2283: checking host system type configure:2296: result: x86_64-unknown-linux-gnu configure:2316: checking target system type configure:2329: result: x86_64-unknown-linux-gnu configure:2383: checking for a BSD-compatible install configure:2451: result: /usr/bin/install -c configure:2462: checking whether ln works configure:2484: result: yes configure:2488: checking whether ln -s works configure:2492: result: yes configure:2499: checking for a sed that does not truncate output configure:2563: result: /bin/sed configure:2572: checking for gawk configure:2588: found /bin/gawk configure:2599: result: gawk configure:3913: checking for gcc configure:3929: found /usr/bin/gcc configure:3940: result: gcc configure:4169: checking for C compiler version configure:4178: gcc --version >&5 gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4189: $? = 0 configure:4178: gcc -v >&5 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-52) configure:4189: $? = 0 configure:4178: gcc -V >&5 gcc: '-V' option must have argument configure:4189: $? = 1 configure:4178: gcc -qversion >&5 gcc: unrecognized option '-qversion' gcc: no input files configure:4189: $? = 1 configure:4209: checking for C compiler default output file name configure:4231: gcc conftest.c >&5 configure:4235: $? = 0 configure:4272: result: a.out configure:4288: checking whether the C compiler works configure:4297: ./a.out configure:4301: $? = 0 configure:4316: result: yes configure:4323: checking whether we are cross compiling configure:4325: result: no configure:4328: checking for suffix of executables configure:4335: gcc -o conftest conftest.c >&5 configure:4339: $? = 0 configure:4361: result: configure:4367: checking for suffix of object files configure:4389: gcc -c conftest.c >&5 configure:4393: $? = 0 configure:4414: result: o configure:4418: checking whether we are using the GNU C compiler configure:4437: gcc -c conftest.c >&5 configure:4437: $? = 0 configure:4446: result: yes configure:4455: checking whether gcc accepts -g configure:4475: gcc -c -g conftest.c >&5 configure:4475: $? = 0 configure:4516: result: yes configure:4533: checking for gcc option to accept ISO C89 configure:4597: gcc -c -g -O2 conftest.c >&5 configure:4597: $? = 0 configure:4610: result: none needed configure:4688: checking for g++ configure:4704: found /usr/bin/g++ configure:4715: result: g++ configure:4742: checking for C++ compiler version configure:4751: g++ --version >&5 g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4762: $? = 0 configure:4751: g++ -v >&5 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-52) configure:4762: $? = 0 configure:4751: g++ -V >&5 g++: '-V' option must have argument configure:4762: $? = 1 configure:4751: g++ -qversion >&5 g++: unrecognized option '-qversion' g++: no input files configure:4762: $? = 1 configure:4766: checking whether we are using the GNU C++ compiler configure:4785: g++ -c conftest.cpp >&5 configure:4785: $? = 0 configure:4794: result: yes configure:4803: checking whether g++ accepts -g configure:4823: g++ -c -g conftest.cpp >&5 configure:4823: $? = 0 configure:4864: result: yes configure:4953: checking for gnatbind configure:4983: result: no configure:5045: checking for gnatmake configure:5075: result: no configure:5094: checking whether compiler driver understands Ada configure:5117: result: no configure:5126: checking how to compare bootstrapped objects configure:5151: result: cmp --ignore-initial=16 $$f1 $$f2 configure:5167: checking for objdir configure:5182: result: .libs configure:5724: checking for PWL_handle_timeout in -lpwl configure:5749: gcc -o conftest -g -O2 conftest.c -lpwl >&5 /usr/bin/ld: cannot find -lpwl collect2: ld returned 1 exit status configure:5749: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char PWL_handle_timeout (); | int | main () | { | return PWL_handle_timeout (); | ; | return 0; | } configure:5758: result: no configure:5772: checking for version 0.11 (revision 0 or later) of PPL configure:5789: gcc -c -g -O2 -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr -I$$s/mpc/src conftest.c >&5 conftest.c:10:19: error: ppl_c.h: No such file or directory conftest.c: In function 'main': conftest.c:16: error: 'choke' undeclared (first use in this function) conftest.c:16: error: (Each undeclared identifier is reported only once conftest.c:16: error: for each function it appears in.) conftest.c:16: error: expected ';' before 'me' configure:5789: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include "ppl_c.h" | int | main () | { | | #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 | choke me | #endif | | ; | return 0; | } configure:5793: result: no configure:7214: checking for default BUILD_CONFIG configure:7246: result: bootstrap-debug configure:7736: checking for bison configure:7752: found /usr/bin/bison configure:7763: result: bison -y configure:7784: checking for bison configure:7800: found /usr/bin/bison configure:7811: result: bison configure:7831: checking for gm4 configure:7861: result: no configure:7831: checking for gnum4 configure:7861: result: no configure:7831: checking for m4 configure:7847: found /usr/bin/m4 configure:7858: result: m4 configure:7878: checking for flex configure:7894: found /usr/bin/flex configure:7905: result: flex configure:7926: checking for flex configure:7942: found /usr/bin/flex configure:7953: result: flex configure:7973: checking for makeinfo configure:7989: found /usr/bin/makeinfo configure:8000: result: makeinfo configure:8034: checking for expect configure:8064: result: no configure:8083: checking for runtest configure:8113: result: no configure:8228: checking for ar configure:8244: found /usr/bin/ar configure:8255: result: ar configure:8369: checking for as configure:8385: found /usr/bin/as configure:8396: result: as configure:8510: checking for dlltool configure:8540: result: no configure:8651: checking for ld configure:8667: found /usr/bin/ld configure:8678: result: ld configure:8792: checking for lipo configure:8822: result: no configure:8933: checking for nm configure:8949: found /usr/bin/nm configure:8960: result: nm configure:9074: checking for ranlib configure:9090: found /usr/bin/ranlib configure:9101: result: ranlib configure:9210: checking for strip configure:9226: found /usr/bin/strip configure:9237: result: strip configure:9346: checking for windres configure:9376: result: no configure:9487: checking for windmc configure:9517: result: no configure:9628: checking for objcopy configure:9644: found /usr/bin/objcopy configure:9655: result: objcopy configure:9769: checking for objdump configure:9785: found /usr/bin/objdump configure:9796: result: objdump configure:9949: checking for cc configure:9965: found /usr/bin/cc configure:9976: result: cc configure:10110: checking for c++ configure:10126: found /usr/bin/c++ configure:10137: result: c++ configure:10271: checking for gcc configure:10287: found /usr/bin/gcc configure:10298: result: gcc configure:10427: checking for gcj configure:10443: found /usr/bin/gcj configure:10454: result: gcj configure:10588: checking for gfortran configure:10604: found /usr/bin/gfortran configure:10615: result: gfortran configure:10749: checking for gccgo configure:10779: result: no configure:10840: checking for ar configure:10873: result: no configure:10990: checking for ar configure:11006: found /usr/bin/ar configure:11017: result: ar configure:11070: checking for as configure:11103: result: no configure:11220: checking for as configure:11236: found /usr/bin/as configure:11247: result: as configure:11300: checking for dlltool configure:11333: result: no configure:11450: checking for dlltool configure:11480: result: no configure:11530: checking for ld configure:11563: result: no configure:11680: checking for ld configure:11696: found /usr/bin/ld configure:11707: result: ld configure:11760: checking for lipo configure:11793: result: no configure:11910: checking for lipo configure:11940: result: no configure:11990: checking for nm configure:12023: result: no configure:12140: checking for nm configure:12156: found /usr/bin/nm configure:12167: result: nm configure:12220: checking for objdump configure:12253: result: no configure:12370: checking for objdump configure:12386: found /usr/bin/objdump configure:12397: result: objdump configure:12450: checking for ranlib configure:12483: result: no configure:12600: checking for ranlib configure:12616: found /usr/bin/ranlib configure:12627: result: ranlib configure:12680: checking for strip configure:12713: result: no configure:12830: checking for strip configure:12846: found /usr/bin/strip configure:12857: result: strip configure:12910: checking for windres configure:12943: result: no configure:13060: checking for windres configure:13090: result: no configure:13140: checking for windmc configure:13173: result: no configure:13290: checking for windmc configure:13320: result: no configure:13348: checking where to find the target ar configure:13381: result: host tool configure:13390: checking where to find the target as configure:13423: result: host tool configure:13432: checking where to find the target cc configure:13455: result: just compiled configure:13474: checking where to find the target c++ configure:13500: result: just compiled configure:13519: checking where to find the target c++ for libstdc++ configure:13545: result: just compiled configure:13564: checking where to find the target dlltool configure:13597: result: host tool configure:13606: checking where to find the target gcc configure:13629: result: just compiled configure:13648: checking where to find the target gcj configure:13674: result: just compiled configure:13693: checking where to find the target gfortran configure:13719: result: just compiled configure:13738: checking where to find the target gccgo configure:13774: result: host tool configure:13783: checking where to find the target ld configure:13816: result: host tool configure:13825: checking where to find the target lipo configure:13847: result: host tool configure:13856: checking where to find the target nm configure:13889: result: host tool configure:13898: checking where to find the target objdump configure:13931: result: host tool configure:13940: checking where to find the target ranlib configure:13973: result: host tool configure:13982: checking where to find the target strip configure:14015: result: host tool configure:14024: checking where to find the target windres configure:14057: result: host tool configure:14066: checking where to find the target windmc configure:14099: result: host tool configure:14136: checking whether to enable maintainer-specific portions of Makefiles configure:14145: result: no configure:14178: checking whether -fkeep-inline-functions is supported configure:14197: gcc -c -g -O2 -fkeep-inline-functions conftest.c >&5 configure:14197: $? = 0 configure:14198: result: yes configure:14395: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.64. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on lin04.hpc.nottingham.ac.uk config.status:996: creating Makefile ## ---------------- ## ## Cache variables. ## ## ---------------- ## #### ---snip--- #### (cut ac_cv_xxx variables so that the log would fit in the post) acx_cv_cc_gcc_supports_ada=no acx_cv_prog_LN=ln gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' gcc_cv_tool_dirs=/home/myusername/opt/gcc-4.6.3/libexec/gcc/x86_64-unknown-linux-gnu/4.6.3:/home/myusername/opt/gcc-4.6.3/libexec/gcc/x86_64-unknown-linux-gnu:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3:/usr/lib/gcc/x86_64-unknown-linux-gnu:/home/myusername/opt/gcc-4.6.3/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu/4.6.3:/home/myusername/opt/gcc-4.6.3/x86_64-unknown-linux-gnu/bin: gcc_cv_tool_prefix=/home/myusername/opt/gcc-4.6.3 lt_cv_objdir=.libs ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='ar' AR_FOR_BUILD='$(AR)' AR_FOR_TARGET='$(AR)' AS='as' AS_FOR_BUILD='$(AS)' AS_FOR_TARGET='$(AS)' AWK='gawk' BISON='bison' BUILD_CONFIG='bootstrap-debug' CC='gcc' CC_FOR_BUILD='$(CC)' CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' CFLAGS='-g -O2' CFLAGS_FOR_BUILD='-g -O2' CFLAGS_FOR_TARGET='-g -O2' COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm' CONFIGURE_GDB_TK='' CPPFLAGS='' CXX='g++' CXXFLAGS='-g -O2' CXXFLAGS_FOR_BUILD='-g -O2' CXXFLAGS_FOR_TARGET='-g -O2' CXX_FOR_BUILD='$(CXX)' CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' DEBUG_PREFIX_CFLAGS_FOR_TARGET='' DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DLT_OBJDIR=\".libs/\"' DLLTOOL='dlltool' DLLTOOL_FOR_BUILD='$(DLLTOOL)' DLLTOOL_FOR_TARGET='$(DLLTOOL)' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' EXPECT='expect' FLAGS_FOR_TARGET=' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' FLEX='flex' GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' GCC_SHLIB_SUBDIR='' GCJ_FOR_BUILD='$(GCJ)' GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' GDB_TK='' GFORTRAN_FOR_BUILD='$(GFORTRAN)' GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' GNATBIND='no' GNATMAKE='no' GOC_FOR_BUILD='$(GOC)' GOC_FOR_TARGET='$(GOC)' INSTALL_DATA='${INSTALL} -m 644' INSTALL_GDB_TK='' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' LD='ld' LDFLAGS='' LDFLAGS_FOR_BUILD='' LD_FOR_BUILD='$(LD)' LD_FOR_TARGET='$(LD)' LEX='flex' LIBOBJS='' LIBS='' LIPO='lipo' LIPO_FOR_TARGET='$(LIPO)' LN='ln' LN_S='ln -s' LTLIBOBJS='' M4='m4' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='makeinfo' NM='nm' NM_FOR_BUILD='$(NM)' NM_FOR_TARGET='$(NM)' OBJCOPY='objcopy' OBJDUMP='objdump' OBJDUMP_FOR_TARGET='$(OBJDUMP)' OBJEXT='o' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' RANLIB='ranlib' RANLIB_FOR_BUILD='$(RANLIB)' RANLIB_FOR_TARGET='$(RANLIB)' RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' RPATH_ENVVAR='LD_LIBRARY_PATH' RUNTEST='runtest' SED='/bin/sed' SHELL='/bin/sh' STRIP='strip' STRIP_FOR_TARGET='$(STRIP)' SYSROOT_CFLAGS_FOR_TARGET='' TOPLEVEL_CONFIGURE_ARGUMENTS='/home/myusername/gcc-temp/gcc-4.6.3/configure --prefix=/home/myusername/opt/gcc-4.6.3 --with-local-prefix=/home/myusername/usr/local' WINDMC='windmc' WINDMC_FOR_BUILD='$(WINDMC)' WINDMC_FOR_TARGET='$(WINDMC)' WINDRES='windres' WINDRES_FOR_BUILD='$(WINDRES)' WINDRES_FOR_TARGET='$(WINDRES)' YACC='bison -y' ac_ct_CC='gcc' ac_ct_CXX='g++' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='' build_configargs=' --cache-file=../config.cache '\''--prefix=/home/myusername/opt/gcc-4.6.3'\'' '\''--with-local-prefix=/home/myusername/usr/local'\'' '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking' build_configdirs=' libiberty fixincludes' build_cpu='x86_64' build_libsubdir='build-x86_64-unknown-linux-gnu' build_noncanonical='x86_64-unknown-linux-gnu' build_os='linux-gnu' build_subdir='build-x86_64-unknown-linux-gnu' build_tooldir='${exec_prefix}/x86_64-unknown-linux-gnu' build_vendor='unknown' clooginc='' clooglibs='' compare_exclusions='gcc/cc*-checksum$(objext) | gcc/ada/*tools/*' config_shell='/bin/sh' configdirs=' intl libiberty zlib libcpp libdecnumber gmp mpfr mpc fixincludes gcc lto-plugin' datadir='${datarootdir}' datarootdir='${prefix}/share' do_compare='cmp --ignore-initial=16 $$f1 $$f2' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='${prefix}' extra_host_libiberty_configure_flags='--enable-shared' extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs' extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/.libs' extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs' gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr -I$$s/mpc/src ' gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp' host='x86_64-unknown-linux-gnu' host_alias='' host_configargs=' --cache-file=./config.cache '\''--prefix=/home/myusername/opt/gcc-4.6.3'\'' '\''--with-local-prefix=/home/myusername/usr/local'\'' '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking' host_cpu='x86_64' host_noncanonical='x86_64-unknown-linux-gnu' host_os='linux-gnu' host_subdir='.' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' poststage1_ldflags='-static-libstdc++ -static-libgcc' poststage1_libs='' pplinc='' ppllibs='' prefix='/home/myusername/opt/gcc-4.6.3' program_transform_name='s,y,y,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' stage1_cflags='-g -fkeep-inline-functions' stage1_checking='--enable-checking=yes,types' stage1_languages='c,lto' stage1_ldflags='' stage1_libs='' stage2_werror_flag='' sysconfdir='${prefix}/etc' target='x86_64-unknown-linux-gnu' target_alias='' target_configargs='--cache-file=./config.cache --enable-multilib '\''--prefix=/home/myusername/opt/gcc-4.6.3'\'' '\''--with-local-prefix=/home/myusername/usr/local'\'' '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking' target_configdirs=' libgcc libgomp libstdc++-v3 libmudflap libssp libquadmath libgfortran boehm-gc libffi zlib libjava libobjc' target_cpu='x86_64' target_noncanonical='x86_64-unknown-linux-gnu' target_os='linux-gnu' target_subdir='x86_64-unknown-linux-gnu' target_vendor='unknown' tooldir='${exec_prefix}/x86_64-unknown-linux-gnu' ## ------------------- ## ## File substitutions. ## ## ------------------- ## alphaieee_frag='/dev/null' host_makefile_frag='/dev/null' ospace_frag='/dev/null' serialization_dependencies='serdep.tmp' target_makefile_frag='/home/myusername/gcc-temp/gcc-4.6.3/config/mt-gnu' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define LT_OBJDIR ".libs/" configure: exit 0
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 thereof, e.g. $HOME/tools (this is usually achieved by setting the --prefix option for the configure scripts) - that creates a tree of bin, include, lib / lib64 and share under the target directory. tell the GCC's buildsystem to use libraries from your preferred directory using the --with-mpfr=$HOME/tools option to configure. Obviously you'll have to add these for any library you'll want to use from a non-standard location - see configure --help for all available options. Tweaking LD_LIBRARY_PATH isn't likely to help you as it only changes behaviour of the dynamic linker ld.so and it (amlost) always looks into /lib and /usr/lib as a last resort (see man ld.so for in depth explanation). As a side note, you might want to grab GCC 4.7.2 instead of the older 4.6.3.
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 via su) make defconfig make -j8 make install make modules_install update-initramfs -c -k 3.6.2 update-grub I forgot to do the initramfs step, which I found from this link here but I still got the error, which resulted in me finding this link. After this, this part of the error below stopped occurring, but the rest was there: W: devtmpfs not available, falling back to tmpfs for /dev Upon the GRUB menu, I edited the root UUID to /dev/sda1 but it still doesn't find it. I finally followed this link, but still no luck. Any ideas?
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 got it all working :) So, assuming you've done as I did and started off with running make defconfig run make menuconfig and go into Device Drivers. Once in there, enable Fusion MPT device support and go in there and enable all the modules (Though I don't think you need all of them. I did for now but will tinker and update my answer accordingly after I have done so). After enabling those modules, save and exit. Modify the make -j8 part as required. If you're using anything other than GRUB2 the last part will probably be different but hopefully this is generic enough for anyone to use, regardless of distro. So the entire process again, after extracting the kernel to /usr/src is: make defconfig make menuconfig make -j8 make install make modules_install update-initramfs -c -k 3.6.2 update-grub Lastly, you'll need to reinstall your VMware Tools when you're done, so you might wanna remove them first before the whole process. Cheers guys! :)
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 compiling again, and now I get one line back: program.c:5: err.h: No such file or directory Do I need to add / install to get that file? Where would this file be in my file-system? Thanks in advance. EDIT vi hello.c: /* Hello World program */ #include<stdio.h> main() { printf("Hello World"); } gcc -v hello.c: Reading specs from /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/specs gcc version 2.95.2 19991024 (release) /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Asystem(svr3) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__i386 -D__unix -D_SCO_DS=1 -D_M_I386 -D_M_XENIX -D_M_UNIX -D_STRICT_NAMES -D_SCO_XPG_VERS=4 -D_M_I86 -D_M_I86SM -D_M_INTERNAT -D_M_SDATA -D_M_STEXT -D_M_BITFIELDS -D_M_SYS5 -D_M_SYSV -D_M_SYSIII -D_M_WORDSWAP -Dunix -DM_I386 -DM_UNIX -DM_XENIX -D_SCO_ELF -D_SCO_C_DIALECT=1 hello.c /usr/tmp/cc1HX7yg.i GNU CPP version 2.95.2 19991024 (release) (i386, SCO OpenServer 5 Syntax) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/../../../../i386-pc-sco3.2v5.0.5/include /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/include /usr/include End of search list. The following default directories have been omitted from the search path: /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/../../../../include/g++-3 End of omitted list. /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/cc1 /usr/tmp/cc1HX7yg.i -quiet -dumpbase hello.c -version -o /usr/tmp/cc4HAEHq.s GNU C version 2.95.2 19991024 (release) (i386-pc-sco3.2v5.0.5) compiled by GNU C version 2.95.2 19991024 (release). In file included from hello.c:3: /usr/include/stdio.h:140: parse error before `__gnuc_va_list' /usr/include/stdio.h:140: parse error before `__gnuc_va_list' /usr/include/stdio.h:140: parse error before `__gnuc_va_list'
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 introduced to your gcc.
/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 configure // Select thread support make make deinstall make reinstall Thanks
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 could depend from application to application but how can I recognize if a package needs dynamic linked libraries?
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, assuming the library license allows you to do it. If you bundle them, make sure the binaries you build will find these libraries by using LD_RUN_PATH at compilation time which is a better practice than to rely on LD_LIBRARY_PATH to fix broken executables. See http://www.eyrie.org/~eagle/notes/rpath.html for details.
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. After 3 hours of compiling I was wondering if I did something wrong. My questions are: Did I do something wrong? If not what should I do next? What will the output be (ex. .bin, .elf)? My ultimate goal is to make an OS that I can put on a compact disc, put on another computer and run (not an Ubuntu OS with a different kernel).
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 the -jX option to make so that it can run the build in parallel. e.g. make -j4 will use four cores for most of the build. What will the output be? It will be a compressed kernel image. It is not an ELF file, nor really an executable in the ordinary sense. It is in a format appropriate for your platform's bootloader to handle. What should I do next? Depends on what you're up to... (See here for a simple HOWTO to install the modules and the kernel image, assuming you're using Grub. There are plenty of other ones available with a quick search, and you're better off looking in your current distribution's documentation if you plan on actually running a mainstream distribution with your new kernel - there are feature requirements, and potentially initrd specificities that need to be taken into account.) [My goal is to build my own OS] I'm afraid you're very far from that. Building an OS is a very, very complex task - and getting the kernel to build is one of the very easy parts. I'd suggest you head over to Linux From Scratch and read current stable "book". Also look on distrowatch, and search the "Source-based" category of distributions, some might be of interest to you.
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 package is built. Why does this happen?
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_DEFAULT, DEBUG_INFO_DWARF4, DEBUG_INFO_DWARF5).
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 source files, can I just run the same ./configure --with-option, make, make install again? I would like to add an option to a working installation of Squid that wasn't added by default.
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 work by changing configuration files, without touching the binary.  But then you're talking about configuration options, not compile-time options. You generally don't need to uninstall the program; make install will replace the existing, installed binary. In the case of a background process, daemon, server or service, you should probably make sure that the program is not running when you replace it.
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 some symlinking to /usr/bin? http://localhost is working fine. Version info for source: /usr/local/apache2/bin/apachectl -v Server version: Apache/2.4.23 (Unix) Server built: Nov 1 2016 22:52:26 Linux version: linux mint 17 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64
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. is to use the Debian source package: sudo apt-get install devscripts dpkg-dev build-essential sudo apt-get build-dep apache2 dget http://httpredir.debian.org/debian/pool/main/a/apache2/apache2_2.4.23-5.dsc cd apache2-2.4.23 dpkg-buildpackage -us -uc The first two commands install the packages necessary to build apache2; then dget downloads and extracts the source package, and dpkg-buildpackage builds it and produces a series of .deb packages you can install manually using dpkg as usual. If the build-dep line doesn't work, the following is equivalent for apache2: sudo apt-get install debhelper lsb-release libaprutil1-dev libapr1-dev libpcre3-dev zlib1g-dev libnghttp2-dev libssl-dev perl liblua5.2-dev libxml2-dev autotools-dev gawk dh-systemd
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 that this is the right one. Host machine (machine where i build the code) Processor: Intel(R) Xeon(R) CPU E5-2420 0 @ 1.90GHz OS Version: Linux 2.6.32-44 generic Target machine: (the target on which the compiled file should run) Processor: ARM926EJ-S rev 5 (v5l) OS Version: Linux 2.6.35.3-571 How can i use this new compiler to compile bluez-utils-3.36?
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 compiles native binaries (is not a cross compiler) is just called as gcc without the triplet. The triplet of the compiler that is inside the file you mentioned in your question is arm-none-linux-gnueabi (looks like a quadruplet, I know, but that's what it is). So to use it, just call arm-none-linux-gnueabi-gcc instead of plain gcc. If you are building something which uses a Makefile, you can often get that Makefile to use the compiler you want by running CC=arm-none-linux-gnueabi-gcc make instead of plain make. If you are building something which uses a GNU configure script, you can specify the target triplet for that too.
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, y, z; x = 10; y = 12; z = soma(x, y); fprintf(stdout, "A soma de %d com %d é %d\n", x, y, z); return 0; } int soma (int a, int b) { return (a + b); } When I run root@debian:/home/mz2/Documentos# LANG=C gcc -o soma soma.c soma.c:1:21: fatal error: stdio.h : No such file or directory compilation terminated. And... root@debian:/home/mz2/Documentos# LANG=C gcc -Wall -Wextra -pedantic -o soma soma.c soma.c:1:21: fatal error: stdio.h : No such file or directory compilation terminated. How can I fix this and run it?
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 do not have to fix walls of errors at the same time. To enhance the user experience you can also try out colorgcc (if available). A wrapper for gcc that outputs colorized warnings, errors etc. Also available here by http://schlueters.de/colorgcc.html You also have an error in your code as you have spaces around < and > in include: #include < stdio.h > Should be: #include <stdio.h>
"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 In the first case it failed with the following error message configure: error: GNU gettext tools not found; required for intltool In the latter case it couldn't find the C compiler What's the right way to solve this kind of problem? I understand that this is probably related to this
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 rather than directly in /usr/local/bin. The reason for this is that Homebrew installs all "keggs" in the "cellar", and gettext is a "keg" package. If everything is working as intended, your gettext tools should already be symbolically linked from the Cellar directory to /usr/local/bin, and if your Homebrew setup is correct, /usr/local/bin should be in your $PATH. Obviously, this is not set up properly, so I'd suggest making sure that your $PATH is correctly set up with /usr/local/bin before /usr/bin and that the links for the gettext tools exists from the cellar to the /usr/local/bin directory. Fixing one or both of those things will resolve this issue for you. Update: According to this SuperUser answer, symbolic links to the gettext tools may not be set up properly by default. The following command will fix it: $ brew link gettext --force Once you have compiled your other application, you may undo the above with $ brew unlink gettext ... if you wish. This other answer on StackOverflow goes on to explain that executables of Homebrew packages that are "keg-only" (gettext is one of those) are not linked from the "cellar" to /usr/local/bin. This is by design. This explains why the brew link step will be necessary to get your configure script working properly. The reason "keg-only" binaries are not put in you $PATH by default is that they may interfere with similarly named tools already present in the macOS base system.
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 Package development utilities automake-1.15_1 GNU Standards-compliant Makefile generator automake-wrapper-20131203 Wrapper script for GNU automake bmake-20151022 Portable version of NetBSD 'make' utility ciso-maker-1.02 Tool to compress ISO images to CSO format cmake-3.4.1 Cross-platform Makefile generator cmake-fedora-2.3.4 Set of cmake modules for fedora developers cmake-gui-3.4.1 Qt-based GUI for CMake cmake-modules-3.4.1 Modules and Templates for CMake cmake-modules-webos-1.0.b CMake modules needed to build WebOS components colormake-0.9_1 Wrapper to color gmake output dmake-4.12.20150309 Another hyper make utility f1spirit-remake-1.0_13 Remake of classic F1 Spirit racing game fmake-r250982 Legacy FreeBSD pmake gccmakedep-1.0.3 Create dependencies in makefiles using 'gcc -M' gmake-4.1_2 GNU version of 'make' utility gmake-lite-4.1_1 Minimalist version of gnu make gnustep-make-2.6.7_1 GNUstep makefile package icmake-7.22.01 Intelligent C-like Maker imake-1.0.7,1 Imake and other utilities from X.Org libdungeonmaker-2.05_1 Program/library that "grows" dungeons for use in isometric games libpagemaker-0.0.2 Library and tools for parsing Aldus/Adobe PageMaker documents make++-2.0 Drop-in replacement for GNU make makedepend-1.0.5,1 Dependency generator for makefiles makefaq-2.5 Makefaq is a Python program that creates a (FAQ) makehuman-0.9.1.r1.a_7 Application for parametrical modeling of 3D humanoid characters makeindex-3.0.8_1 General purpose, formatter-independent index processor makepasswd-1.10_6 Random password generator makepatch-2.05_1 Perl scripts to assist in the generation and application of patches makeself-2.2.0 Neat script to make self-extracting archives makeztxt-1.62 Command line utility to create GutenPalm's zTXT format databases menumaker-0.99.9 Menu generator for X Window Managers and desktop environments mmake-2.3_1 Create a Makefile for Your Java files, ready to compile omake-0.9.8.6.0.r1_1 Flexible build system p5-Class-MakeMethods-1.010_1 Generate common types of methods p5-Class-MethodMaker-2.24 Perl module for creating generic methods p5-DBICx-MapMaker-0.03_1 Perl 5 module to automatically create a DBIx::Class mapping table p5-ExtUtils-MakeMaker-7.10 Designed to write a Makefile for an extension module p5-ExtUtils-MakeMaker-CPANfile-0.07 Cpanfile support for ExtUtils::MakeMaker p5-ExtUtils-MakeMaker-Coverage-0.05_2 Add a Makefile target to determine test coverage using Devel::Cover p5-Locale-Maketext-1.26 Framework for software localization and inheritance-based lexicons p5-Locale-Maketext-Fuzzy-0.11_1 Maketext from already interpolated strings p5-Locale-Maketext-Gettext-1.28_2 Joins gettext and Maketext frameworks p5-Locale-Maketext-Lexicon-1.00 Use other catalog formats in Locale::Maketext p5-Locale-Maketext-Simple-0.21_1 Simple interface to Locale::Maketext::Lexicon p5-Make-1.00_1 Perl module implementing 'make' and script p5-Makefile-DOM-0.008_1 Simple DOM parser for Makefiles p5-Makefile-Parser-0.216 Makefile::Parser - A Simple Parser for Makefiles p5-Net-LDAP-Makepath-1.0.1_2 Provides a method for creating paths in LDAP simply p5-SQL-Maker-1.21 Perl extension for yet another SQL builder p5-Sort-Maker-0.06_1 Simple way to make efficient sort subs pbimaker-1.3_1 Program to convert ports into PBI modules pilot_makedoc-0.7a_1 Converts text into the Doc format used by PalmPilots premake-3.7_1 Build script creation tool premake4-4.4.b5 Build script creation tool qmake-3.3.8_2 The build utility of the Qt 3 project qt4-makeqpf-4.8.7 Qt QPF2 font generator qt4-qmake-4.8.7 Qt Makefile generator qt5-qmake-5.4.1_4 Qt Makefile generator remake-0.9 Fork of gmake with debugger smake-1.2.3 Portable make program with automake features texmaker-4.5,3 LaTeX Development Environment tmake-1.13 Extremely portable perl-based make utility unmakeself-1.1_1 Extract Makeself archives windowmaker-0.95.7_1 GNUstep-compliant NeXTstep window manager clone wmakerconf-2.12_11 Configuration tool for Window Maker wsmake-0.7.901 Software for production and maintenance of web sites xmake-1.06_1 Powerful make utility xmakemol-5.16_5 Molecule Viewer Program Based on Motif Widget xpi-passwordmaker-1.7.8 Manages all your online accounts using new or existing passwords I have tested several packages from that list, but the make command does not appears on the system. What is the correct package I must install? Tested too the packages: gcc gmake make++ To let things clear: my problem is that I don't have any make tool installed on my bundled operating system: [2.2.6-RELEASE][[email protected]]/root: make make: Command not found. This is the source code (the drivers) that I need to compile: $ ls -la total 1088 d---rwx---+ 1 Luis None 0 ene 2 23:57 . d---rwx---+ 1 Luis None 0 ene 2 23:57 .. ----rwx---+ 1 Luis None 4600 sep 7 2008 bp_ioctl.h ----rwx---+ 1 Luis None 42022 jun 12 2008 e1000_80003es2lan.c ----rwx---+ 1 Luis None 4493 jun 12 2008 e1000_80003es2lan.h ----rwx---+ 1 Luis None 22190 sep 4 2008 e1000_82540.c ----rwx---+ 1 Luis None 39951 jun 12 2008 e1000_82541.c ----rwx---+ 1 Luis None 4103 jun 12 2008 e1000_82541.h ----rwx---+ 1 Luis None 16626 jun 12 2008 e1000_82542.c ----rwx---+ 1 Luis None 48582 jun 12 2008 e1000_82543.c ----rwx---+ 1 Luis None 2618 jun 12 2008 e1000_82543.h ----rwx---+ 1 Luis None 48569 sep 4 2008 e1000_82571.c ----rwx---+ 1 Luis None 2626 jun 12 2008 e1000_82571.h ----rwx---+ 1 Luis None 35413 sep 4 2008 e1000_api.c ----rwx---+ 1 Luis None 7596 jun 12 2008 e1000_api.h ----rwx---+ 1 Luis None 74099 jun 12 2008 e1000_defines.h ----rwx---+ 1 Luis None 24432 sep 4 2008 e1000_hw.h ----rwx---+ 1 Luis None 79478 jun 12 2008 e1000_ich8lan.c ----rwx---+ 1 Luis None 5647 jun 12 2008 e1000_ich8lan.h ----rwx---+ 1 Luis None 63657 jun 12 2008 e1000_mac.c ----rwx---+ 1 Luis None 5352 jun 12 2008 e1000_mac.h ----rwx---+ 1 Luis None 11019 jun 12 2008 e1000_manage.c ----rwx---+ 1 Luis None 3859 jun 12 2008 e1000_manage.h ----rwx---+ 1 Luis None 23997 jun 12 2008 e1000_nvm.c ----rwx---+ 1 Luis None 3374 jun 12 2008 e1000_nvm.h ----rwx---+ 1 Luis None 3212 jun 12 2008 e1000_osdep.c ----rwx---+ 1 Luis None 7457 jun 12 2008 e1000_osdep.h ----rwx---+ 1 Luis None 79404 sep 2 2008 e1000_phy.c ----rwx---+ 1 Luis None 9327 jun 12 2008 e1000_phy.h ----rwx---+ 1 Luis None 21371 jun 12 2008 e1000_regs.h ----rwx---+ 1 Luis None 74859 sep 8 2008 em_bypass.c ----rwx---+ 1 Luis None 12539 sep 8 2008 em_bypass.h ----rwx---+ 1 Luis None 28352 sep 8 2008 em_sysctl.c ----rwx---+ 1 Luis None 185579 sep 7 2008 if_em.c ----rwx---+ 1 Luis None 16571 sep 2 2008 if_em.h ----rwx---+ 1 Luis None 914 sep 2 2008 Makefile ----rwx---+ 1 Luis None 15264 sep 8 2008 silbpi.4
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 to heed their advice and do the compilation on a matching FreeBSD release. FreeBSD have VM images to run for releases too. Then copy the compiled drivers across to pfSense.
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 --prefix=/home/cyue/Documents/tools The installation instruction says I have to use the h4cc to compile: The HDF4 Library installs h4cc scripts which can replace cc. h4cc should be specified as the C Compiler. This can be done by passing the following to the configure script: CC=<hdf4directory>/bin/h4cc At the beginning I don't have this but after installing HDF4-tools I confirm that I have /usr/bin/h4cc on my system. However, I am having final error like this: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for ranlib... ranlib checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking shell variables initial values... done checking for gcc... /usr/bin/h4cc checking whether the C compiler works... no configure: error: in `/home/cyue/Downloads/h4h5tools-2.2.2': configure: error: C compiler cannot create executables See `config.log' for more details. The detailed config.log: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by H4H5Tools configure 2.2.2, which was generated by GNU Autoconf 2.65. Invocation command line was $ ./configure CC=/usr/bin/h4cc --with-hdf5=/usr/lib/x86_64-linux-gnu --prefix=/home/cyue/Documents/tools ## --------- ## ## Platform. ## ## --------- ## hostname = LGGE130 uname -m = x86_64 uname -r = 3.16.0-4-amd64 uname -s = Linux uname -v = #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/local/games PATH: /usr/games PATH: /var/cfengine/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2142: checking for a BSD-compatible install configure:2210: result: /usr/bin/install -c configure:2221: checking whether build environment is sane configure:2271: result: yes configure:2412: checking for a thread-safe mkdir -p configure:2451: result: /bin/mkdir -p configure:2464: checking for gawk configure:2480: found /usr/bin/gawk configure:2491: result: gawk configure:2502: checking whether make sets $(MAKE) configure:2524: result: yes configure:2605: checking whether to enable maintainer-specific portions of Makefiles configure:2614: result: no configure:2670: checking for ranlib configure:2686: found /usr/bin/ranlib configure:2697: result: ranlib configure:2724: checking build system type configure:2738: result: x86_64-unknown-linux-gnu configure:2758: checking host system type configure:2771: result: x86_64-unknown-linux-gnu configure:2794: checking shell variables initial values ACLOCAL='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run aclocal-1.11' AMTAR='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run tar' AUTOCONF='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run autoconf' AUTOHEADER='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run autoheader' AUTOMAKE='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run automake-1.11' AWK=gawk BASEDATADIR=homel/ychao/basedata BASH=/bin/bash BASHOPTS=cmdhist:complete_fullquote:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=([0]="3") BASH_ARGV=([0]="--prefix=/home/cyue/Documents/tools" [1]="--with-hdf5=/usr/lib/x86_64-linux-gnu" [2]="CC=/usr/bin/h4cc") BASH_CMDS=() BASH_LINENO=([0]="0") BASH_SOURCE=([0]="./configure") BASH_VERSINFO=([0]="4" [1]="3" [2]="30" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") BASH_VERSION='4.3.30(1)-release' CC=/usr/bin/h4cc CONFIG_SHELL=/bin/bash CYGPATH_W=echo DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-tC6gSQHljc,guid=5c6130f74e9fde0b455bfc4555ce3181 DESKTOP_SESSION=default DIRSTACK=() DISPLAY=:0 DUALCASE=1 ECHO_C= ECHO_N=-n ECHO_T= EUID=7277 FER_DATA='. /data /usr/local/ferret//go /usr/local/ferret//examples /usr/local/ferret//contrib /data/ncep' FER_DESCR='. /descr' FER_DIR=/usr/local/ferret/ FER_EXTERNAL_FUNCTIONS=/usr/local/ferret//ext_func/libs FER_GO='. /usr/local/ferret//go /usr/local/ferret//examples /usr/local/ferret//contrib' FER_GRIDS='. /grids' FER_PALETTE='. /usr/local/ferret//ppl' FER_PATHS=/usr/local/ferret_paths GDMSESSION=default GDM_LANG=en_US.utf8 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS='JS ERROR;JS LOG' GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/7277/keyring/gpg:0:1 GROUPS=() GTK_IM_MODULE=ibus HOME=/home/cyue HOSTNAME=LGGE130 HOSTTYPE=x86_64 IFS=' ' INSTALL='/usr/bin/install -c' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LANG=en_US.utf8 LANGUAGE=C LC_ALL=C LIBOBJS= LINENO=2794 LOADEDMODULES= LOGNAME=cyue LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:' MACHTYPE=x86_64-pc-linux-gnu MAINT='#' MAINTAINER_MODE_FALSE= MAINTAINER_MODE_TRUE='#' MAKEFLAGS= MAKEINFO='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run makeinfo' MANPATH=:/var/cfengine/share/man MFLAGS= MISSING='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing' MKDIR_P='/bin/mkdir -p' MODULEPATH='/etc/environment-modules/modules:/usr/share/modules/versions:/usr/Modules/$MODULE_VERSION/modulefiles:/usr/share/modules/modulefiles' MODULESHOME=/usr/share/modules MODULE_VERSION=3.2.10 MODULE_VERSION_STACK=3.2.10 OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PACKAGE=h4h5tools [email protected] PACKAGE_NAME=H4H5Tools PACKAGE_STRING='H4H5Tools 2.2.2' PACKAGE_TARNAME=h4h5tools PACKAGE_URL= PACKAGE_VERSION=2.2.2 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/var/cfengine/bin PATH_SEPARATOR=: PIPESTATUS=([0]="0") PLOTFONTS=/usr/local/ferret//ppl/fonts POSIXLY_CORRECT=y PPID=4806 PS1='$ ' PS2='> ' PS4='+ ' PWD=/home/cyue/Downloads/h4h5tools-2.2.2 PYDIR=/home/cyue/python/ PYTHONPATH=/home/cyue/python/pylsce:/home/cyue/python/libstudy QT_IM_MODULE=ibus RANLIB=ranlib SESSION_MANAGER=local/LGGE130:@/tmp/.ICE-unix/1687,unix/LGGE130:/tmp/.ICE-unix/1687 SET_MAKE= SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments:posix SHLVL=2 SPECTRA=/usr/local/ferret//ppl SSH_AGENT_PID=1727 SSH_AUTH_SOCK=/run/user/7277/keyring/ssh TERM=xterm TMAP=/usr/local/ferret//fmt UID=7277 USER=cyue USERNAME=cyue USE_MAINTAINER_MODE=no VERSION=2.2.2 VTE_VERSION=3801 WINDOWID=31457286 WINDOWPATH=7 XAUTHORITY=/var/run/gdm3/auth-for-cyue-BlQ3QV/database XDG_CURRENT_DESKTOP=GNOME XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/ XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/7277 XDG_SEAT=seat0 XDG_SESSION_DESKTOP=default XDG_SESSION_ID=1 XDG_VTNR=7 XMODIFIERS=@im=ibus _='checking shell variables initial values... ' ac_abs_confdir=/home/cyue/Downloads/h4h5tools-2.2.2 ac_arg=CC=/usr/bin/h4cc ac_aux_dir=bin ac_build_alias=x86_64-unknown-linux-gnu ac_cache_corrupted=false ac_clean_files= ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_compiler_gnu= ac_confdir=. ac_config_guess='/bin/bash bin/config.guess' ac_config_libobj_dir=. ac_config_sub='/bin/bash bin/config.sub' ac_configure='/bin/bash bin/configure' ac_configure_args=' '\''CC=/usr/bin/h4cc'\'' '\''--with-hdf5=/usr/lib/x86_64-linux-gnu'\'' '\''--prefix=/home/cyue/Documents/tools'\''' ac_cpp='$CPP $CPPFLAGS' ac_ct_RANLIB=ranlib ac_cv_build=x86_64-unknown-linux-gnu ac_cv_env_CC_set=set ac_cv_env_CC_value=/usr/bin/h4cc ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=x86_64-unknown-linux-gnu ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_make_make_set=yes ac_dashdash= ac_default_prefix=/usr/local ac_dir=bin ac_env_CC_set=set ac_env_CC_value=/usr/bin/h4cc ac_env_CFLAGS_set= ac_env_CFLAGS_value= ac_env_CPPFLAGS_set= ac_env_CPPFLAGS_value= ac_env_CPP_set= ac_env_CPP_value= ac_env_LDFLAGS_set= ac_env_LDFLAGS_value= ac_env_LIBS_set= ac_env_LIBS_value= ac_env_build_alias_set= ac_env_build_alias_value= ac_env_host_alias_set= ac_env_host_alias_value= ac_env_target_alias_set= ac_env_target_alias_value= ac_envvar=CC ac_exec_ext= oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_t=install-sh ac_tool_prefix= ac_unique_file=lib/src/h4toh5main.c ac_unrecognized_opts= ac_unrecognized_sep= ac_user_opts=' enable_option_checking enable_maintainer_mode enable_dependency_tracking enable_static_exec with_fnord with_hdf5 with_hdfeos2 enable_production ' ac_useropt=hdf5 ac_useropt_orig=hdf5 ac_val='${datarootdir}/man' ac_var=CPP ac_word=ranlib am__api_version=1.11 am__leading_dot=. am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' am_aux_dir=/home/cyue/Downloads/h4h5tools-2.2.2/bin am_lf=' ' am_missing_run='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run ' as_basename=basename as_cr_LETTERS=ABCDEFGHIJKLMNOPQRSTUVWXYZ as_cr_Letters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ as_cr_alnum=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 as_cr_digits=0123456789 as_cr_letters=abcdefghijklmnopqrstuvwxyz as_dir=/usr/bin as_dirname=dirname as_echo='printf %s\n' as_echo_n='printf %s' as_executable_p='test -x' as_expr=expr as_lineno_1=425 as_lineno_1a=425 as_lineno_2=426 as_lineno_2a=426 as_ln_s='ln -s' as_me=configure as_mkdir_p='mkdir -p "$as_dir"' as_myself=./configure as_nl=' ' as_save_IFS=' ' as_test_x='test -x' as_tr_cpp='eval sed '\''y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'\''' as_tr_sh='eval sed '\''y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'\''' as_unset=as_fn_unset as_var=ac_cv_prog_make_make_set bindir='${exec_prefix}/bin' build=x86_64-unknown-linux-gnu build_cpu=x86_64 build_os=linux-gnu build_vendor=unknown cache_file=/dev/null cross_compiling=no datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix=NONE host=x86_64-unknown-linux-gnu host_cpu=x86_64 host_os=linux-gnu host_vendor=unknown htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' no_create= no_recursion= oldincludedir=/usr/include pdfdir='${docdir}' prefix=/home/cyue/Documents/tools program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, psdir='${docdir}' pylibast=/ahome/python/python_lib sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' silent= site= srcdir=. subdirs= sysconfdir='${prefix}/etc' target= verbose= with_hdf5=/usr/lib/x86_64-linux-gnu x_includes=NONE x_libraries=NONE configure:2797: result: done configure:2848: checking for gcc configure:2875: result: /usr/bin/h4cc configure:3104: checking for C compiler version configure:3113: /usr/bin/h4cc --version >&5 gcc (Debian 4.9.2-10) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 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: /usr/lib/libmfhdf.a: No such file or directory gcc: error: /usr/lib/libdf.a: No such file or directory Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.9.2 (Debian 4.9.2-10) configure:3124: $? = 1 configure:3113: /usr/bin/h4cc -V >&5 gcc: error: /usr/lib/libmfhdf.a: No such file or directory gcc: error: /usr/lib/libdf.a: No such file or directory gcc: error: unrecognized command line option '-V' configure:3124: $? = 1 configure:3113: /usr/bin/h4cc -qversion >&5 gcc: error: /usr/lib/libmfhdf.a: No such file or directory gcc: error: /usr/lib/libdf.a: No such file or directory gcc: error: unrecognized command line option '-qversion' configure:3124: $? = 1 configure:3144: checking whether the C compiler works configure:3166: /usr/bin/h4cc conftest.c >&5 gcc: error: /usr/lib/libmfhdf.a: No such file or directory gcc: error: /usr/lib/libdf.a: No such file or directory configure:3170: $? = 1 configure:3208: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "H4H5Tools" | #define PACKAGE_TARNAME "h4h5tools" | #define PACKAGE_VERSION "2.2.2" | #define PACKAGE_STRING "H4H5Tools 2.2.2" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE_URL "" | #define PACKAGE "h4h5tools" | #define VERSION "2.2.2" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3213: error: in `/home/cyue/Downloads/h4h5tools-2.2.2': configure:3217: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_env_CC_set=set ac_cv_env_CC_value=/usr/bin/h4cc ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=x86_64-unknown-linux-gnu ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_CC=/usr/bin/h4cc ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_make_make_set=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run aclocal-1.11' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run tar' AR='' AUTOCONF='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run autoconf' AUTOHEADER='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run autoheader' AUTOMAKE='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run automake-1.11' AWK='gawk' CC='/usr/bin/h4cc' CCDEPMODE='' CFLAGS='' CPP='' CPPFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' GREP='' H4_USE_FILTER_SZIP='' H5_USE_FILTER_SZIP='' H5_USE_FILTER_ZLIB='' H5_USE_HDFEOS2='' H5_USE_SZIP_ENCODER='' HDF5PATH='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LDFLAGS='' LD_LIBRARY_PATH='' LIBHDF5='' LIBOBJS='' LIBS='' LTLIBOBJS='' LT_STATIC_EXEC='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/missing --run makeinfo' MKDIR_P='/bin/mkdir -p' OBJEXT='' PACKAGE='h4h5tools' PACKAGE_BUGREPORT='[email protected]' PACKAGE_NAME='H4H5Tools' PACKAGE_STRING='H4H5Tools 2.2.2' PACKAGE_TARNAME='h4h5tools' PACKAGE_URL='' PACKAGE_VERSION='2.2.2' PARALLEL='' PATH_SEPARATOR=':' PERL='' RANLIB='ranlib' RUNPARALLEL='' RUNSERIAL='' SEARCH='' SETX='' SET_MAKE='' SHELL='/bin/bash' STRIP='' TESTPARALLEL='' VERSION='2.2.2' ac_ct_CC='/usr/bin/h4cc' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='' am__isrc='' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='unknown' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='x86_64-unknown-linux-gnu' host_alias='' host_cpu='x86_64' host_os='linux-gnu' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/cyue/Downloads/h4h5tools-2.2.2/bin/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/home/cyue/Documents/tools' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ------------------- ## ## File substitutions. ## ## ------------------- ## COMMENCE='' CONCLUDE='' DEPEND='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "H4H5Tools" #define PACKAGE_TARNAME "h4h5tools" #define PACKAGE_VERSION "2.2.2" #define PACKAGE_STRING "H4H5Tools 2.2.2" #define PACKAGE_BUGREPORT "[email protected]" #define PACKAGE_URL "" #define PACKAGE "h4h5tools" #define VERSION "2.2.2" configure: exit 77 However I did try to compile using gcc a hello.c and it works fine. Could anyone give me some hints? Thank you in advance !!
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: /usr/lib/libmfhdf.a: No such file or directory gcc: error: /usr/lib/libdf.a: No such file or directory Try to locate in which package you can get it and install it.
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/table_src/lenstool_tab.c:73: undefined reference to `log' /usr/local/src/lenstool-6.8/table_src/lenstool_tab.c:73: undefined reference to `log' e_nfwg.o: In function `surfdens2': /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:133: undefined reference to `pow' /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:130: undefined reference to `sin' /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:138: undefined reference to `pow' /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:140: undefined reference to `sin' /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:140: undefined reference to `pow' /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:144: undefined reference to `sin' /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:144: undefined reference to `pow' e_nfwg.o: In function `nfwg_kappa': /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:63: undefined reference to `pow' e_nfwg.o: In function `scmass': /usr/local/src/lenstool-6.8/table_src/e_nfwg.c:165: undefined reference to `pow' collect2: error: ld returned 1 exit status make[1]: *** [lenstool_tab] Error 1 make[1]: Leaving directory `/usr/local/src/lenstool-6.8/table_src' make: *** [all-recursive] Error 1 So obviously there is a problem with linking to math library. I checked that these codes do contain #include<math.h>. The main cause of this problem seems to usually be from a lack of -lm at the compile command, but as you can see it appears in the above. I added the -lm to various parts of the makefile that seemed appropriate, but it didn't help. I'm including the makefile here in case it helps. Should I be modifying the makefile to fix this? I searched this problem on the web but no answers seemed to consider the makefile. I read a suggestion in another thread to modify config.status to include -lm, but it was not clear where to do that. I've installed this program on a Mac before without issue but now I'm using Ubuntu 14 and I get this error. Any help is much appreciated! Thanks.
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 possibly fix the problem in your Makefile so that the libraries are specified later.
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 cumbersome to install software from source: # as root mkdir program chown user.user program # as user wget/curl/mv program.tar.gz program/. cd program/ ./configure --prefix=/usr/local make # as root make install Is this the simplest, most proper way to install software from source system-wide? Is it true that make is dangerous as root but make install isn't?
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 typically. Note that in the example you give, there's no need to create program as root; download your tarball to your home directory or some other directory you can write to, extract it, configure and build as a plain user: $ wget ... $ tar xf program...tar.gz $ cd program... $ ./configure --prefix=/usr/local $ make Generally /usr/local is the default prefix so it can be omitted. If you want to maximise safety, use a dedicated user to build software (so you don't lose your own files if something goes wrong), and of course read the build system at least. make -n can help: it will show you what would be done without actually doing anything. You could also create a special user or group with write access to /usr/local and use that when running make install.
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 don't want to mess up my existing system, that why I chose virtualization). I am stuck at the point of building grub. I was able to build the latest version of grub i,e 2.0, but I was unable to locate required files stage1, stage2, e2fs_stage1_5 (mentioned in the blog). Taking the old version 0.97 as per the blog, surprising the build is failing, during configure configure: error: GRUB requires a working absolute objcopy; upgrade your binutils Upgrade your binutils ? I am using quiet latest Ubuntu. grub-0.97$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.3 LTS Release: 12.04 Codename: precise grub-0.97$ ld -version GNU ld (GNU Binutils for Ubuntu) 2.22 I also found this link mentioning something about binutil upgrade (2.9.1.0.23 or later) for building GRUB. Am I doing anything wrong ?
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 won't auto-close if there was an error during execution?
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. If you insist in creating a new terminal each time (a bad idea, because that will make messages from prior builds immediately unavailable), you can make the terminal wait in case of error by inserting a shell snippet that checks the return status, and waits for input if there is an error. xterm -e sh -c 'ant mytarget || read line' If the build process completes successfully, the terminal window will be closed immediately. If the build process fails, the terminal window will be closed after you press Enter.
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 necessary dependencies. Update with more details I made some progress, and now I get much further in the compilation process. However, it fails eventually: make[3]: Leaving directory '/mnt/src/deb/LINPHONE/linphone-3.12.0/obj-x86_64-linux-gnu' [ 66%] Built target linphone-static make[2]: Leaving directory '/mnt/src/deb/LINPHONE/linphone-3.12.0/obj-x86_64-linux-gnu' make[1]: *** [Makefile:159: all] Error 2 make[1]: Leaving directory '/mnt/src/deb/LINPHONE/linphone-3.12.0/obj-x86_64-linux-gnu' dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 make: *** [debian/rules:15: binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 The full build output here and debian/rules here
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/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 700, in render_all self.render(header, self.includedir + '/enums.hh') File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 716, in render with open(tmppath, mode='rU') as f: ^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid mode: 'rU' Python 3 no longer has a “U” mode for open(). To fix this, add debian/patches/genwrapper.patch containing Index: linphone-3.12.0/wrappers/cpp/genwrapper.py =================================================================== --- linphone-3.12.0.orig/wrappers/cpp/genwrapper.py +++ linphone-3.12.0/wrappers/cpp/genwrapper.py @@ -713,7 +713,7 @@ class GenWrapper(object): content = '' with open(tmppath, mode='w') as f: f.write(self.renderer.render(item)) - with open(tmppath, mode='rU') as f: + with open(tmppath, mode='r') as f: content = f.read() with open(path, mode='w') as f: f.write(content) and add it to debian/patches/series: $ echo genwrapper.patch >> debian/patches/series
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: -c: line 0: `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' make: *** [Makefile:16: hw1.x] Error 1 Here is the content of my makefile: LDFLAGS += -Ldcmt0.4/lib -ldcmt include Makefile.include HW1_INCS = black_scholes.h gaussian.h parser.h random.h timer.h util.h HW1_C_SRCS = black_scholes.c gaussian.c main.c parser.c random.c dcmt0.4/lib/random_seed.c timer.c util.c HW1_C_OBJS = $(HW1_C_SRCS:.c=.o) HW1_EXE = hw1.x all: hw1.x %.o: %.c $(CC) -c $(CCFLAGS) $(ACCFLAGS) $< -o $@ hw1.x: $(HW1_C_OBJS) dcmt0.4/lib/libdcmt.a $(CC) $LFLAGS$ (LDFLAGS) $(HW1_C_OBJS) -o $@ dcmt0.4/lib/libdcmt.a: make -C dcmt0.4/lib black_scholes.o: black_scholes.c black_scholes.h gaussian.h random.h util.h gaussian.o: gaussian.c gaussian.h util.h main.o: main.c black_scholes.h parser.h random.h timer.h parser.o: parser.c parser.h random.o: random.c random.h dcmt0.4/lib/random_seed.o: dcmt0.4/lib/random_seed.c timer.o: timer.c timer.h util.o: util.c util.h clean: make -C dcmt0.4/lib clean rm -f $(HW1_C_OBJS) $(HW1_EXE) and here is the content of my makefile.include CC = nvc LINKER = nvc LDFLAGS = -lm I don;t really understand where the error is in the first place as usually errors in makefile indicate an error there and not in /bin/sh , any help understand or fixing the error would be appreciated
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) $(HW1_C_OBJS) -o $@
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/libcrypt.so when searching for -lcrypt /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.a when searching for -lcrypt /usr/bin/ld: cannot find -lcrypt /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt collect2: error: ld returned 1 exit status I've install multilib and i386 with this command sudo apt-get install gcc-multilib libc6-dev-i386 but it is still not working. here is libcrypt list in my device: $ locate libcrypt /usr/i686-w64-mingw32/lib/libcrypt32.a /usr/i686-w64-mingw32/lib/libcryptnet.a /usr/i686-w64-mingw32/lib/libcryptsp.a /usr/i686-w64-mingw32/lib/libcryptxml.a /usr/lib/i386-linux-gnu/libcrypt.so.1 /usr/lib/i386-linux-gnu/libcrypt.so.1.1.0 /usr/lib/nsight-compute/host/linux-desktop-glibc_2_11_3-x64/libcrypto.so.1.0.0 /usr/lib/nsight-systems/host-linux-x64/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypt.a /usr/lib/x86_64-linux-gnu/libcrypt.so /usr/lib/x86_64-linux-gnu/libcrypt.so.1 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0 /usr/lib/x86_64-linux-gnu/libcrypto.a /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcryptsetup.so.12 /usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0 /usr/lib/x86_64-linux-gnu/pkgconfig/libcrypt.pc /usr/lib/x86_64-linux-gnu/pkgconfig/libcrypto.pc /usr/share/bug/libcryptsetup12 /usr/share/doc/libcrypt-dev /usr/share/doc/libcrypt1 /usr/share/doc/libcryptsetup12 /usr/share/doc/libcrypt1/README.md.gz /usr/share/doc/libcrypt1/TODO.md.gz /usr/share/doc/libcrypt1/changelog.Debian.gz /usr/share/doc/libcrypt1/changelog.gz /usr/share/doc/libcrypt1/copyright /usr/share/doc/libcryptsetup12/changelog.Debian.gz /usr/share/doc/libcryptsetup12/changelog.gz /usr/share/doc/libcryptsetup12/copyright /usr/x86_64-w64-mingw32/lib/libcrypt32.a /usr/x86_64-w64-mingw32/lib/libcryptdlg.a /usr/x86_64-w64-mingw32/lib/libcryptdll.a /usr/x86_64-w64-mingw32/lib/libcryptext.a /usr/x86_64-w64-mingw32/lib/libcryptnet.a /usr/x86_64-w64-mingw32/lib/libcryptsp.a /usr/x86_64-w64-mingw32/lib/libcryptsvc.a /usr/x86_64-w64-mingw32/lib/libcryptui.a /usr/x86_64-w64-mingw32/lib/libcryptxml.a /var/cache/apt/archives/libcrypt-dev_1%3a4.4.17-1_amd64.deb /var/cache/apt/archives/libcrypt1_1%3a4.4.17-1_amd64.deb /var/cache/apt/archives/libcrypt1_1%3a4.4.17-1_i386.deb /var/lib/dpkg/info/libcrypt-dev:amd64.list /var/lib/dpkg/info/libcrypt-dev:amd64.md5sums /var/lib/dpkg/info/libcrypt1:amd64.list /var/lib/dpkg/info/libcrypt1:amd64.md5sums /var/lib/dpkg/info/libcrypt1:amd64.shlibs /var/lib/dpkg/info/libcrypt1:amd64.symbols /var/lib/dpkg/info/libcrypt1:amd64.triggers /var/lib/dpkg/info/libcrypt1:i386.list /var/lib/dpkg/info/libcrypt1:i386.md5sums /var/lib/dpkg/info/libcrypt1:i386.shlibs /var/lib/dpkg/info/libcrypt1:i386.symbols /var/lib/dpkg/info/libcrypt1:i386.triggers /var/lib/dpkg/info/libcryptsetup12:amd64.list /var/lib/dpkg/info/libcryptsetup12:amd64.md5sums /var/lib/dpkg/info/libcryptsetup12:amd64.shlibs /var/lib/dpkg/info/libcryptsetup12:amd64.symbols /var/lib/dpkg/info/libcryptsetup12:amd64.triggers is there way how to fix it? or shall I make a 32 bit VM to compile this?
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 for Perl Compatible Regular Expressions library and the specfile has: %configure \ %ifarch s390 s390x sparc64 sparcv9 riscv64 --disable-jit \ %else --enable-jit \ %endif --enable-pcretest-libreadline \ --enable-utf \ --enable-unicode-properties \ --enable-pcre8 \ --enable-pcre16 \ --enable-pcre32 \ --disable-silent-rules %{make_build} And I want to add the compiler flags for AddressSanitizer, so I add this after --disable-silent-rules: CFLAGS="$CFLAGS -fsanitize=address -g3" CXXFLAGS="$CXXFLAGS -fsanitize=address -g3" \ LDFLAGS="$LDFLAGS -fsanitize=address -g3" \ LSAN_OPTIONS="verbosity=1:log_threads=1:log_pointers=1" ASAN_OPTIONS="detect_leaks=0" Is this the best way to do this? I'm finding that sometimes, this does not work. In this case, I checked the output .sos and they do not have asan sections or -g3 debug info... I'm looking for a reliable way to add in asan and debug info in this case, but this could apply to any such compiler flags. I could also try to do this manually, but I'd prefer to use the RPM tools so that I can reliably reproduce the exact build as specified in the RPM specfile.
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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection Copy-paste your result, while modifying parameters as needed, e.g. change -g to -g3 and save it in ~/.rpmrc. Verify that you did everything correctly by running the above command again, to get the modified value.
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 daily applications. I am also wondering whether I should use GCC or Intel's C compiler. I typically use at most 2 GB of RAM, but I have an old and slow processor. Should I compile all of my applications from source or keep using binaries? Thanks!
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 Gentoo, for example. Is it worth the effort? Probably not, unless your are running on pretty old hardware, or you are doing some serious number crunching or something that is run so many times a second, each instruction counts. Current hardware is basically idle most of the time, and that's a fact that allows for stuff like SETI@home, Folding@home, Great Mersenne Prime Search, ... In older hardware, configuration might help more than recompilation (that comes with its own set of problems, like maintanability, security fixes and dependency tracking). For example, configuring Firefox to use just one or two parallel content processes helps a lot in low memory systems. If CPU is your problem, you might want to either disable or manually run certain services or background tasks. Tumblerd can easilly kill an old computer, and so does updatedb. Always on the configuration side, you could recompile to disable unneeded libraries/services or adjust other fields. For example building libreoffice with --disable-pdfimport. In that general case, you'd still be better off downloading the source packages used in your system (not upstream) and tweaking those. Not a lot to gain, but lots to learn. Also note that the speed of an application may in cases be limited by disk or network I/O speed. In these cases, compiling the software from source can not be expected to improve performance.
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 a process, how many memory and cpu load will be consumed compared to start the shell script?
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 the pre-existing library-function / command. File-open, file-copy, file-delete, and wait are done by the kernel, very little is done in the application, so again little change. However the only ways to know, is to measure both. Some rules of optimisation Get it to work, then (if necessary) make it fast/small. Optimise for readability. Optimise for speed, only after you have evidence that it is not fast enough. When optimising for speed, measure both implementations, don't assume that one is faster (you will probably be wrong). Never optimise for the best case, optimise for worse or average case.
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 checking for grep that handles long lines and -e... /usr/bin/ggrep checking for egrep... /usr/bin/ggrep -E checking build system type... i386-pc-solaris2.11 checking host system type... i386-pc-solaris2.11 checking target system type... i386-pc-solaris2.11 configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... yes setting CPP to "cc -m32 -E" setting CFLAGS to " " setting CPPFLAGS to " -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" setting LDFLAGS to " " configure: configure: Configuring Apache Portable Runtime Utility library... configure: checking for APR-util... yes checking for gcc... /usr/bin/gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -m32 -E configure: error: in `/export/home/admin/Downloads/Normal_apache/httpd-2.4.25': configure: error: C preprocessor "cc -m32 -E" fails sanity check See `config.log' for more details It fail sanity check. Here its the log ## --------- ## ## Platform. ## ## --------- ## hostname = solaris uname -m = i86pc uname -r = 5.11 uname -s = SunOS uname -v = 11.3 /usr/bin/uname -p = i386 /bin/uname -X = System = SunOS Node = solaris Release = 5.11 KernelID = 11.3 Machine = i86pc BusType = <unknown> Serial = <unknown> Users = <unknown> OEM# = 0 Origin# = 1 NumCPU = 2 /bin/arch = i86pc /usr/bin/arch -k = i86pc /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/sbin PATH: /usr/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:3098: checking for chosen layout configure:3100: result: Apache configure:3903: checking for working mkdir -p configure:3919: result: yes configure:3928: checking for grep that handles long lines and -e configure:3986: result: /usr/bin/ggrep configure:3991: checking for egrep configure:4053: result: /usr/bin/ggrep -E configure:4069: checking build system type configure:4083: result: i386-pc-solaris2.11 configure:4103: checking host system type configure:4116: result: i386-pc-solaris2.11 configure:4136: checking target system type configure:4149: result: i386-pc-solaris2.11 configure:4179: configure:4181: Configuring Apache Portable Runtime library... configure:4183: configure:4224: checking for APR configure:4369: result: yes configure:4629: configure:4631: Configuring Apache Portable Runtime Utility library... configure:4633: configure:4670: checking for APR-util configure:4749: result: yes configure:5010: checking for gcc configure:5037: result: /usr/bin/gcc configure:5266: checking for C compiler version configure:5275: /usr/bin/gcc --version >&5 gcc (GCC) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:5286: $? = 0 configure:5275: /usr/bin/gcc -v >&5 Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapper Target: i386-pc-solaris2.11 Configured with: /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8.2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc --enable-shared --with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 -mtune=opteron -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron' Thread model: posix gcc version 4.8.2 (GCC) configure:5286: $? = 0 configure:5275: /usr/bin/gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:5286: $? = 1 configure:5275: /usr/bin/gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:5286: $? = 1 configure:5306: checking whether the C compiler works configure:5328: /usr/bin/gcc -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5 configure:5332: $? = 0 configure:5380: result: yes configure:5383: checking for C compiler default output file name configure:5385: result: a.out configure:5391: checking for suffix of executables configure:5398: /usr/bin/gcc -o conftest -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5 configure:5402: $? = 0 configure:5424: result: configure:5446: checking whether we are cross compiling configure:5454: /usr/bin/gcc -o conftest -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5 configure:5458: $? = 0 configure:5465: ./conftest configure:5469: $? = 0 configure:5484: result: no configure:5489: checking for suffix of object files configure:5511: /usr/bin/gcc -c -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5 configure:5515: $? = 0 configure:5536: result: o configure:5540: checking whether we are using the GNU C compiler configure:5559: /usr/bin/gcc -c -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5 configure:5559: $? = 0 configure:5568: result: yes configure:5577: checking whether /usr/bin/gcc accepts -g configure:5597: /usr/bin/gcc -c -g -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5 configure:5597: $? = 0 configure:5638: result: yes configure:5655: checking for /usr/bin/gcc option to accept ISO C89 configure:5718: /usr/bin/gcc -c -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5 configure:5718: $? = 0 configure:5731: result: none needed configure:5756: checking how to run the C preprocessor configure:5826: result: cc -m32 -E configure:5846: cc -m32 -E -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c ./configure[2168]: eval[1]: cc: not found [No such file or directory] configure:5846: $? = 127 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:5846: cc -m32 -E -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c ./configure[2168]: eval[1]: cc: not found [No such file or directory] configure:5846: $? = 127 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:5876: error: in `/export/home/admin/Downloads/Normal_apache/httpd-2.4.25': configure:5878: error: C preprocessor "cc -m32 -E" fails sanity check See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i386-pc-solaris2.11 ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set=set ac_cv_env_CC_value=/usr/bin/gcc ac_cv_env_CFLAGS_set='' ac_cv_env_CFLAGS_value='' ac_cv_env_CPPFLAGS_set='' ac_cv_env_CPPFLAGS_value='' ac_cv_env_CPP_set='' ac_cv_env_CPP_value='' ac_cv_env_LDFLAGS_set='' ac_cv_env_LDFLAGS_value='' ac_cv_env_LIBS_set='' ac_cv_env_LIBS_value='' ac_cv_env_build_alias_set='' ac_cv_env_build_alias_value='' ac_cv_env_host_alias_set='' ac_cv_env_host_alias_value='' ac_cv_env_target_alias_set='' ac_cv_env_target_alias_value='' ac_cv_host=i386-pc-solaris2.11 ac_cv_mkdir_p=yes ac_cv_objext=o ac_cv_path_EGREP='/usr/bin/ggrep -E' ac_cv_path_GREP=/usr/bin/ggrep ac_cv_prog_CPP='cc -m32 -E' ac_cv_prog_ac_ct_CC=/usr/bin/gcc ac_cv_prog_cc_c89='' ac_cv_prog_cc_g=yes ac_cv_target=i386-pc-solaris2.11 ## ----------------- ## ## Output variables. ## ## ----------------- ## APACHECTL_ULIMIT='' APR_BINDIR='/usr/apr/1.5/bin' APR_CONFIG='/usr/apr/1.5/bin/apr-1-config' APR_INCLUDEDIR='/usr/apr/1.5/include' APR_VERSION='1.5.1' APU_BINDIR='/usr/apr-util/1.5/bin' APU_CONFIG='/usr/apr-util/1.5/bin/apu-1-config' APU_INCLUDEDIR='/usr/apr-util/1.5/include' APU_VERSION='1.5.4' AP_BUILD_SRCLIB_DIRS='' AP_CLEAN_SRCLIB_DIRS='' AP_LIBS='' AWK='' BUILTIN_LIBS='' CC='/usr/bin/gcc' CFLAGS=' ' CORE_IMPLIB='' CORE_IMPLIB_FILE='' CPP='cc -m32 -E' CPPFLAGS=' -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' CRYPT_LIBS='' CXX='' CXXFLAGS='' DEFS='' DSO_MODULES='' DTRACE='' ECHO_C='\c' ECHO_N='' ECHO_T='' EGREP='/usr/bin/ggrep -E' ENABLED_DSO_MODULES='' EXEEXT='' EXTRA_CFLAGS='' EXTRA_CPPFLAGS='' EXTRA_CXXFLAGS='' EXTRA_INCLUDES='' EXTRA_LDFLAGS='' EXTRA_LIBS='' GREP='/usr/bin/ggrep' HTTPD_LDFLAGS='' HTTPD_MMN='20120211' HTTPD_VERSION='2.4.25' INCLUDES='' INSTALL='' INSTALL_DSO='' INSTALL_PROG_FLAGS='' INTERNAL_CPPFLAGS='' LDFLAGS=' ' LIBOBJS='' LIBS='' LIBTOOL='' LN_S='' LOAD_ALL_MODULES='' LTCFLAGS='' LTFLAGS='' LTLIBOBJS='' LT_LDFLAGS='' LUA_CFLAGS='' LUA_LIBS='' LYNX_PATH='' MATH_LIBS='' MKDEP='' MKINSTALLDIRS='' MK_IMPLIB='' MODULE_CLEANDIRS='' MODULE_DIRS='' MOD_ACCESS_COMPAT_LDADD='' MOD_ACTIONS_LDADD='' MOD_ALIAS_LDADD='' MOD_ALLOWMETHODS_LDADD='' MOD_ASIS_LDADD='' MOD_AUTHNZ_FCGI_LDADD='' MOD_AUTHNZ_LDAP_LDADD='' MOD_AUTHN_ANON_LDADD='' MOD_AUTHN_CORE_LDADD='' MOD_AUTHN_DBD_LDADD='' MOD_AUTHN_DBM_LDADD='' MOD_AUTHN_FILE_LDADD='' MOD_AUTHN_SOCACHE_LDADD='' MOD_AUTHZ_CORE_LDADD='' MOD_AUTHZ_DBD_LDADD='' MOD_AUTHZ_DBM_LDADD='' MOD_AUTHZ_GROUPFILE_LDADD='' MOD_AUTHZ_HOST_LDADD='' MOD_AUTHZ_OWNER_LDADD='' MOD_AUTHZ_USER_LDADD='' MOD_AUTH_BASIC_LDADD='' MOD_AUTH_DIGEST_LDADD='' MOD_AUTH_FORM_LDADD='' MOD_AUTOINDEX_LDADD='' MOD_BUCKETEER_LDADD='' MOD_BUFFER_LDADD='' MOD_CACHE_DISK_LDADD='' MOD_CACHE_LDADD='' MOD_CACHE_SOCACHE_LDADD='' MOD_CASE_FILTER_IN_LDADD='' MOD_CASE_FILTER_LDADD='' MOD_CERN_META_LDADD='' MOD_CGID_LDADD='' MOD_CGI_LDADD='' MOD_CHARSET_LITE_LDADD='' MOD_DATA_LDADD='' MOD_DAV_FS_LDADD='' MOD_DAV_LDADD='' MOD_DAV_LOCK_LDADD='' MOD_DBD_LDADD='' MOD_DEFLATE_LDADD='' MOD_DIALUP_LDADD='' MOD_DIR_LDADD='' MOD_DUMPIO_LDADD='' MOD_ECHO_LDADD='' MOD_ENV_LDADD='' MOD_EXAMPLE_HOOKS_LDADD='' MOD_EXAMPLE_IPC_LDADD='' MOD_EXPIRES_LDADD='' MOD_EXT_FILTER_LDADD='' MOD_FILE_CACHE_LDADD='' MOD_FILTER_LDADD='' MOD_HEADERS_LDADD='' MOD_HEARTBEAT_LDADD='' MOD_HEARTMONITOR_LDADD='' MOD_HTTP2_LDADD='' MOD_HTTP_LDADD='' MOD_IDENT_LDADD='' MOD_IMAGEMAP_LDADD='' MOD_INCLUDE_LDADD='' MOD_INFO_LDADD='' MOD_ISAPI_LDADD='' MOD_LBMETHOD_BYBUSYNESS_LDADD='' MOD_LBMETHOD_BYREQUESTS_LDADD='' MOD_LBMETHOD_BYTRAFFIC_LDADD='' MOD_LBMETHOD_HEARTBEAT_LDADD='' MOD_LDAP_LDADD='' MOD_LOGIO_LDADD='' MOD_LOG_CONFIG_LDADD='' MOD_LOG_DEBUG_LDADD='' MOD_LOG_FORENSIC_LDADD='' MOD_LUA_LDADD='' MOD_MACRO_LDADD='' MOD_MIME_LDADD='' MOD_MIME_MAGIC_LDADD='' MOD_MPM_EVENT_LDADD='' MOD_NEGOTIATION_LDADD='' MOD_OPTIONAL_FN_EXPORT_LDADD='' MOD_OPTIONAL_FN_IMPORT_LDADD='' MOD_OPTIONAL_HOOK_EXPORT_LDADD='' MOD_OPTIONAL_HOOK_IMPORT_LDADD='' MOD_PRIVILEGES_LDADD='' MOD_PROXY_AJP_LDADD='' MOD_PROXY_BALANCER_LDADD='' MOD_PROXY_CONNECT_LDADD='' MOD_PROXY_EXPRESS_LDADD='' MOD_PROXY_FCGI_LDADD='' MOD_PROXY_FDPASS_LDADD='' MOD_PROXY_FTP_LDADD='' MOD_PROXY_HCHECK_LDADD='' MOD_PROXY_HTML_LDADD='' MOD_PROXY_HTTP2_LDADD='' MOD_PROXY_HTTP_LDADD='' MOD_PROXY_LDADD='' MOD_PROXY_SCGI_LDADD='' MOD_PROXY_WSTUNNEL_LDADD='' MOD_RATELIMIT_LDADD='' MOD_REFLECTOR_LDADD='' MOD_REMOTEIP_LDADD='' MOD_REQTIMEOUT_LDADD='' MOD_REQUEST_LDADD='' MOD_REWRITE_LDADD='' MOD_SED_LDADD='' MOD_SESSION_COOKIE_LDADD='' MOD_SESSION_CRYPTO_LDADD='' MOD_SESSION_DBD_LDADD='' MOD_SESSION_LDADD='' MOD_SETENVIF_LDADD='' MOD_SLOTMEM_PLAIN_LDADD='' MOD_SLOTMEM_SHM_LDADD='' MOD_SOCACHE_DBM_LDADD='' MOD_SOCACHE_DC_LDADD='' MOD_SOCACHE_MEMCACHE_LDADD='' MOD_SOCACHE_SHMCB_LDADD='' MOD_SO_ENABLED='' MOD_SO_LDADD='' MOD_SPELING_LDADD='' MOD_SSL_LDADD='' MOD_STATUS_LDADD='' MOD_SUBSTITUTE_LDADD='' MOD_SUEXEC_LDADD='' MOD_UNIQUE_ID_LDADD='' MOD_UNIXD_LDADD='' MOD_USERDIR_LDADD='' MOD_USERTRACK_LDADD='' MOD_VERSION_LDADD='' MOD_VHOST_ALIAS_LDADD='' MOD_WATCHDOG_LDADD='' MOD_XML2ENC_LDADD='' MPM_LIB='' MPM_SUBDIRS='' NONPORTABLE_SUPPORT='' NOTEST_CFLAGS='' NOTEST_CPPFLAGS='' NOTEST_CXXFLAGS='' NOTEST_LDFLAGS='' NOTEST_LIBS='' OBJEXT='o' OS='' OS_DIR='' OS_SPECIFIC_VARS='' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PCRE_CONFIG='' PCRE_LIBS='' PICFLAGS='' PILDFLAGS='' PKGCONFIG='' PORT='' POST_SHARED_CMDS='' PRE_SHARED_CMDS='' RANLIB='' RM='' RSYNC='' SHELL='/bin/sh' SHLIBPATH_VAR='LD_LIBRARY_PATH' SHLTCFLAGS='' SH_LDFLAGS='' SH_LIBS='' SH_LIBTOOL='' SSLPORT='' UTIL_LDFLAGS='' ab_CFLAGS='' ab_LDFLAGS='' ab_LTFLAGS='' abs_srcdir='/export/home/admin/Downloads/Normal_apache/httpd-2.4.25' ac_ct_CC='/usr/bin/gcc' ap_make_delimiter='' ap_make_include='' bindir='${exec_prefix}/bin' build='i386-pc-solaris2.11' build_alias='' build_cpu='i386' build_os='solaris2.11' build_vendor='pc' cgidir='${datadir}/cgi-bin' checkgid_LTFLAGS='' datadir='${prefix}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' errordir='${datadir}/error' exec_prefix='${prefix}' exp_bindir='/opt/app/apache/bin' exp_cgidir='/opt/app/apache/cgi-bin' exp_datadir='/opt/app/apache' exp_errordir='/opt/app/apache/error' exp_exec_prefix='/opt/app/apache' exp_htdocsdir='/opt/app/apache/htdocs' exp_iconsdir='/opt/app/apache/icons' exp_includedir='/opt/app/apache/include' exp_installbuilddir='/opt/app/apache/build' exp_libdir='/opt/app/apache/lib' exp_libexecdir='/opt/app/apache/modules' exp_localstatedir='/opt/app/apache' exp_logfiledir='/opt/app/apache/logs' exp_mandir='/opt/app/apache/man' exp_manualdir='/opt/app/apache/manual' exp_proxycachedir='/opt/app/apache/proxy' exp_runtimedir='/opt/app/apache/logs' exp_sbindir='/opt/app/apache/bin' exp_sysconfdir='/opt/app/apache/conf' fcgistarter_LTFLAGS='' host='i386-pc-solaris2.11' host_alias='' host_cpu='i386' host_os='solaris2.11' host_vendor='pc' htcacheclean_LTFLAGS='' htdbm_LTFLAGS='' htdigest_LTFLAGS='' htdocsdir='${datadir}/htdocs' htmldir='${docdir}' htpasswd_LTFLAGS='' httxt2dbm_LTFLAGS='' iconsdir='${datadir}/icons' includedir='${prefix}/include' infodir='${datarootdir}/info' installbuilddir='${datadir}/build' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/modules' localedir='${datarootdir}/locale' localstatedir='${prefix}' logfiledir='${localstatedir}/logs' logresolve_LTFLAGS='' mandir='${prefix}/man' manualdir='${datadir}/manual' oldincludedir='/usr/include' other_targets='' pdfdir='${docdir}' perlbin='' prefix='/opt/app/apache' progname='' program_transform_name='s,x,x,' proxycachedir='${localstatedir}/proxy' psdir='${docdir}' rel_bindir='bin' rel_cgidir='cgi-bin' rel_datadir='' rel_errordir='error' rel_exec_prefix='' rel_htdocsdir='htdocs' rel_iconsdir='icons' rel_includedir='include' rel_installbuilddir='build' rel_libdir='lib' rel_libexecdir='modules' rel_localstatedir='' rel_logfiledir='logs' rel_mandir='man' rel_manualdir='manual' rel_proxycachedir='proxy' rel_runtimedir='logs' rel_sbindir='bin' rel_sysconfdir='conf' rotatelogs_LTFLAGS='' runtimedir='${localstatedir}/logs' sbindir='${exec_prefix}/bin' shared_build='' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/conf' target='i386-pc-solaris2.11' target_alias='' target_cpu='i386' target_os='solaris2.11' target_vendor='pc' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" configure: exit 1 I also have tried CPP='cc -m64 -E'. Failed. Can anyone point me put what did I missing? Multilib for solaris gcc?
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 other hand, If you compile a program on Linux desktop ( i386 architecture ) to be run on Linux arm (ARM architecture). Does this process can be called as cross compilation ? Thank you.
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, malloc and jemalloc operating system When the platform on which the program is compiled is different than the one on which it is run, you're dealing with cross compilation. In your specific case the CPU is different.
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 that the compiler collection (iphone-gcc) is designed to work with an older version of the linker provided through the open-source Darwin CC Tools, not the newer LD64 I have installed provided as a stand-alone outside the CC tool collection. Is there any way to tell GCC to pass another architecture to the linker? Passing -Wl,-arch,armv7 or -Xlinker -arch -Xlinker armv7 to GCC gives the same error.
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 target 'scripts/kconfig/.tmp_gtkcheck', needed by `scripts/kconfig/gconf.o'. Stop. make: *** [gconfig] Error 2 Now I checked and found my ubuntu has newest versions of libgtk2.0-0, libgtk2.0-bin, libglib2.0-0, and libglib2.0-bin and are manually installed. Cannot find libglade-2.0 whatsoever. I don't know how to go about that to make gconfig work properly. >> sudo apt-get install libgtk2.0-dev libglib2.0-dev libglade2-dev Reading package lists... Done Building dependency tree Reading state information... Done Package libglib2.0-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libglib2.0-0 libglib2.0-bin Package libgtk2.0-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libgtk2.0-dev' has no installation candidate E: Package 'libglib2.0-dev' has no installation candidate E: Unable to locate package libglade2-dev
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 - Development files for the GLib library % cuonglm at ~ % apt-cache search libglade2-dev libglade2-dev - development files for libglade For your errors, I think you have some broken in apt sources.list. Try adding correct sources list for 12.04 and run: sudo apt-get update sudo apt-get install libgtk2.0-dev libglib2.0-dev libglade2-dev Or you can install from source, i.e this link is for libgtk2.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 how to easily edit a project's source code but by editing it manually in a text editor and typing the above lines every time to test it ... without debugging and all the features that are provided by an IDE. There are other projects (i.e. AntiMicro) that I figured out how to edit in a particular IDE such as QT Creator because there was a .PRO file in the project which I quickly found out what it was for. How do someone gets a source running in an IDE when there are no IDE-specific file included in it ?
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++ Integrated Development Environment based on the Eclipse platform. Features include: support for project creation and managed build for various toolchains, standard make build, source navigation, various source knowledge tools, such as type hierarchy, call graph, include browser, macro definition browser, code editor with syntax highlighting, folding and hyperlink navigation, source code refactoring and code generation, visual debugging tools, including memory, registers, and disassembly viewers. Other options QT Creator - Again if it's C++ development then you could try QT Creator. I have no practical experience with this one but it shouldn't be any harder than Eclipse and there is excellent documentation. Code Blocks - Code Blocks is another one. Spelled Code::Blocks. This one I have some experience with and it's OK, but doesn't seem as popular as others. We use it for an internal project that we support. It does the job. KDevelop - KDevelop is another one, never used it. If none of those suite your needs then I'd start going through this ancient question from SO, titled: C++ IDE for Linux?. Also check out this Q&A from programmers SE site, titled: Comparison of IDEs for C++ and C development on Linux: KDevelop, Eclipse, NetBeans, CodeBlocks and Anjuta [closed].
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: %files %defattr(-,root,root) %doc README COMMITERS GD-COPYING HISTORY.TXT %doc INSTALL MIGRATION_GUIDE.txt %doc symbols tests %doc fonts %{_bindir}/* %{_libdir}/libmapserver*.so %{_libexecdir}/mapserv but when I run my build I get the errors: File not found by glob: /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/usr/lib64/libmapserver*.so File not found: /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/usr/libexec/mapserv It seems like the files that are missing are insted located in /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/usr/lib/libmapserver-6.2.1.so /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/usr/lib/libmapserver.la /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/usr/lib/libmapserver.so /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/usr/lib/debug/usr/lib/libmapserver-6.2.1.so.debug /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/usr/lib/debug/usr/lib/libmapserver.so.debug /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/usr/bin/mapserv /home/kfadm/rpmbuild/BUILDROOT/mapserver-6.2.1-3.x86_64/var/www/cgi-bin/mapserv How do I fix the rpm spec to find the files at the correct path?
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 better answer. Tip: configuration of running kernel can be found in /proc/config.gz (Usually, this feature is enabled).
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 emailing him and bothering him with this question). Thanks!
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 last time the file was moved, so it will give an upper bound for the installation date.
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_buff’ has no member named ‘nh’ make[2]: *** [/home/alex/Downloads/cisco4.8/vpnclient/linuxcniapi.o] Error 1 make[1]: *** [_module_/home/alex/Downloads/cisco4.8/vpnclient] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-33-generic' make: *** [default] Error 2 Failed to make module "cisco_ipsec.ko". How can I find the problems in this installation? What actions should I take to correct the installation procedure?
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?