I post this new bug as Andrej suggested in http://bugs.gentoo.org/show_bug.cgi?id=187587#c5 Hello, I was emerging newsbeuter, but first its dependency: 'stfl-0.17', and encountered the following emerge error (see attachment): stfl_internals.h:48: error: syntax error before "WINDOW" So I changed line 31 of stfl_internals.h from "#include <ncursesw/ncurses.h>" to "#include <ncurses.h>" and it did compile. Removing "-lncursesw" in the linking command line gave also a successful linkage of libstfl.a, with no warning or errors. And `emerge --info` : Portage 2.1.3.7 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.3.5-r2, 2.6.17.1 i686) ================================================================= System uname: 2.6.17.1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System release 1.12.10 Timestamp of tree: Mon, 17 Sep 2007 20:00:01 +0000 app-shells/bash: 3.1_p16 dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 sys-apps/baselayout: 1.12.10-r4 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.12-r6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /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 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 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/portage/local/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa arts berkdb bitmap-fonts cairo cdf cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal hdf iconv imagemagick ipv6 isdnlog jpeg kde kerberos ldap mad midi mikmod mp3 mpeg mudflap ncurses netcdf nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl svg szip tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Created attachment 131188 [details] The log of a failed stfl-0.17 build without ncurses with the unicode flag.
(In reply to comment #1) > Created an attachment (id=131188) [edit] > The log of a failed stfl-0.17 build without ncurses with the unicode flag. > The fix is to emerge s ncurses library with the 'unicode' keyword in the USE flags. Now I think someone should implement this in the ebuild.
Created attachment 131190 [details] stfl-0.17 ebuild with ncurses unicode check
(In reply to comment #3) > Created an attachment (id=131190) [edit] > stfl-0.17 ebuild with ncurses unicode check Antti, did I perform the right steps ? $ su # cp stfl-0.17.ebuild /usr/portage/dev-libs/stfl/stfl-0.17.ebuild # ebuild /usr/portage/dev-libs/stfl/stfl-0.17.ebuild digest ~ # emerge stfl Calculating dependencies... done! >>> Emerging (1 of 1) dev-libs/stfl-0.17 to / [...] >>> Unpacking source... >>> Unpacking stfl-0.17.tar.gz to /var/tmp/portage/dev-libs/stfl-0.17/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-libs/stfl-0.17/work/stfl-0.17 ... /usr/portage/dev-libs/stfl/stfl-0.17.ebuild: line 45: !built_with_use: command not found Makefile:76: Makefile.deps: No such file or directory [...]
(In reply to comment #4) > (In reply to comment #3) > > Created an attachment (id=131190) [edit] > > stfl-0.17 ebuild with ncurses unicode check > > Antti, did I perform the right steps ? > > $ su > # cp stfl-0.17.ebuild /usr/portage/dev-libs/stfl/stfl-0.17.ebuild > # ebuild /usr/portage/dev-libs/stfl/stfl-0.17.ebuild digest > ~ # emerge stfl > Calculating dependencies... done! > > >>> Emerging (1 of 1) dev-libs/stfl-0.17 to / > [...] > >>> Unpacking source... > >>> Unpacking stfl-0.17.tar.gz to /var/tmp/portage/dev-libs/stfl-0.17/work > >>> Source unpacked. > >>> Compiling source in /var/tmp/portage/dev-libs/stfl-0.17/work/stfl-0.17 ... > /usr/portage/dev-libs/stfl/stfl-0.17.ebuild: line 45: !built_with_use: command > not found > Makefile:76: Makefile.deps: No such file or directory > [...] > Looks like I forgot to add eutils to the inherit line. Sorry. I'm attaching a fixed version now for you to test.
Created attachment 131191 [details] Should work now
(In reply to comment #6) > Created an attachment (id=131191) [edit] > Should work now > perfect, nice work. thank you. since this is my first approach to bugs.gentoo.org, is it 'allowed' for me to "Mark bug as CLOSED", as I did now ? :)
ewww what has been done to fix this so that the bug is even closed and not resolved?
(In reply to comment #8) > ewww > what has been done to fix this so that the bug is even closed and not resolved? > Antti has attached this ebuild which fixes the problem: https://bugs.gentoo.org/attachment.cgi?id=131191 I don't know if this ebuild has been added effectively where it should.
Fixed in the tree, thanks!