Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506260 - dev-libs/libiconv-1.14-r1 / armv7a-hardfloat-linux-gnueabi - In file included from .../work/libiconv-1.14/srclib/progname.c:26:0: ./stdio.h:1010:1: ошибка: «gets» undeclared here (not in a function)
Summary: dev-libs/libiconv-1.14-r1 / armv7a-hardfloat-linux-gnueabi - In file included...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: ARM Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-30 17:33 UTC by Alexey Edelev
Modified: 2020-12-14 20:46 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,87.91 KB, text/plain)
2014-03-30 17:33 UTC, Alexey Edelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Edelev 2014-03-30 17:33:47 UTC
Created attachment 373906 [details]
build.log

I'm using crossdev build environment for arm hardfloat and trying to build gsteamer.
While build libiconv as dependence of glib I got next error:
In file included from /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/libiconv-1.14-r1/work/libiconv-1.14/srclib/progname.c:26:0:
./stdio.h:1010:1: ошибка: «gets» undeclared here (not in a function)

On host system libiconv is masked and glib doesn't depend on it. So how to solve this problem? I found that gets is deprecated API so looks like iconv is still using it.


ARCH="arm" armv7a-hardfloat-linux-gnueabi-emerge --info =dev-libs/libiconv-1.14-r1::gentoo output:

Portage 2.2.8-r1 (embedded, gcc-4.7.3, unavailable, 3.10.25-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8137416 total,   5623436 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 26 Mar 2014 12:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
Repositories: gentoo qt cubieboard-overlay
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -mfloat-abi=hard -mfpu=neon -mcpu=cortex-a8 -mtune=cortex-a8 -funroll-loops -fomit-frame-pointer"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -pipe -mfloat-abi=hard -mfpu=neon -mcpu=cortex-a8 -mtune=cortex-a8 -funroll-loops -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
FCFLAGS="-Os -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-Os -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/usr/armv7a-hardfloat-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/armv7a-hardfloat-linux-gnueabi/"
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"
PORTAGE_TMPDIR="/usr/armv7a-hardfloat-linux-gnueabi/tmp/"
PORTDIR="/home/portage"
PORTDIR_OVERLAY="/var/lib/layman/qt /home/portage-overlays/gentoo-cubieboard-overlay"
USE="arm bindist embedded kdrive make-symlinks mdev multicall zlib" INPUT_DEVICES="evdev mouse keyboard tslib" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

ARCH="arm" armv7a-hardfloat-linux-gnueabi-emerge -pqv '=dev-libs/libiconv-1.14-r1::gentoo' output:
[ebuild  N    ] dev-libs/libiconv-1.14-r1 to /usr/armv7a-hardfloat-linux-gnueabi/ USE="static-libs"

Build log is in attachment.

Regards, Alexey.
Comment 1 Alexey Edelev 2014-03-30 17:46:02 UTC
Locks like adding elibc_glibc to make.conf solve the problem
Comment 2 Fabian Groffen gentoo-dev 2020-12-14 20:46:42 UTC
We cannot support crossdev in Prefix.