LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   So many errors when I typed the "make" and "make install" command (https://www.linuxquestions.org/questions/linux-software-2/so-many-errors-when-i-typed-the-make-and-make-install-command-253440/)

Niceman2005 11-10-2004 08:32 PM

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



anyone knows what is wrong ?
Thanks in advance!

masand 11-10-2004 08:42 PM

hi there

make install won't work untill "make " goes fine

also did u run ./configure

have a look at the INTSALL or readme file in the source for more detalls

regards

Niceman2005 11-11-2004 09:18 PM

I did ./configure, it was the make part that has errors
 
Thanks!

But then I did ./configure which was ok.

Only when I got to make that it showed errors.

foo_bar_foo 11-11-2004 10:28 PM

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

borrrden 11-12-2004 07:15 PM

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.

sorry to be the bearer of bad news

Niceman2005 11-12-2004 07:21 PM

Hi masand, foo_bar_foo and Borrden,

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.

Once again, thanks!

PersianPatient 11-20-2004 05:55 AM

Hi there

I have this problem too , I am new to linux networking .

Please tell me how can I finally fix this problem .

Best Regards,
The Persian Patient .

PersianPatient 11-20-2004 11:30 PM

Done .

but not working !

borrrden 11-21-2004 10:26 AM

Huh? Can you post some output for us to work with?

Niceman2005 11-21-2004 06:16 PM

to PersianPatient
 
Hi PersianPatient,

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.

PersianPatient 11-22-2004 05:53 AM

Thank You .

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 .

it allows all domain to open .

please help me to block my unwanted domain .

Best Regards,
The Persian Patient .

Niceman2005 11-22-2004 05:47 PM

PersianPatient
 
Hello PersianPatient,

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..

give me a few days.

PersianPatient 11-23-2004 01:41 AM

Dear Niceman2005

Thank you for your attention . I am waiting for your answer .

Thank you my friend .
The Persian Patient .

Niceman2005 11-23-2004 06:29 PM

hello Persian patient
 
Hello Persian patient,

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.

PersianPatient 11-23-2004 11:47 PM

Hello dear Niceman2005 ;

You may need to reconfigure your squidguard.conf file . if you have this problem again , take a look at your squidguard log file .

if you have permission denied error message you need to assign permission to user that you set in your configuration file .

please copy and paste your error messages here .

GoodLuck,
The Persian Patient .


All times are GMT -5. The time now is 11:49 PM.