On Fri, Sep 15, 2006, Adam D. Morley wrote:

> FYI, for those encountering troubles on recent Solaris 10 (6/06 or
> recently patched) when building openldap from 2.5 (don't know about
> STABLE), there appears to be a bug wrt vnode.h:
> [...]
> I can't seem to find the fix in an offical Solaris 10 patch (not
> surprising, since it came out in May).  But the following patch to
> openldap.spec works for me (taken from suggestions in comp.unix.solaris
> discussion):
>
> --- openldap.orig       Thu Sep 14 13:40:43 2006
> +++ openldap.spec       Thu Sep 14 13:41:14 2006
> @@ -108,7 +108,7 @@
>          ;;
>      esac
>      CC="%{l_cc}" \
> -    CFLAGS="%{l_cflags -O} `%{l_prefix}/bin/pth-config --cflags`" \
> +    CFLAGS="%{l_cflags -O} `%{l_prefix}/bin/pth-config --cflags`
> -D_AVL_H" \
>      CPPFLAGS="$cf -I`%{l_prefix}/bin/pth-config --includedir`" \
>      LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/pth-config --ldflags`
> %{l_fsl_ldflags}" \
>      LIBS="`%{l_prefix}/bin/pth-config --libs` %{l_fsl_libs} $LOCLIBS" \

A similar fix was already applied to CURRENT (and merged to STABLE) some
time ago:

--- openldap.spec        1 Aug 2006 18:57:27 -0000       1.168
+++ openldap.spec        4 Aug 2006 07:32:55 -0000       1.169
@@ -33,7 +33,7 @@
 Group:        Database
 License:      GPL
 Version:      2.3.25
-Release:      20060801
+Release:      20060804

 #   package options
 %option       with_fsl   yes
@@ -159,7 +159,7 @@

     #   configuration: special platform support
     case "%{l_platform -t}" in
-        *-sunos* ) LIBS="$LIBS -lrt" ;;
+        *-sunos* ) CFLAGS="$CFLAGS -D_AVL_H"; LIBS="$LIBS -lrt" ;;
     esac

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to