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

Bug 881139

Summary: dev-lua/lua-openssl-0.8.2_p1 - src/ocsp.c: error: incompatible function pointer types passing char ( )() to parameter of type d2i_
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Conrad Kostecki <conikost>
Status: RESOLVED FIXED    
Severity: normal CC: chutzpah, sam, vpayno+gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/zhaozg/lua-openssl/issues/265
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-lua:lua-openssl-0.8.2_p1:20221112-165001.log
emerge-history.txt
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-11-12 18:13:20 UTC
too long lines were shrinked:

clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/lua5.1   -Wall -Wno-unused-value -Wno-unused-function -DPTHR
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/lua5.1   -Wall -Wno-unused-value -Wno-unused-function -DPTHR
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/lua5.1   -Wall -Wno-unused-value -Wno-unused-function -DPTHR
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/lua5.1   -Wall -Wno-unused-value -Wno-unused-function -DPTHR
src/ocsp.c:124:29: error: incompatible function pointer types passing 'char *(*)()' to parameter of type 'd2i_of_void *' (aka 'void *(*)(void **, const unsigned char **, long)') [-Werror,-Wincompatible-function-pointer-types]
  OCSP_REQUEST *req = pem ? PEM_read_bio_OCSP_REQUEST(bio, NULL, NULL)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20221111-150005

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.5_p8 [openjdk-17]
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
4)	Eclipse Temurin JRE 17.0.5_p8 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-17 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17  system-vm
  [4]   openjdk-jre-bin-17 

php cli (if any):

  HEAD of ::gentoo
commit 6861c6a6989525046ffd9bc738c009f80249698d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Nov 12 16:16:51 2022 +0000

    2022-11-12 16:16:51 UTC

emerge -qpvO dev-lua/lua-openssl
[ebuild  N    ] dev-lua/lua-openssl-0.8.2_p1  USE="-test" LUA_TARGETS="lua5-1 -lua5-3 -lua5-4 -luajit"
Comment 1 Toralf Förster gentoo-dev 2022-11-12 18:13:21 UTC
Created attachment 832105 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-12 18:13:23 UTC
Created attachment 832107 [details]
dev-lua:lua-openssl-0.8.2_p1:20221112-165001.log
Comment 3 Toralf Förster gentoo-dev 2022-11-12 18:13:24 UTC
Created attachment 832109 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-11-12 18:13:26 UTC
Created attachment 832111 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-12 18:13:26 UTC
Created attachment 832113 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-12 18:13:27 UTC
Created attachment 832115 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-12 18:13:29 UTC
Created attachment 832117 [details]
temp.tar.bz2
Comment 8 Conrad Kostecki gentoo-dev 2023-08-03 22:06:47 UTC
@sam: Could you please have a look at upstream response? https://github.com/zhaozg/lua-openssl/issues/265

He says, this would be caused by the used openssl version, but I am not convinced. Could you please have a look? Thanks!
Comment 9 Larry the Git Cow gentoo-dev 2023-08-09 20:07:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=038f5dd88d37008c4cd12fa7153602dbdc0e97d2

commit 038f5dd88d37008c4cd12fa7153602dbdc0e97d2
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2023-08-09 20:05:45 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2023-08-09 20:05:45 +0000

    dev-lua/lua-openssl: fix clang16, block tests
    
    Closes: https://bugs.gentoo.org/911845
    Closes: https://bugs.gentoo.org/881139
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 .../files/lua-openssl-0.8.3-clang16.patch          | 45 ++++++++++++++++++++++
 ....3_p2.ebuild => lua-openssl-0.8.3_p2-r1.ebuild} |  4 +-
 2 files changed, 48 insertions(+), 1 deletion(-)