In the first mail the error message is not complete
Linking bin/smbd /openpkg/lib/libcrypto.a(sha256.o): In function `SHA256_Init': sha256.c:(.text+0x0): multiple definition of `SHA256_Init' ../lib/crypto/sha256.o:sha256.c:(.text+0x0): first defined here /openpkg/lib/libcrypto.a(sha256.o): In function `SHA256_Final': sha256.c:(.text+0xc0): multiple definition of `SHA256_Final' ../lib/crypto/sha256.o:sha256.c:(.text+0x3d0): first defined here /openpkg/lib/libcrypto.a(sha256.o): In function `SHA256_Update': sha256.c:(.text+0x260): multiple definition of `SHA256_Update' ../lib/crypto/sha256.o:sha256.c:(.text+0x50): first defined here /openpkg/lib/libldap.a(os-ip.o): In function `ldap_int_poll': os-ip.c:(.text+0x80b): warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead os-ip.c:(.text+0x802): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.53400 (%build) RPM build errors: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.53400 (%build) Kerberos and OpenLDAP are build without errors. Thanks, Christian