Bug 39199 - libapr-1.so: undefined reference to `find_if_index'
Summary: libapr-1.so: undefined reference to `find_if_index'
Status: RESOLVED FIXED
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: HEAD
Hardware: PC Linux
: P5 trivial (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
: 41147 41273 42477 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-04 14:00 UTC by Georg Soffel
Modified: 2007-06-04 11:32 UTC (History)
3 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Soffel 2006-04-04 14:00:06 UTC
I installed apr as follows:
./configure --disable-ipv6
make
make install

Now linking results in the following error:
libapr-1.so: undefined reference to `find_if_index'

Reason:
In the file network_io/unix/multicast.c the function `find_if_index' is used
even though its implementation is suppresed by '#if APR_HAVE_IPV6'.
Comment 1 Paul Querna 2006-04-04 16:15:19 UTC
'We' the developers have a very bad habbit of not checking releases where people
disable features.

At a first glance, this can be fixed by removing the #if APR_HAVE_IPV6 wrappers
around find_if_index.
Comment 2 Garrett Rooney 2006-04-04 19:47:07 UTC
Actually, it's not quite that simple, if you disable ipv6 but HAVE_GETIFADDRS is
still defined you get a build error trying to use the .sin6 member of iface->sa.
 You can work around that by making that portion of find_if_index conditional on
both HAVE_GETIFADDRS and APR_HAVE_IPV6, but then find_if_index is just a pass
through, and I'm not clear if that actually works or not...
Comment 3 William A. Rowe Jr. 2006-09-19 19:54:32 UTC
Mass reassign the 44 open apr-bugs to apr bug list
Comment 4 Joe Orton 2006-12-11 02:54:32 UTC
*** Bug 41147 has been marked as a duplicate of this bug. ***
Comment 5 Joe Orton 2007-01-07 10:44:09 UTC
*** Bug 41273 has been marked as a duplicate of this bug. ***
Comment 6 Joe Orton 2007-01-07 10:44:29 UTC
Fixed on the trunk: http://svn.apache.org/viewvc?view=rev&rev=493802
Comment 7 Davi Arnaut 2007-06-04 11:32:41 UTC
*** Bug 42477 has been marked as a duplicate of this bug. ***