Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870526 - app-misc/dvtm-0.15-r5:0 - dvtm.c: error: call to undeclared function addnwstr; ISO C99 and later
Summary: app-misc/dvtm-0.15-r5:0 - dvtm.c: error: call to undeclared function addnwstr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-16 19:38 UTC by Toralf Förster
Modified: 2022-12-21 10:13 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.29 KB, text/plain)
2022-09-16 19:38 UTC, Toralf Förster
Details
app-misc:dvtm-0.15-r5:20220916-193555.log (app-misc:dvtm-0.15-r5:20220916-193555.log,2.58 KB, text/plain)
2022-09-16 19:38 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,64.37 KB, application/x-bzip)
2022-09-16 19:38 UTC, Toralf Förster
Details
environment (environment,63.09 KB, text/plain)
2022-09-16 19:38 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,39.49 KB, application/x-bzip)
2022-09-16 19:38 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,16.78 KB, application/x-bzip)
2022-09-16 19:38 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-16 19:38:09 UTC
CC dvtm.c
clang -c -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -std=c99 -I. -DVERSION=\"0.15\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED dvtm.c
CC vt.c
clang -c -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -std=c99 -I. -DVERSION=\"0.15\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED vt.c
dvtm.c:367:4: error: call to undeclared function 'addnwstr'; 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_plasma-j4-20220912-150005

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-10.3.1
 [3] 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 Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.5_p5 [openjdk-17]
2)	OpenJDK 8.345_p01 [openjdk-8]
3)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
5)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
6)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-17 
  [3]   openjdk-bin-8 
  [4]   openjdk-bin-11 
  [5]   openjdk-bin-17  system-vm
  [6]   openjdk-jre-bin-17 

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

  HEAD of ::gentoo
commit d8d49f4cf12aa96f03fbc556ff662b6858780559
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Sep 16 19:01:52 2022 +0000

    2022-09-16 19:01:51 UTC

emerge -qpvO app-misc/dvtm
[ebuild  N    ] app-misc/dvtm-0.15-r5  USE="-savedconfig"
Comment 1 Toralf Förster gentoo-dev 2022-09-16 19:38:10 UTC
Created attachment 806419 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-16 19:38:10 UTC
Created attachment 806422 [details]
app-misc:dvtm-0.15-r5:20220916-193555.log
Comment 3 Toralf Förster gentoo-dev 2022-09-16 19:38:12 UTC
Created attachment 806425 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-09-16 19:38:13 UTC
Created attachment 806428 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-16 19:38:14 UTC
Created attachment 806431 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-16 19:38:15 UTC
Created attachment 806434 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-10-07 11:28:48 UTC
The bug has been closed via the following commit(s):

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

commit 85ae38056b4c42f99e76210d844cf994cca7bd5a
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-10-06 15:06:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-07 11:28:14 +0000

    app-misc/dvtm: fix implicit function declaration issue
    
    This commit patches the gentoo patch in such a way that compiler will
    search for curses.h in ncrusesw directory where addnwstr function is
    located.
    
    Closes: https://bugs.gentoo.org/870526
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/dvtm/files/dvtm-0.15-gentoo.patch | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit a3802cca42a3caed4985a42abf9d6b1087bd82cd
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-10-06 14:48:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-07 11:28:13 +0000

    app-misc/dvtm: sync live
    
    - EAPI bump to 8
    - sync keywords with 0.15-r5
    - sync stop-installing-terminfo patch with upstream
    - modification of 9999-gentoo.patch which fixes bug 870526 because
      addnwstr function is defined in ncursesw.
    
    Bug: https://bugs.gentoo.org/870526
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/dvtm/dvtm-9999.ebuild                               |  6 +++---
 app-misc/dvtm/files/dvtm-9999-gentoo.patch                   |  3 ++-
 app-misc/dvtm/files/dvtm-9999-stop-installing-terminfo.patch | 11 +++++++++++
 3 files changed, 16 insertions(+), 4 deletions(-)