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

Bug 919188

Summary: dev-libs/libg15render-3.0.4 - pixel.c: error: implicit declaration of function read [-Wimplicit-function-declaration]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: jy6x2b32pie9
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.com/menelkir/libg15render/-/issues/3
https://github.com/gentoo/gentoo/pull/36450
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-libs:libg15render-3.0.4:20231204-184458.log
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-12-04 19:01:32 UTC
text.c: In function 'g15r_renderString':
text.c:82:30: warning: comparison between pointer and integer
   82 |         for (i; stringOut[i] != NULL; ++i){
      |                              ^~
pixel.c: In function 'g15r_loadWbmpToBuf':
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -O3 -pipe -march=native -fno-diagnostics-color  -O3 -pipe -march=native -fno-diagnostics-color -c -o font_7x5.lo font_7x5.c
pixel.c:388:16: error: implicit declaration of function 'read' [-Wimplicit-function-declaration]
  388 |         retval=read(wbmp_fd,headerbytes,5);
      |                ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-20231123-161100

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0
  [2]   rust-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit b2381aadcc40dfc178220622139d5660232069a8
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 4 17:01:54 2023 +0000

    2023-12-04 17:01:54 UTC

emerge -qpvO dev-libs/libg15render
[ebuild  N    ] dev-libs/libg15render-3.0.4  USE="-truetype"
Comment 1 Toralf Förster gentoo-dev 2023-12-04 19:01:33 UTC
Created attachment 876825 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-04 19:01:34 UTC
Created attachment 876826 [details]
dev-libs:libg15render-3.0.4:20231204-184458.log
Comment 3 Toralf Förster gentoo-dev 2023-12-04 19:01:35 UTC
Created attachment 876827 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-12-04 19:01:36 UTC
Created attachment 876828 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-04 19:01:37 UTC
Created attachment 876829 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-04 19:01:38 UTC
Created attachment 876830 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-04 19:01:39 UTC
Created attachment 876831 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-04 19:01:40 UTC
Created attachment 876832 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-04 19:01:41 UTC
Created attachment 876833 [details]
temp.tar.xz
Comment 10 NHO 2024-04-26 10:03:31 UTC
Upstream issue: https://gitlab.com/menelkir/libg15render/-/issues/3
Comment 12 Larry the Git Cow gentoo-dev 2024-05-06 06:10:18 UTC
The bug has been closed via the following commit(s):

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

commit 689e472bea793c0d9cef4f6c9a3394562a0ef4d7
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2024-04-27 07:10:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-06 06:08:43 +0000

    dev-libs/libg15render: C99: Add missing include
    
    Closes: https://bugs.gentoo.org/870820
    Closes: https://bugs.gentoo.org/919188
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/36450
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libg15render-3.0.4-missing-include.patch | 10 ++++
 dev-libs/libg15render/libg15render-3.0.4-r1.ebuild | 53 ++++++++++++++++++++++
 dev-libs/libg15render/metadata.xml                 |  1 +
 3 files changed, 64 insertions(+)