LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Why is my Moblock getting errors when i "make" compile it (https://www.linuxquestions.org/questions/linux-software-2/why-is-my-moblock-getting-errors-when-i-make-compile-it-700348/)

Nibbl3r 01-27-2009 06:43 PM

Why is my Moblock getting errors when i "make" compile it
 
I downloaded Moblock from Berlios,
i inputed make... on some other sites it says i have to include some .h C library but i have no idea really what i gotta do. Tell me if you need further information and what i can do to fix this.

Thanks alot!

Running Fedora 10 with all updates
Tried to install Moblock according to that guide
http://forums.phoenixlabs.org/showthread.php?t=11395
Updating-Installing worked for the side programms which are needed but not for moblock.

_______________________________________________________


[root@localhost MoBlock-0.8]# make
gcc -Wall -O2 -march=i586 -mtune=i686 -fomit-frame-pointer -ffast-math -D_GNU_SOURCE -DNFQUEUE -L/usr/include/libipq -c -o MoBlock.o MoBlock.c
In file included from MoBlock.c:35:
/usr/include/linux/netfilter_ipv4.h:53: error: âINT_MINâ undeclared here (not in a function)
/usr/include/linux/netfilter_ipv4.h:64: error: âINT_MAXâ undeclared here (not in a function)
make: *** [MoBlock.o] Error 1

Drakeo 01-27-2009 07:06 PM

I read you other link and this was the pronlem
Quote:

cd . && /root/Desktop/pglinux-1.5beta/missing automake-1.4 --gnu Makefile
WARNING: `automake-1.4' is missing on your system. You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.in'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.
cd . \
as for fc you may have up dated but you never installed your development libraries to build it.

Nibbl3r 01-27-2009 07:34 PM

Thanks alot for the answer i will test it...
Stupid does i thougt this must be included already while i had to load wget for example seperately ! :-)
Thanks alot so far! i Will post if it works!


----> Still doesnt work!!
After i did yum install Perl* automake
It is still giving me the same error out.

Nibbl3r 01-28-2009 05:27 PM

Ok i found a solution,

Edit the MoBlock.c file with Vi for example

and input

#include <limits.h> into the include list on the top but make sure it is inserted before the <linux/netfilter_ipv4.h>


Hope this helps everybody who had the same problem/or will have the same problem.


All times are GMT -5. The time now is 08:22 PM.