Bug 1167291 - unbound update breaks libreswan: error: /lib64/libunbound.so.2: undefined symbol: main"
Summary: unbound update breaks libreswan: error: /lib64/libunbound.so.2: undefined sym...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: unbound
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-24 12:00 UTC by Paul Wouters
Modified: 2014-12-20 08:36 UTC (History)
5 users (show)

Fixed In Version: unbound-1.5.1-2.fc21
Clone Of:
Environment:
Last Closed: 2014-12-20 08:36:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paul Wouters 2014-11-24 12:00:06 UTC
Description of problem:

Apparently unbound-1.5.0 is not backwards compatible with unbound 1.4.x
Users of libreswan, which was not recompiled against a newer unbound now get the error:

error: /lib64/libunbound.so.2: undefined symbol: main"

Comment 1 Pavel Šimerda (pavlix) 2014-11-24 12:15:12 UTC
I thought I was the only one to use libunbound from a library in a way that it can't find the main symbol. I've been using the following trivial patch for my testing, will talk to upstream about the details.

diff --git a/configure.ac b/configure.ac
index 8746a6c..13085ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1049,7 +1049,6 @@ EOF
                        fi
                        if test "$myok" = "yes"; then
                                AC_MSG_RESULT(yes)
-                               AC_DEFINE(CAN_REFERENCE_MAIN, [1], [define if a library can reference the 'main' symbol])
                        else
                                AC_MSG_RESULT(no)
                        fi

Cheers,

Pavel

Comment 2 Paul Wouters 2014-11-27 18:26:42 UTC
unbound-1.5.1rc1 fixes this problem, so when 1.5.1 is released in a few days we should push that out without any patches. (It also addresses the arc4random crashes_

Comment 3 Fedora Update System 2014-11-28 18:09:53 UTC
unbound-1.5.1-0.1.rc1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/unbound-1.5.1-0.1.rc1.fc21

Comment 4 Fedora Update System 2014-11-29 20:59:35 UTC
Package unbound-1.5.1-0.1.rc1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing unbound-1.5.1-0.1.rc1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15937/unbound-1.5.1-0.1.rc1.fc21
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-12-10 16:46:26 UTC
unbound-1.5.1-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/unbound-1.5.1-2.fc21

Comment 6 Fedora Update System 2014-12-20 08:36:46 UTC
unbound-1.5.1-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.