On Wednesdayen den 3 April 2002 13.48, Alexander Skwar wrote:
> Okay, I've now figured that I need to compile php-recode a little
> differently:
>
> %{phpsource}/buildext %{modname} %{modname}.c "-lrecode"
> %"-DCOMPILE_DL_RECODE -DHAVE_LIBRECODE"
>
> Fine.  recode now works.  However, I've also recompiled php-imap, and
> when I try to start php, I get this error:
>
> PHP Warning:  Unable to load dynamic library
> '/usr/lib/php/extensions/imap.so' - /usr/lib/php/extensions/imap.so:
> undefined symbol: gss_nt_service_name in Unknown on line 0
>
> Where should gss_nt_service_name be defined?
>
> Alexander Skwar

I belive you must add:

export LIBS="$LIBS -lpthread -L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 
-lk5crypto -lcom_err"

and

"--with-openssl" when building php.

Also:

%{phpsource}/buildext imap php_imap.c \
        "%{_libdir}/libc-client.a -lpam -lpthread \
-L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 -lk5crypto \
-lcom_err" "-DCOMPILE_DL_IMAP -DHAVE_IMAP_SSL"

when building php-imap since the recent changes with imap-devel-2001a-4mdk

Or you could try:

%{phpsource}/buildext imap php_imap.c \
        "%{_libdir}/libc-client-nossl.a -lpam" "-DCOMPILE_DL_IMAP"


But I don't know if that will work. I guess no one has had the time to dig 
through this yet...

-- 
Regards // Oden Eriksson

Reply via email to