Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880823 - net-misc/radvd-2.19-r4 - gram.c: error: call to undeclared function yylex; ISO C99 and later do
Summary: net-misc/radvd-2.19-r4 - gram.c: error: call to undeclared function yylex; IS...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-10 20:16 UTC by Toralf Förster
Modified: 2022-11-24 00:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.42 KB, text/plain)
2022-11-10 20:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,56.31 KB, text/plain)
2022-11-10 20:16 UTC, Toralf Förster
Details
environment (environment,71.03 KB, text/plain)
2022-11-10 20:16 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,696 bytes, application/x-bzip)
2022-11-10 20:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,39.64 KB, application/x-bzip)
2022-11-10 20:16 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,18.16 KB, application/x-bzip)
2022-11-10 20:16 UTC, Toralf Förster
Details
net-misc:radvd-2.19-r4:20221110-194249.log (net-misc:radvd-2.19-r4:20221110-194249.log,17.45 KB, text/plain)
2022-11-10 20:16 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,21.91 KB, application/x-bzip)
2022-11-10 20:16 UTC, Toralf Förster
Details
var.tmp.clang.tar.bz2 (var.tmp.clang.tar.bz2,1.73 KB, application/x-bzip)
2022-11-10 20:16 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-11-10 20:16:08 UTC
too long lines were shrinked:

/bin/sh ./ylwrap scanner.l lex.yy.c scanner.c -- flex  
1 warning generated.
clang -fno-strict-aliasing -Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -Wno-strict-aliasing -Wno-cast-align -Wno-strict-overflow -fstack-protector -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implic
clang -DINET6=1 -DLOG_FACILITY=LOG_DAEMON -DPATH_RADVD_CONF=\"/etc/radvd.conf\" -DPATH_RADVD_LOG=\"/var/log/radvd.log\" -DPATH_RADVD_PID=\"/run/radvd/radvd.pid\" -DVERSION=\"2.19\" -I.    -Wno-implicit-function-declaration -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-decl
gram.c:1531: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_desktop_gnome_systemd-j4-20221110-100005

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

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 Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit f80188f73da656ba570bd521ba865d631264dea6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Nov 10 18:50:27 2022 +0000

    2022-11-10 18:50:27 UTC

emerge -qpvO net-misc/radvd
[ebuild  N    ] net-misc/radvd-2.19-r4  USE="(-selinux) -test"
Comment 1 Toralf Förster gentoo-dev 2022-11-10 20:16:09 UTC
Created attachment 830509 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-10 20:16:10 UTC
Created attachment 830511 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-10 20:16:11 UTC
Created attachment 830513 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-10 20:16:12 UTC
Created attachment 830515 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-10 20:16:13 UTC
Created attachment 830517 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-10 20:16:14 UTC
Created attachment 830519 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-10 20:16:15 UTC
Created attachment 830521 [details]
net-misc:radvd-2.19-r4:20221110-194249.log
Comment 8 Toralf Förster gentoo-dev 2022-11-10 20:16:16 UTC
Created attachment 830523 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-11-10 20:16:17 UTC
Created attachment 830525 [details]
var.tmp.clang.tar.bz2
Comment 10 Larry the Git Cow gentoo-dev 2022-11-24 00:53:25 UTC
The bug has been closed via the following commit(s):

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

commit 6ccf1b9327a975ba069b356e3e9f1a51e39ca45d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-24 00:52:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-24 00:52:13 +0000

    net-misc/radvd: fix build w/ clang 16
    
    Closes: https://bugs.gentoo.org/880823
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/radvd/files/radvd-2.19-clang16.patch | 62 ++++++++++++++++++++++
 net-misc/radvd/radvd-2.19-r5.ebuild           | 74 +++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)