Hello,
last week the ns-slapd process was killed from oom-killer on our ldap/nis system.
I found in the changelog from slapi-nis: 0.31 * Fix some memory leaks.
So I tried to compile slapi-nis-0.36 on Redhat 5 x86_64 But I get following error:
/libtool: link: gcc -shared -fPIC -DPIC .libs/back-nis.o .libs/back-shr.o .libs/defs-nis.o .libs/disp-nis.o .libs/format.o .libs/map.o .libs/nis.o .libs/plug-nis.o .libs/portmap.o .libs/wrap.o -lssldap60 -lprldap60 -lldap60 -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lwrap -lnsl -O2 -m64 -mtune=generic -Wl,-soname -Wl,nisserver-plugin.so -Wl,-version-script -Wl,.libs/nisserver-plugin.ver -o .libs/nisserver-plugin.so libtool: link: ( cd ".libs" && rm -f "nisserver-plugin.la" && ln -s "../nisserver-plugin.la" "nisserver-plugin.la" ) /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/include/mozldap -I/usr/include/nspr4 -I/usr/include/nss3 -O2 -g -m64 -mtune=generic -c -o back-sch.lo back-sch.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/usr/include/mozldap -I/usr/include/nspr4 -I/usr/include/nss3 -O2 -g -m64 -mtune=generic -c back-sch.c -fPIC -DPIC -o .libs/back-sch.o back-sch.c: In function 'backend_sch_scope_as_string': back-sch.c:991: error: invalid storage class for function 'backend_search_cb' back-sch.c:1091: error: invalid storage class for function 'backend_locate_cb' back-sch.c:1124: error: invalid storage class for function 'backend_locate' back-sch.c:1152: error: invalid storage class for function 'backend_group_check_scope_cb' back-sch.c:1168: error: invalid storage class for function 'backend_check_scope_pb' back-sch.c:1187: error: invalid storage class for function 'backend_write_cb' back-sch.c:1211: error: invalid storage class for function 'backend_bind_cb' back-sch.c:1255: error: invalid storage class for function 'backend_compare_cb' back-sch.c:1375: error: expected declaration or statement at end of input make[2]: *** [back-sch.lo] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/slapi-nis-0.36/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/redhat/BUILD/slapi-nis-0.36/src' make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.97014 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.97014 (%build)/
I tried to find a answer with Google, but no success. Version 0.28 compiles fine.
br, Christian Neuhold
On Mon, Feb 13, 2012 at 01:51:21PM +0100, cnu wrote:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/usr/include/mozldap -I/usr/include/nspr4 -I/usr/include/nss3 -O2 -g -m64 -mtune=generic -c back-sch.c -fPIC -DPIC -o .libs/back-sch.o back-sch.c: In function 'backend_sch_scope_as_string': back-sch.c:991: error: invalid storage class for function 'backend_search_cb' back-sch.c:1091: error: invalid storage class for function 'backend_locate_cb' back-sch.c:1124: error: invalid storage class for function 'backend_locate' back-sch.c:1152: error: invalid storage class for function 'backend_group_check_scope_cb' back-sch.c:1168: error: invalid storage class for function 'backend_check_scope_pb' back-sch.c:1187: error: invalid storage class for function 'backend_write_cb' back-sch.c:1211: error: invalid storage class for function 'backend_bind_cb' back-sch.c:1255: error: invalid storage class for function 'backend_compare_cb' back-sch.c:1375: error: expected declaration or statement at end of input make[2]: *** [back-sch.lo] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/slapi-nis-0.36/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/redhat/BUILD/slapi-nis-0.36/src' make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.97014 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.97014 (%build) I tried to find a answer with Google, but no success. Version 0.28 compiles fine. br, Christian Neuhold
Yikes, you found a bug that shows up when LDAP_SCOPE_SUBORDINATE isn't defined, one that's been there since 0.34.
I've gone ahead and checked in the fix and am currently uploading the tarball for 0.37. If you're building from that, then please give it a go. If you're pulling from Fedora's repository and rebulding, an F18 build is on its way.
HTH,
Nalin
On Mon, Feb 13, 2012 at 01:51:21PM +0100, cnu wrote:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/usr/include/mozldap -I/usr/include/nspr4 -I/usr/include/nss3 -O2 -g -m64 -mtune=generic -c back-sch.c -fPIC -DPIC -o .libs/back-sch.o back-sch.c: In function 'backend_sch_scope_as_string': back-sch.c:991: error: invalid storage class for function 'backend_search_cb' back-sch.c:1091: error: invalid storage class for function 'backend_locate_cb' back-sch.c:1124: error: invalid storage class for function 'backend_locate' back-sch.c:1152: error: invalid storage class for function 'backend_group_check_scope_cb' back-sch.c:1168: error: invalid storage class for function 'backend_check_scope_pb' back-sch.c:1187: error: invalid storage class for function 'backend_write_cb' back-sch.c:1211: error: invalid storage class for function 'backend_bind_cb' back-sch.c:1255: error: invalid storage class for function 'backend_compare_cb' back-sch.c:1375: error: expected declaration or statement at end of input make[2]: *** [back-sch.lo] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/slapi-nis-0.36/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/redhat/BUILD/slapi-nis-0.36/src' make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.97014 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.97014 (%build) I tried to find a answer with Google, but no success. Version 0.28 compiles fine. br, Christian Neuhold
Yikes, you found a bug that shows up when LDAP_SCOPE_SUBORDINATE isn't defined, one that's been there since 0.34.
I've gone ahead and checked in the fix and am currently uploading the tarball for 0.37. If you're building from that, then please give it a go. If you're pulling from Fedora's repository and rebulding, an F18 build is on its way.
HTH,
Nalin
389 users mailing list 389-users@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/389-users
Hello, create it is working now:
make[1]: Leaving directory `/usr/src/redhat/BUILD/slapi-nis-0.37' + rm /var/tmp/slapi-nis-0.37-1-root-root//usr/lib64/dirsrv/plugins/nisserver-plugin.la /var/tmp/slapi-nis-0.37-1-root-root//usr/lib64/dirsrv/plugins/schemacompat-plugin.la + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-static-archive + /usr/lib/rpm/brp-strip-comment-note Processing files: slapi-nis-0.37-1 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.38030 + umask 022 + cd /usr/src/redhat/BUILD + cd slapi-nis-0.37 + DOCDIR=/var/tmp/slapi-nis-0.37-1-root-root/usr/share/doc/slapi-nis-0.37 + export DOCDIR + rm -rf /var/tmp/slapi-nis-0.37-1-root-root/usr/share/doc/slapi-nis-0.37 + /bin/mkdir -p /var/tmp/slapi-nis-0.37-1-root-root/usr/share/doc/slapi-nis-0.37 + cp -pr COPYING NEWS README STATUS doc/format-specifiers.txt doc/nis-configuration.txt doc/nis-getting-started.txt doc/nis-known-maps.txt doc/sch-configuration.txt doc/sch-getting-started.txt doc/examples/nis-plugin-example.ldif doc/examples/sch-plugin-example.ldif /var/tmp/slapi-nis-0.37-1-root-root/usr/share/doc/slapi-nis-0.37 + exit 0 Provides: nisserver-plugin.so()(64bit) schemacompat-plugin.so()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libdl.so.2()(64bit) libldap60.so()(64bit) libnsl.so.1()(64bit) libnsl.so.1(GLIBC_2.2.5)(64bit) libnspr4.so()(64bit) libnss3.so()(64bit) libnssutil3.so()(64bit) libplc4.so()(64bit) libplds4.so()(64bit) libprldap60.so()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libsmime3.so()(64bit) libssl3.so()(64bit) libssldap60.so()(64bit) libwrap.so.0()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/slapi-nis-0.37-1-root-root Wrote: /usr/src/redhat/SRPMS/slapi-nis-0.37-1.src.rpm Wrote: /usr/src/redhat/RPMS/x86_64/slapi-nis-0.37-1.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.72714 + umask 022 + cd /usr/src/redhat/BUILD + cd slapi-nis-0.37 + rm -rf /var/tmp/slapi-nis-0.37-1-root-root + exit 0
br, cnu
389-users@lists.fedoraproject.org