BIND 10 #313: [MacOS] python loadable modules cannot find C++ dynlibs in source tree

BIND 10 Development do-not-reply at isc.org
Fri Aug 20 21:23:58 UTC 2010


#313: [MacOS] python loadable modules cannot find C++ dynlibs in source tree
-------------------------------+--------------------------------------------
      Reporter:  jinmei        |        Owner:  UnAssigned          
          Type:  defect        |       Status:  reviewing           
      Priority:  major         |    Milestone:  y2 6 month milestone
     Component:  build system  |   Resolution:                      
      Keywords:                |    Sensitive:  0                   
Estimatedhours:  0.0           |        Hours:  0                   
      Billable:  1             |   Totalhours:  0.25                
      Internal:  0             |  
-------------------------------+--------------------------------------------

Comment(by jinmei):

 Replying to [comment:3 jreed]:
 > Not sure I understand why B10_LIBRARY_PATH is set for some of the python
 unit tests. I don't see what uses it.
 >
 It's a makefile variable, and make substitutes it.  For example, xfrin
 tests will go as follows:
 {{{
 % make check
 make  check-local
 for pytest in xfrin_test.py ; do \
         echo Running test: $pytest ; \
         env
 PYTHONPATH=/Users/jinmei/src/isc/bind10/branches/trac313/src/lib/dns/python/.libs:/Users/jinmei/src/isc/bind10/branches/trac313/src/bin/xfrin:/Users/jinmei/src/isc/bind10/branches/trac313/src/lib/python:/Users/jinmei/src/isc/bind10/branches/trac313/src/lib/python
 \
 DYLD_LIBRARY_PATH=/Users/jinmei/src/isc/bind10/branches/trac313/src/lib/dns/.libs:/Users/jinmei/src/isc/bind10/branches/trac313/src/lib/exceptions/.libs:/Users/jinmei/src/isc/bind10/branches/trac313/src/lib/xfr/.libs:$DYLD_LIBRARY_PATH
 \
         /opt/local/bin/python3.1
 /Users/jinmei/src/isc/bind10/branches/trac313/src/bin/xfrin/tests/$pytest
 ; \
         done
 Running test: xfrin_test.py
 ...
 }}}

 that is, make replaces the placeholder B10_LIBRARY_PATH with
 "DYLD_LIBRARY_PATH=...".  No other programs don't have to care about it.

 I don't know if I need to tweak the branch due to this, but rename it to
 LIBRARY_PATH_PLACEHOLDER in case it's less confusing (r2779).  Does this
 explnation and/or r2779 address your concern?

-- 
Ticket URL: <http://bind10.isc.org/ticket/313#comment:4>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list