Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
11-10-2004, 08:32 PM
|
#1
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Rep:
|
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!
|
|
|
11-10-2004, 08:42 PM
|
#2
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
11-11-2004, 09:18 PM
|
#3
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
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.
|
|
|
11-11-2004, 10:28 PM
|
#4
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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
|
|
|
11-12-2004, 07:15 PM
|
#5
|
Member
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98
Rep:
|
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
|
|
|
11-12-2004, 07:21 PM
|
#6
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
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!
|
|
|
11-20-2004, 05:55 AM
|
#7
|
LQ Newbie
Registered: Nov 2004
Posts: 9
Rep:
|
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 .
|
|
|
11-20-2004, 11:30 PM
|
#8
|
LQ Newbie
Registered: Nov 2004
Posts: 9
Rep:
|
Done .
but not working !
|
|
|
11-21-2004, 10:26 AM
|
#9
|
Member
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98
Rep:
|
Huh? Can you post some output for us to work with?
|
|
|
11-21-2004, 06:16 PM
|
#10
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
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.
|
|
|
11-22-2004, 05:53 AM
|
#11
|
LQ Newbie
Registered: Nov 2004
Posts: 9
Rep:
|
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 .
|
|
|
11-22-2004, 05:47 PM
|
#12
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
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.
|
|
|
11-23-2004, 01:41 AM
|
#13
|
LQ Newbie
Registered: Nov 2004
Posts: 9
Rep:
|
Dear Niceman2005
Thank you for your attention . I am waiting for your answer .
Thank you my friend .
The Persian Patient .
|
|
|
11-23-2004, 06:29 PM
|
#14
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
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.
|
|
|
11-23-2004, 11:47 PM
|
#15
|
LQ Newbie
Registered: Nov 2004
Posts: 9
Rep:
|
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 12:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|