Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123320 - apache-2.2.0 does not compile with dev-libs/apr with USE=-ipv6
Summary: apache-2.2.0 does not compile with dev-libs/apr with USE=-ipv6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL: http://issues.apache.org/bugzilla/sho...
Whiteboard:
Keywords:
: 123591 123665 127035 128513 131969 (view as bug list)
Depends on:
Blocks: 114232
  Show dependency tree
 
Reported: 2006-02-18 15:18 UTC by Julien Gage
Modified: 2006-06-06 17:20 UTC (History)
8 users (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 Julien Gage 2006-02-18 15:18:13 UTC
I have verified that it does compile when I compile dev-lis/apr with USE=ipv6. Otherwise, it fails with the following error:

/usr/share/apr-1/build-1/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread  -O2 -march=pentium2 -fno-ident -fomit-frame-pointer -pipe   -L/usr/lib   -o htdigest  htdigest.lo   -lm /var/tmp/portage/apache-2.2.0/work/httpd-2.2.0/srclib/pcre/libpcre.la /usr/lib/libaprutil-1.la -lgdbm -ldb-4.2 -lsqlite3 -lsqlite -lexpat /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
/usr/lib/libapr-1.so: undefined reference to `sock_is_ipv6'
/usr/lib/libapr-1.so: undefined reference to `find_if_index'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/libapr-1.so: undefined reference to `sock_is_ipv6'
/usr/lib/libapr-1.so: undefined reference to `find_if_index'
collect2: ld returned 1 exit status
make[2]: *** [htdigest] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-2.2.0/work/httpd-2.2.0/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.2.0/work/httpd-2.2.0/support'
make: *** [all-recursive] Error 1
!!! ERROR: net-www/apache-2.2.0 failed.
Call stack:
ebuild.sh, line 1894:   Called dyn_compile
ebuild.sh, line 941:   Called src_compile

Here's my emerge info:

Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.13 i686)
=================================================================
System uname: 2.6.13 i686 Pentium II (Deschutes)
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium2 -fno-ident -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -fno-ident -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_GB.UTF-8"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 bash-completion bdb berkdb bzip2 cli cups curl curlwrappers dba erandom extraengine fastcgi foomaticdb ftp gd gdbm glibc-omitfp inifile innodb jpeg mpm-prefork mysql mysqli nls nomalloccheck nptl nptlonly pam pcre perl php ppds python readline samba session sftplogging simplexml sockets sqlite sqlite3 ssl symlink tiff tokenizer unicode urandom usb userlocales utf8 xml xml2 xsl zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-21 02:07:16 UTC
*** Bug 123591 has been marked as a duplicate of this bug. ***
Comment 2 Piter Elagin 2006-02-21 02:20:04 UTC
compile with USE='-ipv6' has call same error =(
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-02-22 00:18:54 UTC
*** Bug 123665 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-02-22 01:42:20 UTC
Patch in duplicate Bug 123665
Comment 5 Jesús García Crespo (aka Sevein) 2006-02-26 11:05:26 UTC
The same here: I had to compile apr with IPV6 support to be able to compile apache 2.2, :).
Comment 6 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-02-28 09:03:30 UTC
This is fixed upstream, but not released yet. Adding the upstream bug report to the URL so I can find it again.
Comment 7 younker 2006-03-06 19:52:37 UTC
Maybe ipv6 should be default value for apr-1.2.x

I can't merge apache 2.2.0 with the apr merged use -ipv6 
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-03-20 23:10:40 UTC
*** Bug 127035 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-04-02 06:22:31 UTC
*** Bug 128513 has been marked as a duplicate of this bug. ***
Comment 10 Conrad Kostecki gentoo-dev 2006-04-09 03:00:13 UTC
http://bugs.gentoo.org/show_bug.cgi?id=129323

New Version, IPv6 Bug is gone ...
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-05-01 23:07:14 UTC
*** Bug 131969 has been marked as a duplicate of this bug. ***
Comment 12 Conrad Kostecki gentoo-dev 2006-05-02 02:04:58 UTC
Hi There!

Same Error with APR-1.2.7 ...
Comment 13 Conrad Kostecki gentoo-dev 2006-05-02 02:09:08 UTC
Here is the Error of Apache 2.2.0-r2 Compile:

/usr/share/apr-1/build-1/libtool --silent --mode=link i686-pc-linux-gnu-gcc
-pthread  -fomit-frame-pointer -march=pentium-m -mmmx -msse -msse2 -Os -pipe  
-L/usr/lib   -o htdigest  htdigest.lo   -lm
/var/tmp/portage/apache-2.2.0-r2/work/httpd-2.2.0/srclib/pcre/libpcre.la
/usr/lib/libaprutil-1.la -lexpat /usr/lib/libapr-1.la -luuid -lrt -lcrypt
-lpthread -ldl
/usr/lib/libapr-1.so: undefined reference to `find_if_index'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
/usr/lib/libapr-1.so: undefined reference to `find_if_index'
collect2: ld returned 1 exit status
make[2]: *** [htdigest] Fehler 1
make[2]: Leaving directory
`/var/tmp/portage/apache-2.2.0-r2/work/httpd-2.2.0/support'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory
`/var/tmp/portage/apache-2.2.0-r2/work/httpd-2.2.0/support'
make: *** [all-recursive] Fehler 1

!!! ERROR: net-www/apache-2.2.0-r2 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  apache-2.2.0-r2.ebuild, line 195:   Called die

!!! problem compiling apache2
!!! If you need support, post the topmost build error, and the call stack if
Comment 14 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-06-06 17:20:03 UTC
Fixed in CVS (ipv6 USE-flag is now ignored until upstream fixes the issue, enabling ipv6 for this package works just fine for ipv4 networks)