Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523820 - app-editors/nvi with dev-lang/perl-5.20.1 - In file included from ./../perl_api/perl.xs:35: ./../perl_api/perl.xs: In function 'perl_ex_perldo': /usr/lib64/perl5/5.20.1/x86_64-linux/CORE/scope.h:189:50: error: expected expression before ')' token
Summary: app-editors/nvi with dev-lang/perl-5.20.1 - In file included from ./../perl_a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jesus Rivero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 16:56 UTC by walt
Modified: 2015-02-19 03:23 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,170.33 KB, text/plain)
2014-09-28 20:44 UTC, walt
Details
build.log (build.log,170.33 KB, text/plain)
2014-09-28 20:48 UTC, walt
Details
patch to fix STRLEN collision (nvi-1.81.6-STRLEN.patch,17.94 KB, patch)
2015-02-17 19:35 UTC, Karl Hakimian
Details | Diff
ebuild to use STRLEN patch (nvi-1.81.6-r5.ebuild,2.36 KB, text/plain)
2015-02-17 19:36 UTC, Karl Hakimian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description walt 2014-09-26 16:56:02 UTC
In file included from /usr/lib64/perl5/5.20.1/x86_64-linux/CORE/perl.h:3339:0,
                 from ./../perl_api/perl.xs:35:
./../perl_api/perl.xs: In function 'perl_ex_perldo':
/usr/lib64/perl5/5.20.1/x86_64-linux/CORE/scope.h:189:50: error: expected expression before ')' token


Reproducible: Always




This happens only if the 'perl' useflag is set for nvi, of course.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-26 17:41:40 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
Comment 2 walt 2014-09-27 14:23:31 UTC
Portage 2.2.14_rc1 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.19-r1, 3.16.3-gentoo x86_64)
=================================================================
System uname: Linux-3.16.3-gentoo-x86_64-AMD_A6-3600_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     3533956 total,   1457728 free
KiB Swap:    4144732 total,   4144732 free
Timestamp of tree: Sat, 27 Sep 2014 13:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p49
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.23.2, 2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="3dnow 3dnowext 64bit X X509 a52 aac acl adns aio alsa amd64 amr apng archive aspell audio autoipd automount autotools avahi bash-completion berkdb bidi bittorrent boost bufferevents bzip2 cairo caja cdda cdparanoia cdr cdrom cjk cli client clutter cmake corefonts cracklib crypt css cups cxx dane dbus dconf device-mapper dhcpcd djvu dri drm dts dv dvd dvdr ecc egl elfutils elisp emboss enca encode evo exceptions exif extensions faac faad fame fat fax ffmpeg flac fltk fontconfig fpx frei0r ftp fts3 fuse g3dvl gallium gcj gcrypt gdbm gdu geoip gif gimp glamor glib glut gmp gnome-keyring gnutls gpg graphite gstreamer gtk gtk2 gudev h323 hpcups http hwdb iconv icu imagemagick imap imlib introspection iplayer ipv6 java java6 javascript jbig jbootstrap jce jpeg jpeg2k kqemu kvm lame lcms libburn libkms libnotify libsecret libssh2 libwww live llvm-gcc logrotate lua lzma lzo mad madwifi mate md5sum mdev mdnsresponder-compat mime mimencode minizip mjpeg mms mmx mmxext mng modemmanager modperl modules mozdom mp3 mp4 mpeg mplayer mta mtp multilib multislot nat-pmp ncurses net netpbm network networking networkmanager nfs nfsv3 nfsv4 nfsv41 nntp nocd nptl nsplugin offensive ogg ogg123 opengl openmp openntpd openrc opensslcrypt opus oss pam pam_ssh pango parted passfile passwordsave pcap pcre pdf pdfimport perl pgf pkcs11 playlist png pnm policykit pop posix postproc ppds ppp pppd pulseaudio python python2 qemu qt4 quicktime rar rdesktop rdoc rdp readline real regex rtsp samba scanner sdl secure-delete security sendto session sha512 sharedmem sip smime smp smtp sockets sound sqlite sqlite3 sse sse2 ssh ssl startup-notification svg swat symlink sysfs syslog system-boost system-sqlite systemd sysvipc tcpd templates tga tgif theora threads threadsafe thunderbird tiff tk tls tools tor tor-hardening transcode truetype twolame type3 udev udisks unicode unlock-notify upower usb utils uudeview uuencode vala vdpau vga video vorbis vte wav weather webgl webm webp win32codecs wma wxwidgets x264 xanim xcb xft xine xml xorg xpm xrandr xterm xv xvid xvmc youtube yv12 zip 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" 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 ublox ubx" INPUT_DEVICES="evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx vga" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

The website is refusing to accept attachments ATM.  I'll try adding the build.log later.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-27 15:28:27 UTC
(In reply to Jeroen Roovers from comment #1)
> 1) Please attach the entire build log to this bug report.
Comment 4 walt 2014-09-27 22:32:03 UTC
The webpage at https://bugs.gentoo.org/attachment.cgi might be temporarily down or it may have moved permanently to a new web address.
Error code: ERR_ACCESS_DENIED

I've been getting this error all day.  I'm definitely logged into my bugzilla account.  The build.log is 174 KB -- I could paste it as a comment instead if that's acceptable.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-28 09:04:17 UTC
(In reply to walt from comment #4)
> The webpage at https://bugs.gentoo.org/attachment.cgi might be temporarily
> down or it may have moved permanently to a new web address.
> Error code: ERR_ACCESS_DENIED
> 
> I've been getting this error all day.  I'm definitely logged into my
> bugzilla account.  The build.log is 174 KB -- I could paste it as a comment
> instead if that's acceptable.

Maybe you don't have permissions to read that file.
Comment 6 walt 2014-09-28 20:44:24 UTC
Created attachment 385686 [details]
build.log
Comment 7 walt 2014-09-28 20:48:55 UTC
Created attachment 385688 [details]
build.log
Comment 8 Karl Hakimian 2015-02-17 17:36:56 UTC
This appears to be a collision in the definision of STRLEN between nvi and perl. I've hacked the src enough to compile it. If no one else comes up with a patch soon, I will try to put one together.
Comment 9 Karl Hakimian 2015-02-17 19:35:17 UTC
Created attachment 396742 [details, diff]
patch to fix STRLEN collision

This patch changes STRLEN to NVI_STRLEN throughout the nvi source tree.
Comment 10 Karl Hakimian 2015-02-17 19:36:04 UTC
Created attachment 396744 [details]
ebuild to use STRLEN patch

Add epatch line for the STRLEN patch.
Comment 11 Karl Hakimian 2015-02-17 19:36:28 UTC
Since I had several machines to fix, I went ahead in made the patch.
Comment 12 Jesus Rivero (RETIRED) gentoo-dev 2015-02-18 13:22:38 UTC
(In reply to Karl Hakimian from comment #11)
> Since I had several machines to fix, I went ahead in made the patch.

Hi Karl, 

Thanks for taking the time to do this. I like the patch.
Are you planning on sending this upstream?
Comment 13 Karl Hakimian 2015-02-18 13:31:36 UTC
I will send it upstream.
Comment 14 Jesus Rivero (RETIRED) gentoo-dev 2015-02-18 15:33:28 UTC
(In reply to Karl Hakimian from comment #13)
> I will send it upstream.

Thanks,
I'll add the patches and release a revision later today.
Comment 15 Jesus Rivero (RETIRED) gentoo-dev 2015-02-19 03:23:09 UTC
Done.
app-editors/nvi/nvi-1.81.6-r5.ebuild is in the tree now.