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

Bug 869149

Summary: net-libs/libsmi-0.5.0-r2:0 - parser-smi.c: error: redefinition of yylen
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: CONFIRMED ---    
Severity: normal CC: bertrand, mike, neb.semqen.ramesses, nvinson234, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=871360
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
net-libs:libsmi-0.5.0-r2:20220908-054338.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-09-08 07:08:40 UTC
parser-smi.c:10027:3: warning: type defaults to 'int' in declaration of 'YYPOPSTACK' [-Wimplicit-int]
parser-smi.c:10027:3: warning: parameter names (without types) in function declaration
parser-smi.c:10028:3: warning: data definition has no type or storage class
parser-smi.c:10028:3: warning: type defaults to 'int' in declaration of 'yylen' [-Wimplicit-int]
parser-smi.c:10028:3: error: redefinition of 'yylen'
parser-smi.c:9959:3: note: previous definition of 'yylen' with type 'int'
parser-smi.c:10029:3: warning: data definition has no type or storage class

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.0
 [2] x86_64-pc-linux-gnu-12.2.1 *
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 Rust versions:
  [1]   rust-bin-1.62.1 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.3_p7 [openjdk-17]
*)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-17 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 66654adf62e6428a7b710b5b954e7de55281330e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Sep 8 05:12:29 2022 +0000

    2022-09-08 05:12:28 UTC

emerge -qpvO net-libs/libsmi
[ebuild  N    ] net-libs/libsmi-0.5.0-r2
Comment 1 Toralf Förster gentoo-dev 2022-09-08 07:08:42 UTC
Created attachment 803875 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-08 07:08:43 UTC
Created attachment 803878 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-08 07:08:44 UTC
Created attachment 803881 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-08 07:08:45 UTC
Created attachment 803884 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-08 07:08:46 UTC
Created attachment 803887 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-08 07:08:47 UTC
Created attachment 803890 [details]
net-libs:libsmi-0.5.0-r2:20220908-054338.log
Comment 7 Toralf Förster gentoo-dev 2022-09-08 07:08:48 UTC
Created attachment 803893 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-09-09 02:56:02 UTC
The bug has been referenced in the following commit(s):

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

commit c21472aed0fd65b2d60e535cc3117e0ed2b0d0b3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-09 02:55:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-09 02:55:56 +0000

    net-libs/libsmi: add missing BDEPENDs (flex, yacc)
    
    I can't reproduce the reported issue but these
    were missing anyway.
    
    Bug: https://bugs.gentoo.org/869149
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libsmi/libsmi-0.5.0-r2.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-09 02:57:27 UTC
toralf, can you reproduce this?
Comment 10 Toralf Förster gentoo-dev 2022-09-09 13:13:40 UTC
(In reply to Sam James from comment #9)
> toralf, can you reproduce this?

now it is fine:
/home/tinderbox/run/17.1_desktop_systemd-j4-20220905-210005/var/log/emerge.log
2022-09-09T08:41:00 >>> net-libs/libsmi-0.5.0-r1: 23 seconds
Comment 11 Toralf Förster gentoo-dev 2022-09-26 18:12:41 UTC
well, it still does happen:


parser-smi.c:10027:3: warning: type defaults to 'int' in declaration of 'YYPOPSTACK' [-Wimplicit-int]
parser-smi.c:10027:3: warning: parameter names (without types) in function declaration
parser-smi.c:10028:3: warning: data definition has no type or storage class
parser-smi.c:10028:3: warning: type defaults to 'int' in declaration of 'yylen' [-Wimplicit-int]
parser-smi.c:10028:3: error: redefinition of 'yylen'
parser-smi.c:9959:3: note: previous definition of 'yylen' with type 'int'
parser-smi.c:10029:3: warning: data definition has no type or storage class
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2022-11-02 20:43:24 UTC
Does this also affect 0.5.0-r1 or 0.5.0-r5 ?
Why do you assume this is glibc-related?
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-02 20:46:21 UTC
I think it's Clang 16 if anything.
Comment 14 Toralf Förster gentoo-dev 2023-10-30 22:25:59 UTC
*** Bug 871360 has been marked as a duplicate of this bug. ***
Comment 15 Toralf Förster gentoo-dev 2024-01-09 08:22:15 UTC
*** Bug 920057 has been marked as a duplicate of this bug. ***