Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471460 - =x11-misc/piedock-1.6.2[gtk,-kde] - Png.cpp: In static member function 'static PieDock::ArgbSurface* PieDock::Png::load(std::istream&)': Png.cpp:91:27: error: 'memcpy' was not declared in this scope
Summary: =x11-misc/piedock-1.6.2[gtk,-kde] - Png.cpp: In static member function 'stati...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libpng16
  Show dependency tree
 
Reported: 2013-05-27 18:07 UTC by F. Delente
Modified: 2013-07-20 17:49 UTC (History)
0 users

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


Attachments
Build log for piedock-1.6.1 (build.log,20.42 KB, text/x-log)
2013-05-31 18:58 UTC, F. Delente
Details
piedock-1.6.2.ebuild.patch (piedock-1.6.2.ebuild.patch,894 bytes, patch)
2013-06-03 06:34 UTC, Samuli Suominen (RETIRED)
Details | Diff
x11-misc:piedock-1.6.1:20121108-163951.log.gz (20121108-163951.log.gz,4.16 KB, application/x-gzip)
2013-06-03 11:49 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description F. Delente 2013-05-27 18:07:59 UTC
When emerging piedock, I get

Png.cpp: In static member function 'static PieDock::ArgbSurface* PieDock::Png::load(std::istream&)':
Png.cpp:91:27: error: 'memcpy' was not declared in this scope
make[1]: *** [Png.o] Error 1
make[1]: *** Waiting for unfinished jobs....
IconMap.cpp: In member function 'virtual PieDock::Icon* PieDock::IconMap::getFillerIcon()':
IconMap.cpp:968:30: error: 'memset' was not declared in this scope
make[1]: *** [IconMap.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-misc/piedock-1.6.1/work/piedock-1.6.1/src'
make: *** [all-recursive] Error 1
Comment 1 F. Delente 2013-05-27 18:11:41 UTC
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.9.2-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.9.2-gentoo-x86_64-Intel-R-_Core-TM-_i3-3217U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     3930356 total,    780208 free
KiB Swap:    4666844 total,   4664948 free
Timestamp of tree: Mon, 27 May 2013 12:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0::java
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8::pentoo
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.2
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo sabayon java pentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.imj.fr/pub/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.modulix.net/gentoo/ ftp://mirror.ovh.net/gentoo-distfiles/ http://mirror.ovh.net/gentoo-distfiles/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sabayon /var/lib/layman/java /var/lib/layman/pentoo"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify loc mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd thunar tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

# emerge -pqv '=x11-misc/piedock-1.6.1' 
[ebuild  N    ] x11-misc/piedock-1.6.1  USE="gtk -kde"
Comment 2 F. Delente 2013-05-27 18:12:30 UTC
# cat /var/tmp/portage/x11-misc/piedock-1.6.1/temp/build.log 
 * Package:    x11-misc/piedock-1.6.1
 * Repository: gentoo
 * Maintainer: desktop-misc@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking piedock-1.6.1.tar.bz2 to /var/tmp/portage/x11-misc/piedock-1.6.1/work
>>> Source unpacked in /var/tmp/portage/x11-misc/piedock-1.6.1/work
>>> Preparing source in /var/tmp/portage/x11-misc/piedock-1.6.1/work/piedock-1.6.1 ...
 * Applying piedock-1.6.1-signals.patch ...                                                [ ok ]
 * Applying piedock-1.6.1-gcc47.patch ...                                                  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-misc/piedock-1.6.1/work/piedock-1.6.1 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --disable-gtk --disable-kde --bindir=/usr/bin --enable-xft --enable-xmu --enable-xrender
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for XOpenDisplay in -lX11... yes
checking for png_create_read_struct in -lpng... yes
checking for deflate in -lz... yes
checking whether to have Xft support... yes
checking for XftFontOpen in -lXft... yes
checking for FT_Init_FreeType in -lfreetype... yes
checking for freetype-config... /usr/bin/freetype-config
checking whether to have Xrender support... yes
checking for XRenderCreatePicture in -lXrender... yes
checking whether to have libXmu... yes
checking for XmuClientWindow in -lXmu... yes
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for X... libraries , headers 
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for inline... inline
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for bzero... yes
checking for floor... yes
checking for memset... yes
checking for pow... yes
checking for select... yes
checking for socket... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes

PieDock version 1.6.1 configured successfully.

Using '/usr' for installation.
Using 'x86_64-pc-linux-gnu-g++' for C++ compiler.
Building with '-O2 -pipe -march=core2 -I/usr/include/freetype2' for C++ compiler flags.
Building with '-lz -lpng -lX11  -lXft -lfreetype -lfreetype -lXrender -lXmu' for linker flags.

configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating utils/Makefile
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-misc/piedock-1.6.1/work/piedock-1.6.1 ...
make -j3 
Making all in src
make[1]: Entering directory `/var/tmp/portage/x11-misc/piedock-1.6.1/work/piedock-1.6.1/src'
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o Surface.o Surface.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o ArgbSurface.o ArgbSurface.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o ArgbSurfaceSizeMap.o ArgbSurfaceSizeMap.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o XSurface.o XSurface.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o Png.o Png.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o Blender.o Blender.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o Resampler.o Resampler.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o WildcardCompare.o WildcardCompare.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o IconMap.o IconMap.cpp
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.1\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -c -o ActiveIndicator.o ActiveIndicator.cpp
Png.cpp: In static member function 'static PieDock::ArgbSurface* PieDock::Png::load(std::istream&)':
Png.cpp:91:27: error: 'memcpy' was not declared in this scope
make[1]: *** [Png.o] Error 1
make[1]: *** Waiting for unfinished jobs....
IconMap.cpp: In member function 'virtual PieDock::Icon* PieDock::IconMap::getFillerIcon()':
IconMap.cpp:968:30: error: 'memset' was not declared in this scope
make[1]: *** [IconMap.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-misc/piedock-1.6.1/work/piedock-1.6.1/src'
make: *** [all-recursive] Error 1
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-27 18:51:44 UTC
Please attach the entire build log to this bug report.
Comment 4 Rafał Mużyło 2013-05-28 06:34:07 UTC
Just a guess, but quite likely it's due to libpng 1.6 headers no longer including string.h.
The fix is obvious.
Comment 5 F. Delente 2013-05-31 18:58:27 UTC
Created attachment 349754 [details]
Build log for piedock-1.6.1
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2013-06-01 15:29:34 UTC
+  01 Jun 2013; Samuli Suominen <ssuominen@gentoo.org> piedock-1.6.1.ebuild,
+  +files/piedock-1.6.1-mem.patch:
+  Fix building with libpng16 which doesn't implicitly pull in string.h through
+  png.h anymore wrt #471460 by F. Delente
Comment 7 Markus Fisch 2013-06-02 16:31:05 UTC
Patch applied, latest version is now piedock-1.6.2 which is here:

http://markusfisch.de/downloads/piedock-1.6.2.tar.bz2

Should I file a new bug to update the ebuild?
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2013-06-03 06:29:33 UTC
(In reply to Markus Fisch from comment #7)
> Patch applied, latest version is now piedock-1.6.2 which is here:
> 
> http://markusfisch.de/downloads/piedock-1.6.2.tar.bz2
> 
> Should I file a new bug to update the ebuild?

It seems <string> was included instead of <string.h> which doesn't work,

make[1]: *** [Png.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from WindowStack.cpp:15:0:
WindowManager.h: In constructor ‘PieDock::WindowManager::Property<T>::Property(Display*, Window, Atom, const char*)’:
WindowManager.h:86:22: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 [enabled by default]
       Property( d, w ) { fetch( type, name ); }
                      ^
IconMap.cpp: In member function ‘virtual PieDock::Icon* PieDock::IconMap::getFillerIcon()’:
IconMap.cpp:969:30: error: ‘memset’ was not declared in this scope
     fillerSurface->getSize() );
                              ^
make[1]: *** [IconMap.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-misc/piedock-1.6.2/work/piedock-1.6.2/src'
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2013-06-03 06:34:50 UTC
Created attachment 349956 [details, diff]
piedock-1.6.2.ebuild.patch

I've dropped -signals.patch, need to verify with Jer where this is coming from,

--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 
 #ifdef HAVE_GTK
+#undef signals // Collides with GTK symbols
 #include <gtk/gtk.h>
 #endif

but it doesn't fail here with latest GTK+'s on x86_64 so dunno.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-03 11:49:28 UTC
Created attachment 349970 [details]
x11-misc:piedock-1.6.1:20121108-163951.log.gz

This is the build log from when I did the bump.

(In reply to Samuli Suominen from comment #9)
> Created attachment 349956 [details, diff] [details, diff]
> piedock-1.6.2.ebuild.patch
> 
> I've dropped -signals.patch, need to verify with Jer where this is coming
> from,

Bug #422597 I guess.

Oh, and I just bumped to 1.6.2 /with/ the signals patch...
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-03 11:53:17 UTC
Reproduced it with USE="gtk kde" and without the signals patch. Apparently you didn't test that case.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2013-06-03 12:53:49 UTC
Heh, then you didn't test USE="gtk -kde" ;-)

1.6.2 fails exactly like in Comment #0 with the dropped -1.6.1-mem.patch which is still required. need to use #include <string.h> instead of #include <string> (to get C funcs memset, memcpy instead of C++, I'd assume)
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-03 14:23:18 UTC
I didn't test with libpng-1.6, but I did successfully test all four combinations of IUSE="gtk kde".
Comment 14 F. Delente 2013-06-06 15:31:14 UTC
I don't get it, I have tested the emerge again, it fails with the same error:

x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"PieDock\" -DVERSION=\"1.6.2\" -DHAVE_LIBX11=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_XFT=1 -DHAVE_XRENDER=1 -DHAVE_XMU=1 -DHAVE_GTK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -I.     -O2 -pipe -march=core2 -I/usr/include/freetype2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -c -o ActiveIndicator.o ActiveIndicator.cpp
Png.cpp: In static member function 'static PieDock::ArgbSurface* PieDock::Png::load(std::istream&)':
Png.cpp:92:27: error: 'memcpy' was not declared in this scope
make[1]: *** [Png.o] Error 1
make[1]: *** Waiting for unfinished jobs....
IconMap.cpp: In member function 'virtual PieDock::Icon* PieDock::IconMap::getFillerIcon()':
IconMap.cpp:969:30: error: 'memset' was not declared in this scope
make[1]: *** [IconMap.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-misc/piedock-1.6.2/work/piedock-1.6.2/src'
make: *** [all-recursive] Error 1

I have libpng 1.6.2 installed, and no libpng 1.5.

Thanks for the work anyway!
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-06 15:48:34 UTC
(In reply to Samuli Suominen from comment #8)
> It seems <string> was included instead of <string.h> which doesn't work,

Fixed in CVS.
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2013-07-20 17:49:03 UTC
(In reply to Jeroen Roovers from comment #15)
> (In reply to Samuli Suominen from comment #8)
> > It seems <string> was included instead of <string.h> which doesn't work,
> 
> Fixed in CVS.

yep, upstream release of 1.6.2 is messed up, but it's fixed in portage