So many errors when I typed the "make" and "make install" command
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So many errors when I typed the "make" and "make install" command
Dear people,
I tried to install squidguard. However after using the comman "make" it generated many errors, which is shown below.
[root@matrix squidGuard-1.2.0]# make
making all in squidGuard-1.2.0
make[1]: Entering directory `/root/squidGuard-1.2.0/src'
making all in src
gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB/include -c main.c
gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB/include -c sgLog.c
gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB/include -c sgDb.c
sgDb.c: In function `sgDbInit':
sgDb.c:101: warning: passing arg 2 of pointer to function from incompatible pointer type
sgDb.c:101: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
sgDb.c:101: error: too few arguments to function
sgDb.c:107: warning: passing arg 2 of pointer to function from incompatible pointer type
sgDb.c:107: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
sgDb.c:107: error: too few arguments to function
make[1]: *** [sgDb.o] Error 1
make[1]: Leaving directory `/root/squidGuard-1.2.0/src'
make: *** [all] Error 1
[root@matrix squidGuard-1.2.0]# make install
making install.bin in squidGuard-1.2.0
cd src && make install.bin
make[1]: Entering directory `/root/squidGuard-1.2.0/src'
gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -g -O2 -I/usr/local/BerkeleyDB/include -c sgDb.c
sgDb.c: In function `sgDbInit':
sgDb.c:101: warning: passing arg 2 of pointer to function from incompatible pointer type
sgDb.c:101: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
sgDb.c:101: error: too few arguments to function
sgDb.c:107: warning: passing arg 2 of pointer to function from incompatible pointer type
sgDb.c:107: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
sgDb.c:107: error: too few arguments to function
make[1]: *** [sgDb.o] Error 1
make[1]: Leaving directory `/root/squidGuard-1.2.0/src'
make: *** [install.bin] Error 2
many many programms get hung up and need certain versions of BerkleyDB or the other
there are ways to keep a little collection of them around so everybody is happy
squidGuard page says it needs db-2.x
i guess check first to see if your distribution has a version of db-2 to install in some compatability function without disturbing the one you are running
if you try to build it yourself by all means use
cd build_unix &&
../dist/configure --prefix=/opt/db-2.x --enable-compat185
so as not to overwrite your current version then i think for the squidGuard config it would be something like
--with-db-lib=/opt/db-2.x/lib --with-db-inc=/opt/db-2.x/include
to point it in the right direction
It's nothing you did, it's code that your system can't deal with on line 107 of /root/squidGuard-1.2.0/src/sgDb.c
specifically, the function sgDbInit(). The compiler wants more arguments in the function for some reason or another. Unless you are the author, I doubt you will fix it without a headache of effort in trying to find out what the author wanted that specific function to do. Especially if it is not commented code, it will be nearly impossible.
Thank you very much for the help.
I tried other tarball source code , the make command was ok .
Its more relieved to hear that its the author's fault then mine. Because I thought I kept making mistakes.
The other guy in the Forum said it was because of the source code error. Its the author's error.
I didn't fix it at the end but I tried download the sourcecode from other source and it worked well.
try to dl the files from other source and try again.
I have installed the squidGuard on my linux server and configured it to block some domain , for example : sex.com and redirect to another URL but it dose not work .
Regarding squidguard, I am also working on it now. i have just finished installing it and whenI started it it says ready to serve. But I have try to test it on any server machine. I am waiting for my administrator to put a dial up line for me to test it. If successful I will show you what I did, at the moment not sure if its successful, I don't want to give you wrong advice yet..
I got stucked when I tried to enable squidguard as redirect_program in the squid configuration file. for some reason it everything don't work after I changed the redirect_program to my squidguard path.
all the squid commands such as squid -k reconfigure, service squid restart gave me msgs like "abort","fatal error permission denied" etc....
I am not sure why...hope I can figure that out.
sorry about that, didn't help youmuch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.