Re: Kerberos libs dependancy in linking with mmc created module
David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Sun, 2 Feb 2003 18:53:07 -0500
| Newsgroups | gmane.comp.lang.moto.devel |
|---|---|
| Message-ID | <[email protected]> |
Each time you change the .i file you must rebuild both the extension and your compiled module with mmc. This is because extensions are statically linked into mmc compiled modules (so that there are no runtime dependencies on moto extensions for the compiled module). In the future I am interested in offering a dynamic as well as static linking option. Have you been rebuilding your module each time ? Also, are you certain krb5_sname_to_principal is defined in the libraries you are including ? You can run nm on the libraries themselves to find out. -Dave On Sunday, February 2, 2003, at 07:41 PM, Stefano Corsi wrote: > Alle 22:05, domenica 2 febbraio 2003, David Hakim ha scritto: >> Ok, so the way to get things working on your system is to modify >> mx/codex/db/pgsql/PGSQL.i adding the appropriate Library or Archive. >> So >> if the symbols you need were defined in libkerberos.so you would add: > > I have tried both this: > > Library: -lkrb5 > Library: -lkrb4 > Library: -lgssapi_krb5 > > and this: > > Archive: "/usr/kerberos/lib/libgssapi_krb5.a" > Archive: "/usr/kerberos/lib/libkrb5.a" > Archive: "/usr/kerberos/lib/libkrb4.a" > > in almost any combination, with no result. > > I continue having this message: > > Starting httpd: Syntax error on line 368 of /etc/httpd/conf/httpd.conf: > Cannot load /etc/httpd/modules/mod_motoqa.so into server: > /etc/httpd/modules/mod_motoqa.so: undefined symbol: > krb5_sname_to_principal > > I get also this output from nm: > > incipalocalhost document_root]# nm /etc/httpd/modules/mod_motoqa.so | > grep > krb5_sname_to_pri > U krb5_sname_to_principal > > Can the problem be in apache missing kerberos support? > > Any other clue? > > Stefano > >