Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870898 - app-text/expander-2.0.5-r2 - align_comments.c: error: call to undeclared function getopt; ISO C99
Summary: app-text/expander-2.0.5-r2 - align_comments.c: error: call to undeclared func...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-17 17:20 UTC by Toralf Förster
Modified: 2022-09-18 01:34 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.53 KB, text/plain)
2022-09-17 17:20 UTC, Toralf Förster
Details
app-text:expander-2.0.5-r2:20220917-162033.log (app-text:expander-2.0.5-r2:20220917-162033.log,4.10 KB, text/plain)
2022-09-17 17:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,51.84 KB, text/plain)
2022-09-17 17:20 UTC, Toralf Förster
Details
environment (environment,61.21 KB, text/plain)
2022-09-17 17:20 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.89 KB, application/x-bzip)
2022-09-17 17:20 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,16.43 KB, application/x-bzip)
2022-09-17 17:20 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-09-17 17:20:08 UTC
too long lines were shrinked:

clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o expander expander.c
clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o boxcomment boxcomment.c
clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o align_columns align_columns.c
clang -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o align_comments align_comments.c
align_comments.c:260:18: error: call to undeclared function 'getopt'; 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_hardened-j4-20220917-070004

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

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:
*)	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

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

  HEAD of ::gentoo
commit 27e349751fc08f79c6f96f84652edf0c93ba9a1f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 14:46:52 2022 +0000

    2022-09-17 14:46:52 UTC

emerge -qpvO app-text/expander
[ebuild  N    ] app-text/expander-2.0.5-r2
Comment 1 Toralf Förster gentoo-dev 2022-09-17 17:20:09 UTC
Created attachment 808447 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 17:20:10 UTC
Created attachment 808450 [details]
app-text:expander-2.0.5-r2:20220917-162033.log
Comment 3 Toralf Förster gentoo-dev 2022-09-17 17:20:12 UTC
Created attachment 808453 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-17 17:20:13 UTC
Created attachment 808456 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-17 17:20:14 UTC
Created attachment 808459 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 17:20:15 UTC
Created attachment 808462 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-09-18 01:34:48 UTC
The bug has been closed via the following commit(s):

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

commit 7184d0d1b3e808e77232f9334120fc68e010e5d2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-18 01:34:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-18 01:34:19 +0000

    app-text/expander: EAPI 8, fix implicit func. declarations
    
    Closes: https://bugs.gentoo.org/870898
    Signed-off-by: Sam James <sam@gentoo.org>

 ...der-2.0.5-r2.ebuild => expander-2.05-r3.ebuild} | 16 +++---
 .../expander/files/expander-2.05-clang15.patch     | 60 ++++++++++++++++++++++
 ...0.5-gentoo.patch => expander-2.05-gentoo.patch} |  0
 3 files changed, 69 insertions(+), 7 deletions(-)