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

Bug 920107

Summary: net-analyzer/httping-2.9 - http.c: error: implicit declaration of function malloc [-Wimplicit-function-declaration]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.xz
net-analyzer:httping-2.9:20231215-232349.log
qlist-info.txt
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-12-16 10:43:42 UTC
too long lines were shrinked:

make -j4 CC=x86_64-pc-linux-gnu-gcc FW=no DEBUG=no NC=no SSL=no TFO=no 
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wall -W -Wextra -pedantic   -DVERSION=\"2.9\" -DLOCALEDIR=\"/usr/share/locale\" -DNO_SSL   -c -o gen.o gen.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wall -W -Wextra -pedantic   -DVERSION=\"2.9\" -DLOCALEDIR=\"/usr/share/locale\" -DNO_SSL   -c -o http.o http.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wall -W -Wextra -pedantic   -DVERSION=\"2.9\" -DLOCALEDIR=\"/usr/share/locale\" -DNO_SSL   -c -o io.o io.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Wall -W -Wextra -pedantic   -DVERSION=\"2.9\" -DLOCALEDIR=\"/usr/share/locale\" -DNO_SSL   -c -o error.o error.c
http.c: In function get_HTTP_headers:
http.c:21:32: error: implicit declaration of function malloc [-Wimplicit-function-declaration]
   21 |         char *buffer = (char *)malloc(len + 1);
      |                                ^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-20231213-230004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
Python 3.11.6
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

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

  HEAD of ::gentoo
commit ddc9ac0b3aed6fa4a2958c387f72dc9c16233e71
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 15 22:46:47 2023 +0000

    2023-12-15 22:46:47 UTC

emerge -qpvO net-analyzer/httping
[ebuild  N    ] net-analyzer/httping-2.9  USE="-debug -fftw -ncurses -ssl -tfo" L10N="-nl"
Comment 1 Toralf Förster gentoo-dev 2023-12-16 10:43:43 UTC
Created attachment 879562 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-16 10:43:44 UTC
Created attachment 879563 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-16 10:43:45 UTC
Created attachment 879564 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-16 10:43:46 UTC
Created attachment 879565 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-16 10:43:47 UTC
Created attachment 879566 [details]
net-analyzer:httping-2.9:20231215-232349.log
Comment 6 Toralf Förster gentoo-dev 2023-12-16 10:43:48 UTC
Created attachment 879567 [details]
qlist-info.txt
Comment 7 Toralf Förster gentoo-dev 2023-12-16 10:43:49 UTC
Created attachment 879568 [details]
temp.tar.xz
Comment 8 Larry the Git Cow gentoo-dev 2023-12-16 10:52:49 UTC
The bug has been closed via the following commit(s):

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

commit 6a59a245e266dfcb2dff105f96913bfd94e3264d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-16 10:51:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-16 10:51:41 +0000

    net-analyzer/httping: fix modern C issue
    
    Closes: https://bugs.gentoo.org/920107
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/httping/files/httping-2.9-c99.patch   | 35 ++++++++++++++++++++++
 .../{httping-2.9.ebuild => httping-2.9-r1.ebuild}  |  5 ++--
 2 files changed, 38 insertions(+), 2 deletions(-)