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

Bug 639654

Summary: net-vpn/strongswan-5.6.0-r1 - In file included from library.c:17: utils/utils/memory.h: In function 'memwipe_inline': utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
Product: Gentoo Linux Reporter: Conrad Kostecki <conikost>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: dan, gentoo, gurligebis, james05+gentoo, marcan
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/6830
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Upstream patch (by Tobia Brunner)

Description Conrad Kostecki gentoo-dev 2017-12-03 17:36:31 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan -DIPSEC_DIR=\"/usr/libexec/ipsec\" -DIPSEC_LIB_DIR=\"/usr/lib64/ipsec\" -DPLUGINDIR=\"/usr/lib64/ipsec/plugins\" -DSTRONGSWAN_CONF=\"/etc/strongswan.conf\" -march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -include /var/tmp/portage/net-vpn/strongswan-5.6.0-r1/work/strongswan-5.6.0/config.h -c asn1/asn1.c  -fPIC -DPIC -o asn1/.libs/asn1.o
In file included from utils/utils.h:55:0,
                 from library.h:101,
                 from library.c:17:
utils/utils/memory.h: In function 'memwipe_inline':
utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: library.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from ./utils/utils.h:55:0,
                 from ./library.h:101,
                 from crypto/diffie_hellman.h:30,
                 from crypto/diffie_hellman.c:18:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: crypto/diffie_hellman.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./library.h:101,
                 from crypto/crypto_factory.h:27,
                 from crypto/crypto_factory.c:18:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: crypto/crypto_factory.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./library.h:101,
                 from crypto/aead.h:29,
                 from crypto/aead.c:19:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: crypto/aead.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./crypto/transform.h:26,
                 from crypto/transform.c:16:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: crypto/transform.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./collections/enumerator.h:27,
                 from credentials/auth_cfg.h:25,
                 from credentials/auth_cfg.c:18:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: credentials/auth_cfg.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./library.h:101,
                 from ./crypto/crypto_factory.h:27,
                 from crypto/crypto_tester.h:26,
                 from crypto/crypto_tester.c:23:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: crypto/crypto_tester.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./utils/chunk.h:33,
                 from ./utils/identification.h:32,
                 from credentials/credential_manager.h:28,
                 from credentials/credential_manager.c:17:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: credentials/credential_manager.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from asn1/oid.h:8,
                 from asn1/oid.c:10:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: asn1/oid.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./library.h:101,
                 from networking/streams/stream_service_unix.c:16:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
In file included from ./utils/utils.h:55:0,
                 from ./utils/debug.h:29,
                 from asn1/asn1_parser.c:21:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: networking/streams/stream_service_unix.lo] Error 1
make[5]: *** [Makefile:1934: asn1/asn1_parser.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./library.h:101,
                 from networking/streams/stream_unix.c:16:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: networking/streams/stream_unix.lo] Error 1
In file included from ./utils/utils.h:55:0,
                 from ./utils/debug.h:29,
                 from asn1/asn1.c:22:
./utils/utils/memory.h: In function 'memwipe_inline':
./utils/utils/memory.h:99:15: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
./utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [Makefile:1934: asn1/asn1.lo] Error 1
make[5]: Leaving directory '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/work/strongswan-5.6.0/src/libstrongswan'
make[4]: *** [Makefile:2015: all-recursive] Error 1
make[4]: Leaving directory '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/work/strongswan-5.6.0/src/libstrongswan'
make[3]: *** [Makefile:1160: all] Error 2
make[3]: Leaving directory '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/work/strongswan-5.6.0/src/libstrongswan'
make[2]: *** [Makefile:525: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/work/strongswan-5.6.0/src'
make[1]: *** [Makefile:586: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/work/strongswan-5.6.0'
make: *** [Makefile:495: all] Error 2
 * ERROR: net-vpn/strongswan-5.6.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-vpn/strongswan-5.6.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-vpn/strongswan-5.6.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/work/strongswan-5.6.0'
 * S: '/var/tmp/portage/net-vpn/strongswan-5.6.0-r1/work/strongswan-5.6.0'
Comment 1 Conrad Kostecki gentoo-dev 2017-12-03 17:36:37 UTC
Portage 2.3.16 (python 3.6.3-final-0, default/linux/amd64/17.0, gcc-7.2.0, glibc-2.26-r3, 4.14.0-gentoo x86_64)
=================================================================
System uname: Linux-4.14.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_X_990_@_3.47GHz-with-gentoo-2.4.1
KiB Swap:   25690108 total,  19857928 free
Timestamp of repository gentoo: Sun, 03 Dec 2017 01:45:01 +0000
Head commit of repository gentoo: 4aae72be00074f5c93687d4ae16d142f4a28663b
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc[3485] (dcc_mkdir) ERROR: mkdir '/var/tmp/portage/.distcc//state' failed: No such file or directory [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

bl4ckb0x
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/system/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j13 -l12"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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"
USE="X aalib acl alsa amd64 avahi bcmath berkdb bzip2 cairo caps cddb cdinstall cjk cracklib crypt ctype curl cvs cxx dbus dedicated dga djvu encode exif fbcon ffmpeg fftw flac flite fontconfig ftp gd gif git gmp gnutls gpm graphviz gsm gstreamer iconv icu idn imagemagick imlib inotify introspection ipv6 java javascript jbig jit joystick jpeg jpeg2k lcms ldap libcaca libnotify libsamplerate lm_sensors lzma lzo maildir mbox mhash mikmod mmap mng modplug mp3 mysql mysqli ncurses nls nntp nptl nsplugin offensive ogg openal opencl openexr opengl openmp orc oss pam pcre pdf perl png posix postproc postscript pulseaudio python qt4 qt5 raw readline rtmp samba sdl session simplexml slang sndfile sockets sound speex spell sqlite ssl subversion suid svg symlink syslog tcpd theora threads tiff timidity truetype udev unicode upnp usb v4l vaapi vcd vdpau vhosts vim-syntax vnc vorbis wavpack webkit webp wmf x264 xattr xcb xface xml xmlrpc xmp xmpp xpm xscreensaver xv xvid zeroconf zlib zsh-completion" ABI_X86="32 64" COLLECTD_PLUGINS="cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec filecount hddtemp hugepages interface ipc iptables irq java load memory mysql netlink nfs nginx numa openvpn ping postgresql processes protocols rrdcached sensors serial smart swap syslog tcpconns thermal turbostat unixsock uptime users" CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LINGUAS="de de_DE" LLVM_TARGETS="AMDGPU" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset fancyindex fastcgi geo geoip gunzip gzip headers_more limit_conn proxy realip referer rewrite sticky stub_status upstream_keepalive" NGINX_MODULES_STREAM="access geo geoip limit_conn realip return ssl_preread" PHP_TARGETS="php7-1" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon"
Unset:  CC, CPPFLAGS, CTARGET, CXX
Comment 2 James Chew 2017-12-04 13:25:15 UTC
Upstream Bug#2425

https://wiki.strongswan.org/issues/2425
Comment 3 James Chew 2017-12-04 16:28:26 UTC
Created attachment 508034 [details, diff]
Upstream patch (by Tobia Brunner)
Comment 4 Conrad Kostecki gentoo-dev 2017-12-16 21:00:25 UTC
(In reply to James Chew from comment #3)
> Created attachment 508034 [details, diff] [details, diff]
> Upstream patch (by Tobia Brunner)

Thanks! Did worked for me.
Comment 5 Dan Molik 2018-01-02 20:27:39 UTC
upstream has been release, please update the ebuild to the latest point release.
Comment 6 Conrad Kostecki gentoo-dev 2018-07-12 15:09:23 UTC
Closing, since 5.6.2 is in tree and this got fixed by that release.