Bug#844845: tkrat: FTBFS: osdep.c:445:40: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}'

2017-01-12 Thread Andreas Beckmann
Followup-For: Bug #844845
Control: tag -1 pending

Hi,

I just uploaded a NMU to DELAYED/2 switching to openssl 1.0 for stretch.
Please let me know if I should delay it longer.

 tkrat (1:2.2cvs20100105-true-dfsg-6.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Explicitly build against openssl 1.0 for stretch.  (Closes: #844845)
   * Make the build reproducible, thanks to Chris Lamb.  (Closes: #778431)
   * Add Build-Conflicts: tk8.6-dev.  (Closes: #811061)


Andreas



Bug#844845: tkrat: FTBFS: osdep.c:445:40: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}'

2016-11-18 Thread Lucas Nussbaum
Source: tkrat
Version: 1:2.2cvs20100105-true-dfsg-6
Severity: serious
Tags: stretch sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20161118 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> make[6]: Entering directory '/<>/imap/c-client'
> echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
> make[6]: Leaving directory '/<>/imap/c-client'
> ln -s os_lnx.h osdep.h
> ln -s os_lnx.c osdepbas.c
> ln -s log_std.c osdeplog.c
> ln -s sig_psx.c siglocal.c
> ln -s crx_nfs.c crexcl.c
> ln -s ip4_unix.c ip_unix.c
> sh -c '(test -f /usr/include/sys/statvfs.h -a lnx != sc5 -a lnx != sco) && ln 
> -s nfstnew.c nfstest.c || ln -s nfstold.c nfstest.c'
> Standard password authentication
> ln -s ckp_pam.c osdepckp.c
> Building with SSL
> ln -s ssl_unix.c osdepssl.c
> echo -I/usr/include/openssl -I/usr/include/openssl/openssl 
> -DSSL_CERT_DIRECTORY=\"/etc/ssl/certs\" 
> -DSSL_KEY_DIRECTORY=\"/etc/ssl/private\" >> OSCFLAGS
> echo "  ssl_onceonlyinit ();" >> linkage.c
> echo -L/usr/lib -lssl -lcrypto  >> LDFLAGS
> Building with SSL and plaintext passwords disabled unless SSL/TLS
> echo "  mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c
> cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
> Building OS-dependent module
> If you get No such file error messages for files x509.h, ssl.h,
> pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
> is not installed on your system. Either install OpenSSL first
> or build with command: make lnx SSLTYPE=none
> `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
> In file included from /usr/include/stdlib.h:24:0,
>  from osdep.h:35,
>  from osdep.c:23:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and 
> _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>^~~
> In file included from osdep.c:23:0:
> env_unix.c: In function 'lock_work':
> osdep.h:52:15: warning: implicit declaration of function 'safe_flock' 
> [-Wimplicit-function-declaration]
>  #define flock safe_flock
>^
> env_unix.c:1198:27: note: in expansion of macro 'flock'
>  if (op & LOCK_NB) i = flock (fd,op);
>^
> In file included from osdep.c:41:0:
> env_unix.c: In function 'mm_blocknotify':
> env_unix.c:1631:11: warning: cast to pointer from integer of different size 
> [-Wint-to-pointer-cast]
>  ret = (void *) alarm (0);
>^
> env_unix.c:1634:9: warning: cast from pointer to integer of different size 
> [-Wpointer-to-int-cast]
>  if ((unsigned int) data) alarm ((unsigned int) data);
>  ^
> env_unix.c:1634:37: warning: cast from pointer to integer of different size 
> [-Wpointer-to-int-cast]
>  if ((unsigned int) data) alarm ((unsigned int) data);
>  ^
> osdep.c: In function 'ssl_start_work':
> osdep.c:419:12: warning: 'TLSv1_client_method' is deprecated 
> [-Wdeprecated-declarations]
> TLSv1_client_method () :
> ^~~
> In file included from /usr/include/openssl/ct.h:13:0,
>  from /usr/include/openssl/ssl.h:61,
>  from osdep.c:231:
> /usr/include/openssl/ssl.h:1598:45: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* 
> TLSv1.0 */
>  ^
> osdep.c:445:40: error: dereferencing pointer to incomplete type 'X509 {aka 
> struct x509_st}'
>  else if (!(s = ssl_extract_cn (cert->name)))
> ^~
> osdep.c: In function 'ssl_server_init':
> osdep.c:806:12: warning: 'TLSv1_server_method' is deprecated 
> [-Wdeprecated-declarations]
> TLSv1_server_method () :
> ^~~
> In file included from /usr/include/openssl/ct.h:13:0,
>  from /usr/include/openssl/ssl.h:61,
>  from osdep.c:231:
> /usr/include/openssl/ssl.h:1597:45: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* 
> TLSv1.0 */
>  ^
> osdep.c: In function 'ssl_genkey':
> osdep.c:875:5: warning: 'RSA_generate_key' is deprecated 
> [-Wdeprecated-declarations]
>  if (!(key = RSA_generate_key (export ? keylength : 
> 1024,RSA_F4,NIL,NIL))) {
>  ^~
> In file included from /usr/include/openssl/rsa.h:13:0,
>  from /usr/include/openssl/x509.h:31,
>  from osdep.c:230:
> /usr/include/openssl/rsa.h:193:1: note: declared here
>  DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
>  ^
> Makefile:867: recipe for target 'osdep.o' failed
> make[5]: *** [osdep.o] Error 1

The full build log is available from: