Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 592510

Summary: www-client/w3m fails to build with >=dev-libs/openssl-1.1.0 built with disable-deprecated option
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: Current packagesAssignee: CJK Team <cjk>
Status: RESOLVED FIXED    
Severity: normal CC: gienah, x48rph
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/tats/w3m/pull/103
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 669514    
Attachments: build.log
w3m-0.5.3-r9-openssl-1.1.patch

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-08-30 22:57:37 UTC
x86_64-pc-linux-gnu-gcc  -I. -I. -march=native -mtune=native -O2 -pipe -I./libwc   -DHAVE_CONFIG_H -DAUXBIN_DIR=\"/usr/libexec/w3m\" -DCGIBIN_DIR=\"/usr/libexec/w3m/cgi-bin\" -DHELP_DIR=\"/usr/share/w3m\" -DETC_DIR=\"/etc\" -DCONF_DIR=\"
/etc/w3m\" -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/share/locale\"   -c -o url.o url.c
url.c: In function ‘openSSLHandle’:
url.c:323:12: error: too few arguments to function ‘SSL_CTX_new’
  ssl_ctx = SSL_CTX_new();
            ^
In file included from html.h:7:0,
                 from fm.h:39,
                 from url.c:2:
/usr/include/openssl/ssl.h:1302:17: note: declared here
 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
                 ^
url.c:324:2: warning: implicit declaration of function ‘X509_set_default_verify_paths’ [-Wimplicit-function-declaration]
  X509_set_default_verify_paths(ssl_ctx->cert);
  ^
url.c:324:39: error: dereferencing pointer to incomplete type ‘SSL_CTX {aka struct ssl_ctx_st}’
  X509_set_default_verify_paths(ssl_ctx->cert);
                                       ^
url.c: In function ‘openURL’:
url.c:1625:6: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
      write(sock, tmp->ptr, tmp->length);
      ^
url.c:1725:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
   write(sock, tmp->ptr, tmp->length);
   ^
url.c:1747:6: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
      write(sock, tmp->ptr, tmp->length);
      ^
url.c: In function ‘write_from_file’:
url.c:431:6: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
      write(sock, buf, 1);
      ^
make: *** [<builtin>: url.o] Error 1
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-08-30 23:00:33 UTC
Created attachment 444520 [details]
build.log
Comment 2 Mark Wright gentoo-dev 2017-10-16 07:20:50 UTC
Created attachment 498824 [details, diff]
w3m-0.5.3-r9-openssl-1.1.patch
Comment 3 Arfrever Frehtes Taifersar Arahesis 2017-10-16 21:12:09 UTC
(In reply to Mark Wright from comment #2)

Could you send this patch to upstream?
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-10-26 12:25:20 UTC
https://github.com/tats/w3m/commit/d10007a2c61709a5b8f7ed6a5e9f4a24ac374c92