linking shared library against static is not portable - linux

I'm trying to build and compile ntop.. I'm experiencing a problem here..
sudo ./configure is working fine..
when i go for sudo make, i get the below error..
*** Warning: Linking the shared library libntop.la against the
*** static library ./nDPI/src/lib/.libs/libndpi.a is not portable!
gcc: error: ./nDPI/src/lib/.libs/libndpi.a: No such file or directory
make[2]: *** [libntop.la] Error 1
make[2]: Leaving directory `/home/ubuntu/ntop-5.0.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/ntop-5.0.1'
make: *** [all] Error 2
I have googled many forum's regarding this.. But i did not get any answers..
Any help is greatly appreciated.. Thanks..

In Debian and Ubuntu, install MySQL solved this error!
aptitude install mysql-server

Related

linux/videodev.h: No such file or directory Ubuntu 14.04

Hi I run into a problem when setting up my web camera for use in Chrome, which needed FlashCam.
When following the installation guide at: http://www.swift-tools.net/Flashcam/
At the step when doing the "make" build I get:
adderollen#andreas-RC530:~/Downloads/flashcam-1.4.5$ make
(cd vloopback; make);
make[1]: Entering directory `/home/adderollen/Downloads/flashcam-1.4.5/vloopback'
make -C /lib/modules/3.13.0-37-generic/build SUBDIRS=/home/adderollen/Downloads/flashcam- 1.4.5/vloopback modules
make[2]: Entering directory `/usr/src/linux-headers-3.13.0-37-generic'
CC [M] /home/adderollen/Downloads/flashcam-1.4.5/vloopback/vloopback.o
/home/adderollen/Downloads/flashcam-1.4.5/vloopback/vloopback.c:166:28: fatal error:
linux/videodev.h: No such file or directory
#include <linux/videodev.h>
^
compilation terminated.
make[3]: *** [/home/adderollen/Downloads/flashcam-1.4.5/vloopback/vloopback.o] Error 1
make[2]: *** [_module_/home/adderollen/Downloads/flashcam-1.4.5/vloopback] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.13.0-37-generic'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/adderollen/Downloads/flashcam-1.4.5/vloopback'
make: *** [vloopback/vloopback.ko] Error 2
So I googled some and found this: linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04
I followed the answer by bukzor, but I still got the same problem. Any one got a solution?
I run Ubuntu 14.04.
Don't you still have such a file on disk? If so, then may be the package which contains such a file was renamed, or may be file was renamed/removed.
find / -name 'videodev.h'
locate videodev.h
using the above commands to check whether you have the file.

error encountered installing mono and monodevelop on centos 6

I have been following sintructions for installing mono and monodevelop
on centos 6 found in this web page :
Install Mono and Monodevelop on CentOS 5.x/6.x
I have stalled on one of the steps explained below
yum install pango-devel atk-devel libgnome-devel libgnomecanvas-devel libgnomeui-devel git svn libtool
cd /usr/src
git clone git://github.com/mono/gnome-sharp
cd gnome-sharp
./bootstrap-2.24 --prefix=/usr
make && make install
When I run the make command in gnome-sharp I get this error :-
make all-recursive
make[1]: Entering directory `/usr/src/gnome-sharp'
Making all in sources
make[2]: Entering directory `/usr/src/gnome-sharp/sources'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/gnome-sharp/sources'
Making all in art
make[2]: Entering directory `/usr/src/gnome-sharp/art'
/usr/bin/mcs -debug -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24 -nowarn:0169,0612,0618 -unsafe -out:art-sharp.dll -target:library /usr/lib -r:Mono.Cairo generated/*.cs AssemblyInfo.cs
error CS2001: Source file `/usr/lib' could not be found
Compilation failed: 1 error(s), 0 warnings
make[2]: *** [art-sharp.dll] Error 1
make[2]: Leaving directory `/usr/src/gnome-sharp/art'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnome-sharp'
make: *** [all] Error 2
It looks as if the Makefile process is broken at least to me. Any help gratefully received.
-roddy
You don't need to install Mono from source anymore, there are now official packages: http://www.mono-project.com/docs/getting-started/install/linux/#centos-fedora-and-derivatives

MPFR installation can't find gmp-impl.h

I'm trying to install MPFR on cygwin.
I successfully ran "./configure --with-gmp-build=../gmp-5.1.3" and it doesn't gave me any error.
But when I ran "make install", it fails and gives following error.
In file included from exceptions.c:23:0:
mpfr-impl.h:71:24: fatal error: gmp-impl.h: No such file or directory
compilation terminated.
Makefile:674: recipe for target `exceptions.lo' failed
make[2]: *** [exceptions.lo] Error 1
make[2]: Leaving directory `/cygdrive/d/chamila/mpfr-3.1.2/src'
Makefile:798: recipe for target `install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory `/cygdrive/d/chamila/mpfr-3.1.2/src'
Makefile:385: recipe for target `install-recursive' failed
make: *** [install-recursive] Error 1
I added gmp location to path as well. What is wrong here? How can I solve this?
Don't use the --with-gmp-build option (unless you know what you're doing) and don't use relative paths with configure. If you have installed GMP in directory DIR, just use --with-gmp=DIR.

Debian install TP-LINK TL-WN723N Wireless usb

i'm downloading rtl8188eu-master file from github for install this driver on debian. after extract it and run make command in get this error.
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/3.11-2-486/build M=/home/tux-world/Desktop/Home/rtl8188eu-master modules
make[1]: Entering directory `/usr/src/linux-headers-3.11-2-486'
CC [M] /home/tux-world/Desktop/Home/rtl8188eu-master/core/rtw_cmd.o
In file included from /home/tux-world/Desktop/Home/rtl8188eu-master/core/rtw_cmd.c:23:0:
/home/tux-world/Desktop/Home/rtl8188eu-master/include/osdep_service.h: In function ‘thread_enter’:
/home/tux-world/Desktop/Home/rtl8188eu-master/include/osdep_service.h:1406:2: error: implicit declaration of function ‘daemonize’ [-Werror=implicit-function-declaration]
daemonize("%s", name);
^
cc1: some warnings being treated as errors
make[4]: *** [/home/tux-world/Desktop/Home/rtl8188eu-master/core/rtw_cmd.o] Error 1
make[3]: *** [_module_/home/tux-world/Desktop/Home/rtl8188eu-master] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.11-2-486'
make: *** [modules] Error 2
linux-headers-3.11-2-486 and build-essential packages are installed and i do not have problem for those.
Although this has little to do with programming, I will answer this in case somebody comes here with a similar issue.
I had no trouble compiling the driver with these commands (make sure you have the headers installed):
wget https://codeload.github.com/lwfinger/rtl8188eu/zip/master
unzip master
cd rtl8188eu-master
sudo make
sudo make install

gcc make install error

I try to compile gcc with make install and it gives me this:
make[1]: Entering directory `/media/BOSS/sources/gcc-build'
/bin/bash ../gcc-4.8.1/mkinstalldirs /tools /tools
/bin/bash: line 3: cd: ./fixincludes: No such file or directory
make[1]: *** [install-fixincludes] Error 1
make[1]: Leaving directory `/media/BOSS/sources/gcc-build'
make: *** [install] Error 2
I am currently compiling it for lfs also I am in a seprate directory on a 32 bit computer
It seems the issue is caused by the target install. So my advice is to check the line in MakeFile which relates to [install].
Perhaps you may want to share more details for better solutions.

Resources