Hi, 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:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6419029 The bug looks like this: Entering subdirectory librewrite rm -f version.c ../../build/mkversion -v "2.3.11" librewrite.a > version.c /opt/openpkg/bin/cc -O2 -pipe -I/opt/openpkg/include/pth -I../../include -I../../include -I/opt/openpkg/include -I/opt/openpkg/include/sasl -I/opt/openpkg/include/pth -c -o config.o config.c In file included from rewrite-int.h:38, from config.c:22: ../../include/avl.h:86: error: conflicting types for 'avl_insert' /usr/include/sys/avl.h:154: error: previous declaration of 'avl_insert' was here../../include/avl.h:92: error: conflicting types for 'avl_find' /usr/include/sys/avl.h:146: error: previous declaration of 'avl_find' was here make[2]: *** [config.o] Error 1 make[1]: *** [all-common] Error 1 make: *** [all-common] Error 1 error: Bad exit status from /opt/openpkg/RPM/TMP/rpm-tmp.32328 (%build) RPM build errors: Bad exit status from /opt/openpkg/RPM/TMP/rpm-tmp.32328 (%build) discussion: http://groups.google.com/group/comp.unix.solaris/tree/browse_frm/thread/1aa8adbc92c3588a fix: http://cvs.opensolaris.org/source/diff/on/usr/src/uts/common/sys/vnode.h?r2=1.130&r1=1.129 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" \ -- adam ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org