BIND 10 #983: Python wrappers for ACLs
BIND 10 Development
do-not-reply at isc.org
Mon Jul 11 18:08:32 UTC 2011
#983: Python wrappers for ACLs
-------------------------------------+-------------------------------------
Reporter: | Owner: jinmei
vorner | Status: reviewing
Type: task | Milestone:
Priority: major | Sprint-20110712
Component: | Resolution:
Unclassified | Sensitive: 0
Keywords: | Sub-Project: DNS
Defect Severity: N/A | Estimated Difficulty: 5.0
Feature Depending on Ticket: ACL | Total Hours: 0
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by jinmei):
Replying to [comment:10 vorner]:
> > The latter one is okay (it was an error of mine). As for the former,
> > do you mean this one?
> > {{{
> > +dns_la_LIBADD += acl.la
> > }}}
>
> Yes, this solves my problem. If it isn't there, it fails with this
(during tests):
>
> {{{
> Running test: dns_test.py
> Traceback (most recent call last):
> File
"/home/vorner/work/bind10/src/lib/python/isc/acl/tests/dns_test.py", line
19, in <module>
> from isc.acl.dns import *
> File "/home/vorner/work/bind10/src/lib/python/isc/acl/dns.py", line
52, in <module>
> from dns import *
> ImportError:
/home/vorner/work/bind10/src/lib/python/isc/acl/.libs/dns.so: undefined
symbol: _ZN3isc3acl6python14po_LoaderErrorE
> make[7]: *** [check-local] Error 1
> }}}
>
> I don't know if having the library loaded suffices here. I think my
linker looks only into libraries that are noted as dependencies. Don't you
load the library already before? I think the test imports the acl.acl
module first. What do you suggest I try?
Hmm, this is strange. dns_test.py explicitly import isc.acl.acl
before line 19 that triggered the exception above:
{{{
from isc.acl.acl import LoaderError, Error, ACCEPT, REJECT, DROP
from isc.acl.dns import *
}}}
which should involve loading .libs/acl.so, which defines
isc::acl::python::po_LoaderError.
Right now I have no idea why this happened or how we can work around
it (without breaking the MacOS build). I'll try to reproduce it on
bind10.isc.org.
--
Ticket URL: <http://bind10.isc.org/ticket/983#comment:11>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list