[MacPorts] #26103: webalizer 2.21-02 Configure error - --enable-dns ignored, can't find dblib

MacPorts noreply at macports.org
Mon Aug 16 08:44:46 PDT 2010


#26103: webalizer 2.21-02 Configure error - --enable-dns ignored, can't find dblib
-------------------------------------------------+--------------------------
 Reporter:  eric.featherstone@…                  |       Owner:  macports-tickets@…                   
     Type:  defect                               |      Status:  new                                  
 Priority:  Normal                               |   Milestone:                                       
Component:  ports                                |     Version:  1.9.1                                
 Keywords:  webalizer dns GeoDB libdb configure  |        Port:  webalizer                            
-------------------------------------------------+--------------------------
 I /think/ --enable-dns is the default option, however whether it is
 present or not it appears to be ignored by configure. Specifically the
 configure stage output contains:


 {{{
 configure: WARNING: libdb not found.. DNS/GeoDB code disabled!
 }}}


 Note that db47 is already installed by macports because it is listed as a
 dependency. I believe that the problem is because the db47 headers and
 libs are installed into ${prefix}/include/db47 & ${prefix}/lib/db47 not
 ${prefix}/include & ${prefix}/lib

 I think I have a solution, though it may be hamfisted. I edited the port
 file configure.args section:


 {{{
 configure.args          --mandir=${prefix}/share/man \
                         --with-etcdir=${prefix}/etc \
                         --with-gdlib=${prefix}/lib \
                         --with-gd=${prefix}/include \
                         --with-z-inc=${prefix}/include \
                         --with-zlib=${prefix}/lib \
                         --with-db=${prefix}/include/db47 \
                         --with-dblib=${prefix}/lib/db47 \
                         --with-png-inc=${prefix}/include \
                         --with-png=${prefix}/lib
 }}}


 Or if you prefer a diff; the output from rcsdiff (can this be directly
 used as a patch file?):


 {{{
 RCS file:
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/webalizer/RCS/Portfile,v
 retrieving revision 1.1
 diff -r1.1
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/webalizer/Portfile
 41a42,43
 >                         --with-db=${prefix}/include/db47 \
 >                         --with-dblib=${prefix}/lib/db47 \
 }}}



 The relevant output from sudo port configure webalizer is now:


 {{{
 checking db.h usability... yes
 checking db.h presence... yes
 checking for db.h... yes
 }}}


 ...and most importantly of all I /don't/ get the following complaints
 anymore:

 {{{
 Warning: Invalid keyword 'DNSCache' (webalizer.conf)
 Warning: Invalid keyword 'DNSChildren' (webalizer.conf)
 }}}

 This appears to work for me, I don't know if this is general solution. I'm
 not even 100% sure if the original problem is with macports or the
 original webalizer.

 Hope I've filled out this ticket correctly!

 Cheers,
 Eric.

-- 
Ticket URL: <http://trac.macports.org/ticket/26103>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list