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

Bug 885697

Summary: net-dialup/ppp-2.4.9-r8 fails to compile (CLANG-STRICTER-SYSTEM): mplscp.c:42:3: error: incompatible function pointer types initializing int ()(fsm , u_char , int, int) (aka int ()(struct fsm , unsigned char , int, int)) with an expression of type int (f
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: 464270342
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-12-13 03:43:41 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-dialup/ppp-2.4.9-r8 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-13 03:43:43 UTC
Created attachment 842329 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-13 03:43:45 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


./configure: line 10: CC: command not found
./configure: line 23: CFLAGS: command not found
mplscp.c:42:3: error: incompatible function pointer types initializing 'int (*)(fsm *, u_char *, int, int)' (aka 'int (*)(struct fsm *, unsigned char *, int, int)') with an expression of type 'int (fsm *, u_char *, int)' (aka 'int (struct fsm *, unsigned char *, int)') [-Werror,-Wincompatible-function-pointer-types]
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-24 02:34:21 UTC
*** Bug 902855 has been marked as a duplicate of this bug. ***