Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924395 - sys-auth/oath-toolkit-2.6.9 fails to compile: container.c:160:9: error: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
Summary: sys-auth/oath-toolkit-2.6.9 fails to compile: container.c:160:9: error: impli...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-02-13 03:22 UTC by Kacper Słomiński
Modified: 2024-02-13 20:43 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,274.31 KB, text/x-log)
2024-02-13 03:22 UTC, Kacper Słomiński
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kacper Słomiński 2024-02-13 03:22:34 UTC
Created attachment 884823 [details]
build.log

A bunch of files are missing includes, e.g.:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DPSKC_BUILDING -I./gl -I./gl -I./include -I./include -DPSKC_SCHEMA_CATALOG=\"/usr/share/xml/pskc/catalog-pskc.xml\" -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_FTP=1 -DXMLSEC_NO_HTTP=1 -DXMLSEC_NO_MD5=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -fvisibility=hidden -O3 -march=znver2 -pipe -ggdb3 -c parser.c  -fPIC -DPIC -o .libs/parser.o
parser.c:156:15: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
  156 |   char *out = malloc (len + 1);
      |               ^~~~~~
parser.c:32:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
   31 | #include "base64.h"
  +++ |+#include <stdlib.h>
   32 | 


emerge -pqv '=sys-auth/oath-toolkit-2.6.9::gentoo':

[ebuild   R   ] sys-auth/oath-toolkit-2.6.9  USE="pam -static-libs -test" 


emerge --info '=sys-auth/oath-toolkit-2.6.9::gentoo':

Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-14, glibc-2.38-r10, 6.6.13-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.13-gentoo-dist-x86_64-AMD_Ryzen_5_4500U_with_Radeon_Graphics-with-glibc2.38
KiB Mem:    15449016 total,   3603968 free
KiB Swap:   16777212 total,  10269856 free
Timestamp of repository gentoo: Tue, 13 Feb 2024 01:34:04 +0000
Head commit of repository gentoo: 7bc3655ba49cc6bb51cf3d5f114ea7e0243226df

Timestamp of repository kde: Mon, 12 Feb 2024 16:35:54 +0000
Head commit of repository kde: 450655cf7c03859c89fcf1ce0af81ea096d6c25f

Timestamp of repository steam-overlay: Mon, 12 Feb 2024 16:35:44 +0000
Head commit of repository steam-overlay: d984553a1549c63a93d840bd1ecbadbe54a582a8

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.3::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             12.3.1_p20240112::gentoo, 13.2.1_p20240113-r1::gentoo, 14.0.9999::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    priority: 10
    volatile: False

Binary Repositories:

binhost
    priority: 9999
    sync-uri: rsync://ftp.vectranet.pl/gentoo/releases/amd64/binpackages/17.1/x86-64-v3

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=znver2 -pipe -ggdb3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -march=znver2 -pipe -ggdb3 -D_GLIBCXX_ASSERTIONS"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O3 -march=znver2 -pipe -ggdb3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -march=znver2 -pipe -ggdb3"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="--jobs 6 --load-average 7"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities amd64 bindist bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dist-kernel dri dts dvd dvdr encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kf6compat kwallet lcms libnotify libtirpc lvm mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

sys-auth/oath-toolkit-2.6.9::gentoo was built with the following:
USE="pam -static-libs -test" ABI_X86="(64)"
CXXFLAGS="-O3 -march=znver2 -pipe -ggdb3"
FEATURES="userpriv unmerge-logs binpkg-dostrip usersandbox pid-sandbox userfetch sandbox unknown-features-warn config-protect-if-modified sfperms buildpkg-live usersync assume-digests news fixlafiles ipc-sandbox preserve-libs network-sandbox unmerge-orphans qa-unresolved-soname-deps parallel-fetch binpkg-logs multilib-strict xattr splitdebug strict binpkg-multi-instance merge-sync protect-owned binpkg-docompress ebuild-locks compressdebug installsources distlocks
Comment 1 Larry the Git Cow gentoo-dev 2024-02-13 20:43:15 UTC
The bug has been closed via the following commit(s):

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

commit fbc1f31bc03c190eb69994887903d4c8d313a8f4
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-02-13 20:37:16 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-02-13 20:37:16 +0000

    sys-auth/oath-toolkit: Add patch to avoid implicit definitions
    
    Closes: https://bugs.gentoo.org/924395
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 ...build-failure-noticed-on-ArchLinux-xmlsec.patch | 40 ++++++++++++++++++++++
 sys-auth/oath-toolkit/oath-toolkit-2.6.9.ebuild    |  4 +++
 2 files changed, 44 insertions(+)