Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138477 - webalizer with geoip don't require db package, thus i've got error
Summary: webalizer with geoip don't require db package, thus i've got error
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-29 07:05 UTC by Mike Baikov
Modified: 2006-07-02 14:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Baikov 2006-06-29 07:05:59 UTC
bug in geoip USE flag.

proxy ~ # LINGUAS="ru" USE="-apache2 xtended search geoip" emerge -pv webalizer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] app-admin/webalizer-2.01.10-r12  USE="geoip nls search xtended -apache2 -vhosts" 0 kB

Total size of downloads: 0 kB
proxy ~ # LINGUAS="ru" USE="-apache2 xtended search" emerge -pv webalizer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-libs/db-4.2.52_p2-r1  USE="-bootstrap -doc -java -nocxx -tcltk" 3,980 kB
[ebuild  N    ] app-admin/webalizer-2.01.10-r12  USE="nls search xtended -apache2 -geoip -vhosts" 0 kB

Total size of downloads: 3,980 kB
proxy ~ #                          


in config.log:

int main() {
main()
; return 0; }
configure:1619: checking for main in -lz
configure:1634: gcc -o conftest -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer  -Ldb-4.2  conftest.c -lz  -ldb  1>&5
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
configure: failed program was:
#line 1627 "configure"
#include "confdefs.h"
Comment 1 Mike Baikov 2006-06-29 07:12:51 UTC
next.

after emerging db, i try to emerge with geoip option:

inking ./lang/webalizer_lang.russian to webalizer_lang.h
gcc -I/usr/include -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer -DETCDIR=\"/etc\"  -DHAVE_DB_185_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1  -DUSE_GEOIP -DUSE_DNS  -c webalizer.c
gcc -I/usr/include -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer -DETCDIR=\"/etc\"  -DHAVE_DB_185_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1  -DUSE_GEOIP -DUSE_DNS  -c hashtab.c
gcc -I/usr/include -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer -DETCDIR=\"/etc\"  -DHAVE_DB_185_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1  -DUSE_GEOIP -DUSE_DNS  -c linklist.c
gcc -I/usr/include -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer -DETCDIR=\"/etc\"  -DHAVE_DB_185_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1  -DUSE_GEOIP -DUSE_DNS  -c preserve.c
gcc -I/usr/include -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer -DETCDIR=\"/etc\"  -DHAVE_DB_185_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1  -DUSE_GEOIP -DUSE_DNS  -c dns_resolv.c
gcc -I/usr/include -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer -DETCDIR=\"/etc\"  -DHAVE_DB_185_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1  -DUSE_GEOIP -DUSE_DNS  -c parser.c
gcc -I/usr/include -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer -DETCDIR=\"/etc\"  -DHAVE_DB_185_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1  -DUSE_GEOIP -DUSE_DNS  -c output.c
gcc -I/usr/include -I/usr/include/db4.2/ -march=pentium4 -O2 -fomit-frame-pointer -DETCDIR=\"/etc\"  -DHAVE_DB_185_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1  -DUSE_GEOIP -DUSE_DNS  -I/usr/include -c graphs.c
gcc -L/usr/lib -Ldb-4.2  -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lGeoIP -lgd -lpng -lz -lm -lnsl -ldb
output.o: In function `month_links':
output.c:(.text+0x8cb): undefined reference to `msg_hlnk_srb'
output.c:(.text+0x8ee): undefined reference to `msg_hlnk_srs'
output.o: In function `all_searchboth_page':
output.c:(.text+0x1607): undefined reference to `msg_h_seabot'
output.c:(.text+0x1669): undefined reference to `msg_h_seabot'
output.o: In function `top_searchboth_table':
output.c:(.text+0x18c9): undefined reference to `msg_top_srb'
output.c:(.text+0x1975): undefined reference to `msg_h_seabot'
output.c:(.text+0x1b21): undefined reference to `msg_v_seabot'
output.o: In function `all_searchsite_page':
output.c:(.text+0x1be0): undefined reference to `msg_h_seasit'
output.c:(.text+0x1c42): undefined reference to `msg_h_seasit'
output.o: In function `top_searchsite_table':
output.c:(.text+0x1e26): undefined reference to `msg_top_srs'
output.c:(.text+0x1ed2): undefined reference to `msg_h_seasit'
output.c:(.text+0x20d5): undefined reference to `msg_v_seasit'
collect2: ld returned 1 exit status
make: *** [webalizer] Ошибка 1

!!! ERROR: app-admin/webalizer-2.01.10-r12 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  webalizer-2.01.10-r12.ebuild, line 97:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 2 Mike Baikov 2006-06-29 07:14:02 UTC
next. remove geoip.

* Please enable the geoip USE flag if you wish to use search

and

* vhosts USE flag not set - auto-installing using webapp-config
 * This is an installation
 * webalizer-2.01.10-r12 is not installed - using install mode
 * Running //usr/sbin/webapp-config -I -h localhost -u root -d /webalizer webalizer 2.01.10-r12
* Fatal error: Your configuration file sets the server type "Apache"
* Fatal error: but the corresponding package does not seem to be installed!
* Fatal error: Please "emerge >=net-www/apache-1.3" or correct your settings.
* Fatal error(s) - aborting
>>> Regenerating /etc/ld.so.cache...
>>> app-admin/webalizer-2.01.10-r12 merged.
>>> Recording app-admin/webalizer in "world" favorites file...

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.

but, i'm don't use apache2 flag!?
Comment 3 Mike Baikov 2006-06-29 07:16:21 UTC
apache question pass, my mistake (-apache2 is restrict for apache version 2). ok
Comment 4 Renat Lumpau (RETIRED) gentoo-dev 2006-06-29 12:25:56 UTC
please try webalizer-2.01.10-r13
Comment 5 Renat Lumpau (RETIRED) gentoo-dev 2006-07-02 14:14:32 UTC
please reopen if necessary