[Bug 194841] New: [PATCH] net/openldap24-server fix build with LibreSSL

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 5 19:35:32 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194841

            Bug ID: 194841
           Summary: [PATCH] net/openldap24-server fix build with LibreSSL
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: delphij at FreeBSD.org
          Reporter: spil.oss at gmail.com
          Assignee: delphij at FreeBSD.org
             Flags: maintainer-feedback?(delphij at FreeBSD.org)

Created attachment 149087
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149087&action=edit
patch to replace functions and types with DES_ versions

OpenLDAP 2.4 fails to build with LibreSSL, error below
make.conf
WITH_OPENSSL_PORT=    yes
OPENSSL_SHLIBVER=     30
OPENSSL_PORT=         security/libressl

OpenLDAP is using des_* types and functions that were deprecated in 2002 by the
OpenSSL product (and replaced with DES_*) and removed by LibreSSL April 2014

Created a patch for libraries/liblutil/passwd.c to upgrade to the recent
DES_-versions

Upstream responded that this is due to building with --enable-lmpasswd and
commented that lmpasswd should no longer be used.

Created a patch that disables lmpasswd when LibreSSL is used but suggest moving
lmpasswd to an OPTION or removing it alltogether.

--- passwd.o ---
passwd.c:41:9: error: unknown type name 'des_cblock'; did you mean
'DES_cblock'?
typedef des_cblock des_key;
        ^~~~~~~~~~
        DES_cblock
/usr/local/include/openssl/des.h:73:23: note: 'DES_cblock' declared here
typedef unsigned char DES_cblock[8];
                      ^
passwd.c:42:9: error: unknown type name 'des_cblock'; did you mean
'DES_cblock'?
typedef des_cblock des_data_block;
        ^~~~~~~~~~
        DES_cblock
/usr/local/include/openssl/des.h:73:23: note: 'DES_cblock' declared here
typedef unsigned char DES_cblock[8];
                      ^
passwd.c:43:9: error: unknown type name 'des_key_schedule'; did you mean
'DES_key_schedule'?
typedef des_key_schedule des_context;
        ^~~~~~~~~~~~~~~~
        DES_key_schedule
/usr/local/include/openssl/des.h:87:7: note: 'DES_key_schedule' declared here
    } DES_key_schedule;
      ^
passwd.c:670:5: warning: implicit declaration of function 'des_set_odd_parity'
is invalid in C99 [-Wimplicit-function-declaration]
    des_set_odd_parity( key );
    ^
passwd.c:867:2: warning: implicit declaration of function
'des_set_key_unchecked' is invalid in C99 [-Wimplicit-function-declaration]
        des_set_key_unchecked( &key, schedule );
        ^
passwd.c:868:2: warning: implicit declaration of function 'des_ecb_encrypt' is
invalid in C99 [-Wimplicit-function-declaration]
        des_ecb_encrypt( &StdText, &PasswordHash1, schedule , DES_ENCRYPT );
        ^
3 warnings and 3 errors generated.
*** [passwd.o] Error code 1

make[4]: stopped in
/usr/ports/net/openldap24-server/work/openldap-2.4.40/libraries/liblutil
1 error

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer delphij at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list