Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920107 - net-analyzer/httping-2.9 - http.c: error: implicit declaration of function malloc [-Wimplicit-function-declaration]
Summary: net-analyzer/httping-2.9 - http.c: error: implicit declaration of function ma...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-16 10:43 UTC by Toralf Förster
Modified: 2023-12-16 10:52 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.51 KB, text/plain)
2023-12-16 10:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,44.27 KB, text/plain)
2023-12-16 10:43 UTC, Toralf Förster
Details
environment (environment,76.02 KB, text/plain)
2023-12-16 10:43 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.35 KB, application/x-xz)
2023-12-16 10:43 UTC, Toralf Förster
Details
net-analyzer:httping-2.9:20231215-232349.log (net-analyzer:httping-2.9:20231215-232349.log,5.16 KB, text/plain)
2023-12-16 10:43 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,61.72 KB, text/plain)
2023-12-16 10:43 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,18.64 KB, application/x-xz)
2023-12-16 10:43 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 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(-)