LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Webalizer with DNS lookups (https://www.linuxquestions.org/questions/linux-software-2/webalizer-with-dns-lookups-205965/)

jnichel 07-30-2004 10:26 PM

Quote:

Originally posted by Donboy
In post #3 jnichel seemed worried about causing additional load on his machine. I think it's safe to say that the load being put on a machine by webalizer isn't terribly much, and if you run it at 3am when things are quiet it's probably not going to cause your users much grief.
That's not it. I wanted Webalizer to do the DNS lookups...I didn't want my webserver (Apache) to do the lookups...that's where I was worried about the added load. Webalizer configured and compiled fine when I enabled DNS lookups, but when I try to run it it tells me that DNS is _not_ enabled.

dablan 07-30-2004 10:33 PM

I guess you want to use mysql so you can save the history of the logs and save some extra disk space emptying them, right???

If that's your idea, what language are you working on?

I can help if you need some...

jnichel 07-30-2004 10:43 PM

Quote:

Originally posted by dablan
I guess you want to use mysql so you can save the history of the logs and save some extra disk space emptying them, right???

If that's your idea, what language are you working on?

For the most part, MySQL is because it's what I know best out of the different DB's I work with, and I don't like talking to the Oracle admins. :D

I'm using php for the front end, but Perl for the daily dumping/truncating of the logs to the db, Again, sticking with what I know.

dablan 07-30-2004 10:49 PM

ok!

So you are going with the best!!! :D

If you need help, i am on

zygron 08-28-2004 09:29 PM

Webalizer fix
 
Hello,

I experienced the same problem, webalizer 2.0.10 didn't want to resolve dns saying "DNS Support is not enabled" although i had compiled with --enable-dns.
After reading this thread i had a glance at the sources, there seem to be something wrong with the configure file, although --enable-dns was specifed when configuring, USE_DNS is never defined so the sources are compiled without dns support, there's also an issue with the berkeley db headers included by default, if HAVE_DB_185H is defined (and it never is even if the header is present) it should use <db_185.h> otherwise it fallbacks to <db.h> which is apparently incompatible (some functions prototypes differs so you get compile errors). I was to lazy to check the whole configure file to see where the error was so i decided to force DNS Support & use of db_185 by modifying slightly the makefile:

Makefile - line 28, the original file looks like this

LIBS = -lgd -lpng -lz -lm -lnsl
DEFS = -DETCDIR=\"/etc\" -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHA VE_MATH_H=1

Modify the lines so they look like this:

LIBS = -lgd -lpng -lz -lm -lnsl -ldb
DEFS = -DETCDIR=\"/etc\" -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHA VE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H

(you just need to append -ldb to LIBS, and -DUSE_DNS to DEFS -DHAVE_DB_185_H to DEFS)

Once you modified the file just save, and do a:

make clean
make
make install

As long as you have the db_185.h header it should compile and link fine.

Hope that helps...

Regards

vboulytchev 04-12-2007 10:29 AM

solution
 
recompile your webalizer with --enable-dns :)

also, when you do ./configure --enable-dns --enable-debug...
make sure you have your DB installed

configure: warning: You must have a V1.85 compatable DB library!
configure: warning: DNS lookup code will be disabled...


./configure --enable-dns --enable-debug --with-db=/usr/include/ --with-dblib=/usr/lib/

lcoffin 01-23-2009 11:13 AM

Fixed for me....
 
This is a really old thread (:eek:!) but I ran into the same problem and was able to eventually get it fixed.

The problem was two-fold...

A) Didn't have the Berkeley DB libraries and headers installed

B) Had to do a 'make clean' before doing a new 'make'


== A ==

When you configure webalizer, even with the --enable-dns option, you need to be on the lookout for this warning:

configure: WARNING: db.h not found.. DNS/GeoDB code disabled!

configure will complete even with that warning message and tell you to run 'make'... but DNS support won't be included. You have to watch for that warning message. If you see it, it means Berkeley DB isn't installed.

== B ==

After installing Berkeley DB, I redid the ./configure and it showed that db.h was found, but after doing a make && make install, webalizer was still saying that DNS support wasn't present. This was because re-running ./configure didn't invalidate all the old '*.o' files in the webalizer src dir and dns support was still missing from them. I had to do an explicit 'make clean' before doing the 'make && make install'.


Hope this helps someone! :)

---Lawrence


All times are GMT -5. The time now is 12:51 PM.