Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875158 - app-text/xournal-0.4.8.2016 - ttcr.c: error: implicit declaration of function write
Summary: app-text/xournal-0.4.8.2016 - ttcr.c: error: implicit declaration of function...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-04 18:04 UTC by Toralf Förster
Modified: 2022-12-07 13:59 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.62 KB, text/plain)
2022-10-04 18:04 UTC, Toralf Förster
Details
app-text:xournal-0.4.8.2016:20221004-180154.log (app-text:xournal-0.4.8.2016:20221004-180154.log,11.11 KB, text/plain)
2022-10-04 18:04 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,54.64 KB, application/x-bzip)
2022-10-04 18:04 UTC, Toralf Förster
Details
environment (environment,120.66 KB, text/plain)
2022-10-04 18:04 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.89 KB, application/x-bzip)
2022-10-04 18:04 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.21 KB, application/x-bzip)
2022-10-04 18:04 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.91 KB, application/x-bzip)
2022-10-04 18:04 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-10-04 18:04:01 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/
ttcr.c: In function StreamToFile:
ttcr.c:420:9: error: implicit declaration of function write; did you mean fwrite? [-Werror=implicit-function-declaration]
  420 |     if (write(fd, ptr, length) != length) {
      |         ^~~~~

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

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

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

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

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

  HEAD of ::gentoo
commit 7ef2c1a1677d5ca35d20647fa4a3a7021dccdf6d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 17:17:57 2022 +0000

    2022-10-04 17:17:57 UTC

emerge -qpvO app-text/xournal
[ebuild  N    ] app-text/xournal-0.4.8.2016  USE="pdf -vanilla"
Comment 1 Toralf Förster gentoo-dev 2022-10-04 18:04:02 UTC
Created attachment 820264 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 18:04:03 UTC
Created attachment 820267 [details]
app-text:xournal-0.4.8.2016:20221004-180154.log
Comment 3 Toralf Förster gentoo-dev 2022-10-04 18:04:05 UTC
Created attachment 820270 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-10-04 18:04:06 UTC
Created attachment 820273 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-04 18:04:08 UTC
Created attachment 820276 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 18:04:09 UTC
Created attachment 820279 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-04 18:04:10 UTC
Created attachment 820282 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-12-07 13:59:48 UTC
The bug has been closed via the following commit(s):

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

commit a12f841e72dc76f99c8e7f13977d2ad09cd5b548
Author:     Ian Jordan <immoloism@gmail.com>
AuthorDate: 2022-12-07 13:19:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-07 13:58:43 +0000

    app-text/xournal: clang16 fix
    
    Upstream patch to fix compiling under clang16. Not required for the 9999 build.
    
    Closes: https://bugs.gentoo.org/875158
    Co-authored-by: Denis Auroux <auroux@users.sourceforge.net>
    Signed-off-by: Ian Jordan <immoloism@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/28585
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/xournal/files/xournal-0.4.8-c99-fix.patch | 89 ++++++++++++++++++++++
 app-text/xournal/xournal-0.4.8.2016-r1.ebuild      | 63 +++++++++++++++
 2 files changed, 152 insertions(+)

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

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

commit 48a522381cf0f031d4b3b7cdc766ab2d85260265
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-07 13:58:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-07 13:58:55 +0000

    app-text/xournal: EAPI 8
    
    Bug: https://bugs.gentoo.org/875158
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/xournal/xournal-0.4.8.2016-r1.ebuild | 19 +++++++++---------
 app-text/xournal/xournal-9999.ebuild          | 29 +++++++++++++++++----------
 2 files changed, 27 insertions(+), 21 deletions(-)