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

Bug 871366

Summary: mail-filter/milter-regex-2.7-r1 - y.tab.c: error: call to undeclared function yylex; ISO C99 and later
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Ralph Seichter <gentoo>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
mail-filter:milter-regex-2.7-r1:20220918-112918.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-09-18 13:16:37 UTC
parse.y:81.25-30: warning: POSIX yacc reserves %type to nonterminals [8;id=da89796e0005e8f1e7f67e8800000000;https://www.gnu.org/software/bison/manual/html_node/Diagnostics.html#Wyacc\-Wyacc8;;\]
   81 | %type	<v.string>	STRING
      |                         ^~~~~~
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c y.tab.c
y.tab.c:1137:16: error: call to undeclared function 'yylex'; ISO C99 and later
      do not support implicit function declarations
      [-Werror,-Wimplicit-function-declaration]

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit e8176b4c385fc022aa4f3bd9744cd6ec4632c400
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 11:16:47 2022 +0000

    2022-09-18 11:16:46 UTC

emerge -qpvO mail-filter/milter-regex
[ebuild  N    ] mail-filter/milter-regex-2.7-r1
Comment 1 Toralf Förster gentoo-dev 2022-09-18 13:16:38 UTC
Created attachment 811210 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 13:16:41 UTC
Created attachment 811213 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-18 13:16:42 UTC
Created attachment 811216 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-18 13:16:43 UTC
Created attachment 811219 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-18 13:16:44 UTC
Created attachment 811222 [details]
mail-filter:milter-regex-2.7-r1:20220918-112918.log
Comment 6 Toralf Förster gentoo-dev 2022-09-18 13:16:45 UTC
Created attachment 811225 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-10-01 02:53:57 UTC
The bug has been closed via the following commit(s):

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

commit f78f4ec02ff2aa306774ccff54ce901b9317a6c1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-01 02:53:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-01 02:53:00 +0000

    mail-filter/milter-regex: fix build w/ Clang 16
    
    Closes: https://bugs.gentoo.org/871366
    Signed-off-by: Sam James <sam@gentoo.org>

 .../milter-regex-2.7-implicit-func-decl.patch      | 10 +++++
 .../milter-regex/milter-regex-2.7-r2.ebuild        | 47 ++++++++++++++++++++++
 2 files changed, 57 insertions(+)