/bin/sh ../../libtool --mode=compile cc -O2 -pipe -march=native -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync -fstack-protector -fno-strict-aliasing -I../../include -I../../include -I/usr/local/include -DLDAP_LIBRARY -c tls_o.c --- tls2.lo --- tls2.c:238:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ ./ldap-int.h:87:41: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls2.c:294:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY,"TLS: can't create ssl handle.\n",0,0,0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ldap-int.h:87:41: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls2.c:386:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY,"TLS: can't connect: %s.\n", ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls2.c:438:4: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY,"TLS: can't accept: %s.\n", ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ --- tls_o.lo --- cc -O2 -pipe -march=native -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync -fstack-protector -fno-strict-aliasing -I../../include -I../../include -I/usr/local/include -DLDAP_LIBRARY -c tls_o.c -fPIC -DPIC -o .libs/tls_o.o tls_o.c:165:2: warning: implicit declaration of function 'OPENSSL_init_ssl' is invalid in C99 [-Wimplicit-function-declaration] OPENSSL_init_ssl(0, NULL); ^ tls_o.c:211:2: warning: implicit declaration of function 'SSL_CTX_up_ref' is invalid in C99 [-Wimplicit-function-declaration] SSL_CTX_up_ref( c ); ^ tls_o.c:262:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ --- tls2.lo --- 4 warnings generated. cc -O2 -pipe -march=native -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync -fstack-protector -fno-strict-aliasing -I../../include -I../../include -I/usr/local/include -DLDAP_LIBRARY -c tls2.c -o tls2.o >/dev/null 2>&1 --- tls_o.lo --- ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:271:4: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, "TLS: " ^ ~~~~~~~ ./ldap-int.h:87:41: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:280:4: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, "TLS: " ^ ~~~~~~~ ./ldap-int.h:87:57: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:294:5: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, "TLS: " ^ ~~~~~~~ ./ldap-int.h:87:57: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:311:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:323:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:336:4: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:343:4: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:474:3: warning: implicit declaration of function 'X509_NAME_get0_der' is invalid in C99 [-Wimplicit-function-declaration] X509_NAME_get0_der( xn, (const unsigned char **)&der_dn->bv_val, &len ); ^ tls_o.c:549:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ ./ldap-int.h:87:41: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:593:20: warning: implicit declaration of function 'ASN1_STRING_get0_data' is invalid in C99 [-Wimplicit-function-declaration] sn = (char *) ASN1_STRING_data(gn->d.ia5); ^ tls_o.c:51:29: note: expanded from macro 'ASN1_STRING_data' #define ASN1_STRING_data(x) ASN1_STRING_get0_data(x) ^ tls_o.c:593:11: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] sn = (char *) ASN1_STRING_data(gn->d.ia5); ^ tls_o.c:614:11: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] sn = (char *) ASN1_STRING_data(gn->d.ia5); ^ tls_o.c:662:4: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ ./ldap-int.h:87:41: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:732:2: warning: implicit declaration of function 'BIO_set_init' is invalid in C99 [-Wimplicit-function-declaration] BIO_set_init( b, 1 ); ^ tls_o.c:733:2: warning: implicit declaration of function 'BIO_set_data' is invalid in C99 [-Wimplicit-function-declaration] BIO_set_data( b, NULL ); ^ tls_o.c:757:25: warning: implicit declaration of function 'BIO_get_data' is invalid in C99 [-Wimplicit-function-declaration] p = (struct tls_data *)BIO_get_data(b); ^ tls_o.c:757:6: warning: cast to 'struct tls_data *' from smaller integer type 'int' [-Wint-to-pointer-cast] p = (struct tls_data *)BIO_get_data(b); ^ tls_o.c:784:6: warning: cast to 'struct tls_data *' from smaller integer type 'int' [-Wint-to-pointer-cast] p = (struct tls_data *)BIO_get_data(b); ^ tls_o.c:826:8: error: redefinition of 'bio_method_st' struct bio_method_st { ^ /usr/local/include/openssl/bio.h:268:16: note: previous definition is here typedef struct bio_method_st { ^ tls_o.c:1013:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_TRACE, ^ ./ldap-int.h:87:57: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:1040:4: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_TRACE, ^ ./ldap-int.h:87:57: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:1044:4: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_TRACE, ^ ./ldap-int.h:87:57: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:1092:2: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_TRACE, " issuer: %s\n", iname ? iname : "-unknown-", 0, 0 ); ^ ~~~~~~~~~~~~~~~ ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ tls_o.c:1094:3: warning: data argument not used by format string [-Wformat-extra-args] Debug( LDAP_DEBUG_ANY, ^ ./ldap-int.h:87:49: note: expanded from macro 'Debug' ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \ ~~~ ^ 26 warnings and 1 error generated. *** [tls_o.lo] Error code 1 make[4]: stopped in /usr/obj/usr/ports/net/openldap24-client/work/openldap-2.4.45/libraries/libldap 1 error make[4]: stopped in /usr/obj/usr/ports/net/openldap24-client/work/openldap-2.4.45/libraries/libldap *** [all-common] Error code 2 make[3]: stopped in /usr/obj/usr/ports/net/openldap24-client/work/openldap-2.4.45/libraries 1 error make[3]: stopped in /usr/obj/usr/ports/net/openldap24-client/work/openldap-2.4.45/libraries *** [all-common] Error code 2 make[2]: stopped in /usr/obj/usr/ports/net/openldap24-client/work/openldap-2.4.45 1 error make[2]: stopped in /usr/obj/usr/ports/net/openldap24-client/work/openldap-2.4.45
DEFAULT_VERSIONS+=ssl=libressl is present in make.conf
Same problem here. tls_o.c:826:8: error: redefinition of 'bio_method_st' struct bio_method_st { ^ /usr/local/include/openssl/bio.h:268:16: note: previous definition is here typedef struct bio_method_st { ^ In /etc/make.conf DEFAULT_VERSIONS+=ssl=libressl is present in make.conf
Bug 219781 contains a fix.
*** This bug has been marked as a duplicate of bug 219781 ***