Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191460 - bc-1.06-r6 has implicit declarations of memset, memcpy and strlen
Summary: bc-1.06-r6 has implicit declarations of memset, memcpy and strlen
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-06 03:19 UTC by Andrew Ross (RETIRED)
Modified: 2007-09-06 04:39 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Ross (RETIRED) gentoo-dev 2007-09-06 03:19:45 UTC
sys-devel/bc-1.06-r6 fails with FEATURES=stricter, due to implicit declarations of memset, memcpy and strlen in lib/number.c:

number.c: In function `bc_new_num':
number.c:76: warning: implicit declaration of function `memset'
number.c: In function `_one_mult':number.c:905: warning: implicit declaration of function `memcpy'
number.c: In function `bc_out_long':number.c:1442: warning: implicit declaration of function `strlen'

These functions are all declared in <string.h>, so the problem appears to be nothing more than a missing "#include <string.h>", which can be fixed with something like the following in src_unpack():

sed -i -e '/#include <stdio.h>/ a\#include <string.h>' lib/number.c


Portage 2.1.2.12 (hardened/amd64, gcc-3.4.6, glibc-2.5-r4, 2.6.20-hardened-r6 x86_64)=================================================================System uname: 2.6.20-hardened-r6 x86_64 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHzGentoo Base System release 1.12.9Timestamp of tree: Thu, 06 Sep 2007 02:20:01 +0000app-shells/bash:     3.2_p17dev-lang/python:     2.4.4-r4dev-python/pycrypto: 2.0.1-r6sys-apps/baselayout: 1.12.9-r2sys-apps/sandbox:    1.2.17sys-devel/autoconf:  2.13, 2.61sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10sys-devel/binutils:  2.17sys-devel/gcc-config: 1.3.16sys-devel/libtool:   1.5.23bvirtual/os-headers:  2.6.21ACCEPT_KEYWORDS="amd64"CBUILD="x86_64-pc-linux-gnu"CFLAGS="-O2 -pipe -ggdb"CHOST="x86_64-pc-linux-gnu"CONFIG_PROTECT="/etc"CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"CXXFLAGS="-O2 -pipe -ggdb"DISTDIR="/usr/portage/distfiles"FEATURES="collision-protect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict stricter test userfetch userpriv usersandbox"GENTOO_MIRRORS="http://ftp.swin.ed.au/gento http://mirror.aarnet.edu.au/pub/gentoo http://mirror.pacific.net.au/linux/Gentoo http://mirror.isp.net.au/ftp/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"LANG="en_AU.UTF8"MAKEOPTS="-j3"PKGDIR="/usr/portage/packages"PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"PORTAGE_TMPDIR="/var/tmp"PORTDIR="/usr/portage"PORTDIR_OVERLAY="/usr/local/portage/layman/pythonhead /usr/local/portage/aross"SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"USE="acl amd64 apache2 bash-completion berkdb bzip2 caps cracklib crypt cups fam hardened jpeg jpeg2k justify midi ncurses nls nptl nptlonly pam pic png ppds python readline snmp ssl symlink test tiff unicode urandom vhosts xattr xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2007-09-06 04:39:31 UTC
... which i already got fixed in newer versions