# emerge fltk -1 Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) x11-libs/fltk-2.0_pre6786 * fltk-2.0.x-r6786.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking fltk-2.0.x-r6786.tar.bz2 to /var/tmp/portage/x11-libs/fltk-2.0_pre6786/work >>> Source unpacked in /var/tmp/portage/x11-libs/fltk-2.0_pre6786/work >>> Preparing source in /var/tmp/portage/x11-libs/fltk-2.0_pre6786/work/fltk-2.0.x-r6786 ... * Applying fltk2-asneeded.patch ... [ ok ] * Applying fltk2-gcc43.patch ... [ ok ] * Applying fltk2-ldflags.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/x11-libs/fltk-2.0_pre6786/work/fltk-2.0.x-r6786' ... [ ok ] * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ !! ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/x11-libs/fltk-2.0_pre6786/work/fltk-2.0.x-r6786 ... ./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 --enable-shared --enable-threads --disable-debug --enable-xft --enable-gl --disable-cairo --enable-jpeg --enable-png --enable-xinerama --enable-zlib checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o 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 for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes checking for nroff... /usr/bin/nroff checking for htmldoc... no checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking for ar... /usr/bin/ar checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E 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 whether byte ordering is bigendian... no checking size of short... 2 checking size of int... 4 checking size of long... 8 checking whether the compiler recognizes bool as a built-in type... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/stdtypes.h usability... no checking sys/stdtypes.h presence... no checking for sys/stdtypes.h... no checking for scandir... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for snprintf... yes checking for vsnprintf... yes checking for strcasecmp... yes checking for strdup... yes checking for strncasecmp... yes checking for strlcat... no checking for strlcpy... no checking for library containing pow... -lm checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes checking for jpeg_destroy_decompress in -ljpeg... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for gzopen in -lz... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking libpng/png.h usability... no checking libpng/png.h presence... no checking for libpng/png.h... no checking for png_read_rows in -lpng... yes checking for png_get_valid... yes checking for png_set_tRNS_to_alpha... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes configure: WARNING: Ignoring libraries " -lSM -lICE" requested by configure. checking for library containing dlopen... none required checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking for glXMakeCurrent in -lGL... yes checking GL/glu.h usability... yes checking GL/glu.h presence... yes checking for GL/glu.h... yes checking for freetype-config... /usr/bin/freetype-config checking X11/Xft/Xft.h usability... yes checking X11/Xft/Xft.h presence... yes checking for X11/Xft/Xft.h... yes checking for XftDrawCreate in -lXft... yes checking for X11/extensions/Xdbe.h... yes checking for X11/extensions/Xinerama.h... yes checking for X overlay visuals... no checking for Xutf8LookupString in -lX11... yes checking if libsupc++ is required... yes configure: creating ./config.status config.status: creating makeinclude config.status: WARNING: 'makeinclude.in' seems to ignore the --datarootdir setting config.status: creating fltk.list config.status: WARNING: 'fltk.list.in' seems to ignore the --datarootdir setting config.status: creating fltk2-config config.status: creating config.h Libs: -lX11 -lXi -lXinerama -lXft -lpthread -lm -lXext -lsupc++ System image libs: -lpng -lfltk2_images -ljpeg -lz Local image libs: OpenGL libs: -lGLU -lGL Build targets: static shared >>> Source configured. >>> Compiling source in /var/tmp/portage/x11-libs/fltk-2.0_pre6786/work/fltk-2.0.x-r6786 ... make -j1 === making src === Makefile:223: makedepend: Nie ma takiego pliku ani katalogu Compiling add_idle.cxx... Compiling addarc.cxx... Compiling addcurve.cxx... Compiling Adjuster.cxx... Adjuster.cxx: In member function ‘virtual void fltk::Adjuster::draw()’: Adjuster.cxx:83: warning: suggest parentheses around arithmetic in operand of | Compiling AlignGroup.cxx... Compiling AnsiWidget.cxx... Compiling args.cxx... Compiling BarGroup.cxx... Compiling bmpImage.cxx... Compiling Browser.cxx... Browser.cxx: In member function ‘virtual int fltk::Browser::handle(int)’: Browser.cxx:1410: warning: suggest parentheses around && within || Browser.cxx: In member function ‘fltk::Widget* fltk::Browser::goto_index(const int*, unsigned int)’: Browser.cxx:1526: warning: suggest parentheses around && within || Compiling Browser_load.cxx... Compiling Button.cxx... Compiling CheckButton.cxx... Compiling Choice.cxx... Choice.cxx: In member function ‘virtual void fltk::Choice::draw()’: Choice.cxx:84: warning: suggest parentheses around arithmetic in operand of | Compiling clip.cxx... Compiling Clock.cxx... Compiling Color.cxx... Compiling color_chooser.cxx... Compiling ComboBox.cxx... Compiling compose.cxx... compose.cxx: In function ‘bool fltk::compose(int&)’: compose.cxx:380: warning: suggest parentheses around && within || Compiling Cursor.cxx... Compiling CycleButton.cxx... CycleButton.cxx: In member function ‘virtual void fltk::CycleButton::draw()’: CycleButton.cxx:84: warning: suggest parentheses around && within || Compiling default_glyph.cxx... default_glyph.cxx: In member function ‘void fltk::Widget::draw_glyph(int, const fltk::Rectangle&) const’: default_glyph.cxx:129: warning: suggest parentheses around arithmetic in operand of | Compiling Dial.cxx... Compiling DiamondBox.cxx... Compiling dnd.cxx... Compiling drawtext.cxx... drawtext.cxx: In member function ‘virtual void LeftSymbol::_measure(int&, int&) const’: drawtext.cxx:197: warning: suggest parentheses around arithmetic in operand of | drawtext.cxx: In member function ‘virtual void RightSymbol::_measure(int&, int&) const’: drawtext.cxx:219: warning: suggest parentheses around arithmetic in operand of | Compiling EngravedLabel.cxx... Compiling error.cxx... Compiling event_key_state.cxx... Compiling file_chooser.cxx... Compiling FileBrowser.cxx... FileBrowser.cxx: In member function ‘int fltk::FileBrowser::load(const char*, int (*)(const dirent64* const*, const dirent64* const*))’: FileBrowser.cxx:295: warning: suggest parentheses around && within || Compiling FileChooser.cxx... Compiling FileChooser2.cxx... Compiling FileIcon.cxx... Compiling FileInput.cxx... Compiling filename_absolute.cxx... Compiling filename_ext.cxx... Compiling filename_isdir.cxx... Compiling filename_list.cxx... filename_list.cxx: In function ‘int fltk::filename_list(const char*, dirent64***, int (*)(const dirent64* const*, const dirent64* const*))’: filename_list.cxx:66: error: invalid conversion from ‘int (*)(const void*, const void*)’ to ‘int (*)(const dirent64**, const dirent64**)’ filename_list.cxx:66: error: initializing argument 4 of ‘int scandir64(const char*, dirent64***, int (*)(const dirent64*), int (*)(const dirent64**, const dirent64**))’ make[1]: *** [filename_list.o] Błąd 1 make: *** [all] Błąd 2 * * ERROR: x11-libs/fltk-2.0_pre6786 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3067: Called die * The specific snippet of code: * emake || die "make failed"; * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/x11-libs:fltk-2.0_pre6786:20090527-194830.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/fltk-2.0_pre6786/temp/environment'. * And emerge --info # emerge --info Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.0.1 Timestamp of tree: Wed, 27 May 2009 18:45:01 +0000 app-shells/bash: 4.0_p24 dev-java/java-config: 2.1.8 dev-lang/python: 2.6.2 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 9999 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.3/env /usr/kde/4.3/share/config /usr/kde/4.3/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages logs parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo http://distfiles.gentoo.org" LANG="pl_PL.UTF-8" LC_ALL="pl_PL.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="pl en" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/banned_branches" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/qting-edge /usr/local/portage/layman/openrc /usr/local/portage/layman/openrc /usr/local/portage/layman/roslin /usr/local/portage/layman/x11 /usr/local/portage/layman/pro-audio /usr/local/portage/layman/kde-testing /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac acl acm acpi alsa amd64 aspell bash-completion bzip2 cli cracklib crypt cups dbus dell dri fortran gdbm gnutls gpm hal iconv isdnlog jpeg kde kde4 kdeprefix kerberos laptop lm_sensors midi mmx mmxext mudflap multilib ncurses nls nptl nptlonly nsplugin ntplonly nvidia opengl openmp pam pcre pdf perl pmu png pppd python qt3support qt4 readline reflection session slang spell spl sse sse2 ssl ssse3 svg sysfs tcpd truetype unicode vim-syntax xcomposite xinerama xorg xvmc zlib" ALSA_CARDS="hda-intel" 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="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 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" ELIBC="glibc" INPUT_DEVICES="evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
*** This bug has been marked as a duplicate of bug 270487 ***
Created attachment 192772 [details, diff] patch to fix invalid conversion OK Ben, this bug is duplication of that bug, but unlike that one this is related to fltk version 2. In attachment simple patch, based on patch from original bugreport.