krb5 build problem

6 views
Skip to first unread message

Jeremiah

unread,
Jul 24, 2008, 7:30:36 PM7/24/08
to python-ad, ja...@convolution.net
Howdy,

I am unable to run the first tutorial for the python-ad package.

I downloaded and installed all dependencies. currently running mac os
x 10.5, python 2.5

ran python setup.py build, below is the extension output.

building 'ad.protocol.krb5' extension
creating build/temp.macosx-10.5-i386-2.5
creating build/temp.macosx-10.5-i386-2.5/lib
creating build/temp.macosx-10.5-i386-2.5/lib/ad
creating build/temp.macosx-10.5-i386-2.5/lib/ad/protocol
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -
DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -
I/System/Library/Frameworks/Python.framework/Versions/2.5/include/
python2.5 -c lib/ad/protocol/krb5.c -o build/temp.macosx-10.5-i386-2.5/
lib/ad/protocol/krb5.o
gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
build/temp.macosx-10.5-i386-2.5/lib/ad/protocol/krb5.o -lkrb5 -o build/
lib.macosx-10.5-i386-2.5/ad/protocol/krb5.so

Then ran python setup.py install, seemed to work with any errors being
reported.
When I run the first tutorial I get the following when it tries to
load the modules.

ImportError: dlopen(/Library/Python/2.5/site-packages/ad/protocol/
krb5.so, 2): Symbol not found: _initialize_krb5_error_table
Referenced from: /Library/Python/2.5/site-packages/ad/protocol/
krb5.so
Expected in: dynamic lookup

I can see it has something to do with dynamic lookup but my experience
with gcc is quite limited.
Any insights or suggestions on getting this to work would be much
appreciated.

Thanks.

Jeremiah

unread,
Jul 25, 2008, 10:19:15 AM7/25/08
to python-ad

Further research has lead me to believe this may be a common mac
problem though it is still clear as mud to me.

"thus no more error -undefined dynamic_lookup can't be used with
MACOSX_DEPLOYMENT_TARGET environment" found in some build problem
here:
http://mail.python.org/pipermail/pythonmac-sig/2005-October/015190.html

in fact if you just google "dynamic_lookup" you will find most of the
top set of results mac related.

i guess i haven't learned the gcc secret handshake for the mac yet.

Geert Jansen

unread,
Jul 25, 2008, 10:37:34 AM7/25/08
to pyth...@googlegroups.com
Hi,

which version of Kerberos are you running?

Regards,
Geert

Jeremiah

unread,
Jul 25, 2008, 11:40:04 AM7/25/08
to python-ad

On Jul 25, 10:37 am, "Geert Jansen" <ge...@boskant.nl> wrote:
> Hi,
>
> which version of Kerberos are you running?
>
> Regards,
> Geert

according to this site: http://web.mit.edu/macdev/KfM/Common/Documentation/faq-osx.html
i am and should be running the kerberos that comes with the mac.

this page: http://web.mit.edu/macdev/KfM/Common/Documentation/news.html
suggests that I am running Kerberos for Mac version 6.0 which seems
to be based off of MIT Kerberos 1.6

release notes:
http://web.mit.edu/macdev/KfM/Common/Documentation/release-6.0.html

so I would say I am running 1.6

apple references the following version #'s on it's website
http://www.apple.com/opensource/

Kerberos KfM-6.0fc5
Kerberos Administration System KfM-6.0fc5

Thanks.

Geert Jansen

unread,
Aug 17, 2008, 1:06:49 PM8/17/08
to python-ad
Hi,

(just back from holidays).

The version of Kerberos you are using is also the same one that i am
using without problems, so I agree with you assessment that the
problem is likely a Mac problem. As I don't have access to a Mac, i'm
afraid I can't help you much further.

Does anyone on the list have an idea?

Regards,
Geert

On Jul 25, 5:40 pm, Jeremiah <jeremiah.campb...@gmail.com> wrote:
> On Jul 25, 10:37 am, "Geert Jansen" <ge...@boskant.nl> wrote:
>
> > Hi,
>
> > which version of Kerberos are you running?
>
> > Regards,
> > Geert
>
> according to this site:http://web.mit.edu/macdev/KfM/Common/Documentation/faq-osx.html
> i am and should be running the kerberos that comes with the mac.
>
> this page:http://web.mit.edu/macdev/KfM/Common/Documentation/news.html
> suggests that I am running Kerberos for Mac version 6.0  which seems
> to be based off of MIT Kerberos 1.6
>
> release notes:http://web.mit.edu/macdev/KfM/Common/Documentation/release-6.0.html
>
> so I would say I am running 1.6
>
> apple references the following version #'s on it's websitehttp://www.apple.com/opensource/
Reply all
Reply to author
Forward
0 new messages