Bug 236015 - net/rdesktop: fails to build with openssl
Summary: net/rdesktop: fails to build with openssl
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-25 06:36 UTC by davidPlanner
Modified: 2019-02-28 05:40 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (gregf)


Attachments
pkg info (50.07 KB, text/plain)
2019-02-25 06:36 UTC, davidPlanner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description davidPlanner 2019-02-25 06:36:22 UTC
Created attachment 202342 [details]
pkg info

Hi i have some Problems to build rdesktop here are the infos about my system: uname -a
FreeBSD wst00029 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC  amd64

x11/libX11 is installed now. Its not possible to build it (i do a make clean bevor a start a new make install)

make.conf
DISABLE_VULNERABILITIES="YES"
FORCE_MAKE_JOBS="YES"
MAKE_JOBS_UNSAFE="YES"


some infos about the last output:

ssl.c:91:9: error: variable has incomplete type 'BIGNUM'                                                                                                                                      
      (aka 'struct bignum_st')                                                                                                                                                                
        BIGNUM mod, exp, x, y;                                                                                                                                                                
               ^                                                                                                                                
/usr/lib/include/openssl/ossl_typ.h:80:16: note: forward declaration of                                                                                                                       
      'struct bignum_st'                                                                                                                                                        
typedef struct bignum_st BIGNUM;                                                                                                                                                              
               ^                                                                                                                                
ssl.c:91:14: error: variable has incomplete type 'BIGNUM'                                                                                                                                     
      (aka 'struct bignum_st')                                                                                                                                                                
        BIGNUM mod, exp, x, y;                                                                                                                                                                
                    ^                                                                                                                                               
/usr/lib/include/openssl/ossl_typ.h:80:16: note: forward declaration of                                                                                                                       
      'struct bignum_st'                                                                                                                                                        
typedef struct bignum_st BIGNUM;                                                                                                                                                              
               ^                                                                                                                                
ssl.c:91:19: error: variable has incomplete type 'BIGNUM'                                                                                                                                     
      (aka 'struct bignum_st')                                                                                                                                                                
        BIGNUM mod, exp, x, y;                                                                                                                                                                
                         ^                                                                                                                                                              
/usr/lib/include/openssl/ossl_typ.h:80:16: note: forward declaration of                                                                                                                       
      'struct bignum_st'                                                                                                                                                        
typedef struct bignum_st BIGNUM;                                                                                                                                                              
               ^                                                                                                                                
ssl.c:91:22: error: variable has incomplete type 'BIGNUM'                                                                                                                                     
      (aka 'struct bignum_st')                                                                                                                                                                
        BIGNUM mod, exp, x, y;                                                                                                                                                                
                            ^                                                                                                                                                               
/usr/lib/include/openssl/ossl_typ.h:80:16: note: forward declaration of                                                                                                                       
      'struct bignum_st'                                                                                                                                                        
typedef struct bignum_st BIGNUM;                                                                                                                                                              
               ^                                                                                                                                
ssl.c:101:2: warning: implicit declaration of function 'BN_init' is invalid in                                                                                                                
      C99 [-Wimplicit-function-declaration]                                                                                                                                                   
        BN_init(&mod);                                                                                                                                                  
        ^                                                                                                           
ssl.c:149:24: error: incomplete definition of type 'struct x509_st'                                                                                                                           
        nid = OBJ_obj2nid(cert->cert_info->key->algor->algorithm);                                                                                                                            
                          ~~~~^                                                                                                                                                             
/usr/lib/include/openssl/ossl_typ.h:120:16: note: forward declaration of                                                                                                                      
      'struct x509_st'                                                                                                                                                  
typedef struct x509_st X509;                                                                                                                                                                  
               ^                                                                                                                                
ssl.c:153:24: error: incomplete definition of type 'struct x509_st'                                                                                                                           
                ASN1_OBJECT_free(cert->cert_info->key->algor->algorithm);                                                                                                                     
                                 ~~~~^                                                                                                                                                      
/usr/lib/include/openssl/ossl_typ.h:120:16: note: forward declaration of                                                                                                                      
      'struct x509_st'                                                                                                                                                  
typedef struct x509_st X509;                                                                                                                                                                  
               ^
ssl.c:154:7: error: incomplete definition of type 'struct x509_st'
                cert->cert_info->key->algor->algorithm = OBJ_nid2obj(NID...
                ~~~~^
/usr/lib/include/openssl/ossl_typ.h:120:16: note: forward declaration of
      'struct x509_st'
typedef struct x509_st X509;
               ^
ssl.c:204:24: error: incomplete definition of type 'struct rsa_st'
        if ((BN_num_bytes(rkey->e) > (int) max_exp_len) ||
                          ~~~~^
/usr/lib/include/openssl/bn.h:181:40: note: expanded from macro 'BN_num_bytes'
# define BN_num_bytes(a) ((BN_num_bits(a)+7)/8)
                                       ^
/usr/lib/include/openssl/ossl_typ.h:110:16: note: forward declaration of
      'struct rsa_st'
typedef struct rsa_st RSA;
               ^
ssl.c:205:24: error: incomplete definition of type 'struct rsa_st'
            (BN_num_bytes(rkey->n) > (int) max_mod_len))
                          ~~~~^
/usr/lib/include/openssl/bn.h:181:40: note: expanded from macro 'BN_num_bytes'
# define BN_num_bytes(a) ((BN_num_bits(a)+7)/8)
                                       ^
/usr/lib/include/openssl/ossl_typ.h:110:16: note: forward declaration of
      'struct rsa_st'
typedef struct rsa_st RSA;
               ^
ssl.c:209:22: error: incomplete definition of type 'struct rsa_st'
        len = BN_bn2bin(rkey->e, exponent);
                        ~~~~^
/usr/lib/include/openssl/ossl_typ.h:110:16: note: forward declaration of
      'struct rsa_st'
typedef struct rsa_st RSA;
               ^
ssl.c:211:22: error: incomplete definition of type 'struct rsa_st'
        len = BN_bn2bin(rkey->n, modulus);
                        ~~~~^
/usr/lib/include/openssl/ossl_typ.h:110:16: note: forward declaration of
      'struct rsa_st'
typedef struct rsa_st RSA;
               ^
ssl.c:232:11: error: variable has incomplete type 'HMAC_CTX' (aka
      'struct hmac_ctx_st')
        HMAC_CTX ctx;
                 ^
/usr/lib/include/openssl/ossl_typ.h:102:16: note: forward declaration of
      'struct hmac_ctx_st'
typedef struct hmac_ctx_st HMAC_CTX;
               ^
ssl.c:233:2: warning: implicit declaration of function 'HMAC_CTX_init' is
      invalid in C99 [-Wimplicit-function-declaration]
        HMAC_CTX_init(&ctx);
        ^
ssl.c:235:2: warning: implicit declaration of function 'HMAC_CTX_cleanup' is
      invalid in C99 [-Wimplicit-function-declaration]
        HMAC_CTX_cleanup(&ctx);
        ^
3 warnings and 12 errors generated.
gmake[2]: *** [Makefile:161: ssl.o] Error 1
gmake[2]: Leaving directory '/usr/ports/net/rdesktop/work/rdesktop-1.8.3'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net/rdesktop
*** Error code 1
Comment 1 Walter Schwarzenfeld 2019-02-25 09:52:38 UTC
On 22.2 bug #229029  a patch was committed should fix this issue and updated the port to 1.8.4.
(Your version is 1.8.3).
Comment 2 Koichiro Iwao freebsd_committer freebsd_triage 2019-02-28 05:40:11 UTC
Should be fixed at the latest version.