Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544296 - app-editors/nano-2.4.0[-spell]: text.c:(.text+0x2ae6): undefined reference to `replace_buffer'
Summary: app-editors/nano-2.4.0[-spell]: text.c:(.text+0x2ae6): undefined reference to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: SpanKY
URL: https://savannah.gnu.org/bugs/?44607
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 08:59 UTC by Karl Lindén
Modified: 2015-03-27 20:39 UTC (History)
0 users

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


Attachments
build.log (build.log,16.23 KB, text/plain)
2015-03-24 09:00 UTC, Karl Lindén
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Lindén 2015-03-24 08:59:49 UTC
app-editors/nano-2.4.0 fails to compile with the following error:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I/usr/include/ncursesw    -O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=amdfam10 -Wall -c -o text.o text.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I/usr/include/ncursesw    -O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=amdfam10 -Wall -c -o utils.o utils.c
text.c: In function 'do_formatter':
text.c:3349:2: warning: implicit declaration of function 'replace_buffer' [-Wimplicit-function-declaration]
  replace_buffer(temp);
  ^
text.c:3352:2: warning: implicit declaration of function 'do_gotopos' [-Wimplicit-function-declaration]
  do_gotopos(lineno_save, current_x_save, current_y_save, pww_save);
  ^
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I/usr/include/ncursesw    -O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=amdfam10 -Wall -c -o winio.o winio.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=amdfam10 -Wall  -Wl,-O1 -Wl,--as-needed -o nano browser.o chars.o color.o cut.o files.o global.o help.o move.o nano.o prompt.o rcfile.o search.o text.o utils.o winio.o  -lz  -lncursesw 
text.o: In function `do_formatter':
text.c:(.text+0x2ae6): undefined reference to `replace_buffer'
text.c:(.text+0x2af9): undefined reference to `do_gotopos'
collect2: error: ld returned 1 exit status
Makefile:385: recipe for target 'nano' failed
make[2]: *** [nano] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-editors/nano-2.4.0/work/nano-2.4.0/src'
Makefile:395: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-editors/nano-2.4.0/work/nano-2.4.0'
Makefile:333: recipe for target 'all' failed
make: *** [all] Error 2

$ emerge -pv app-editors/nano
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] app-editors/nano-2.4.0::gentoo [2.3.6::gentoo] USE="unicode -debug -justify -magic -minimal -ncurses -nls -slang -spell" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Reproducible: Always
Comment 1 Karl Lindén 2015-03-24 09:00:10 UTC
Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20-r2, 3.19.2-gentoo x86_64)
=================================================================
System uname: Linux-3.19.2-gentoo-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.2
KiB Mem:     8177864 total,     88684 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Tue, 24 Mar 2015 07:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

crossdev
    location: /usr/crossdev
    masters: gentoo
    priority: 0

lilrc
    location: /home/kalle/lilrc-overlay
    masters: gentoo
    priority: 1

proaudio
    location: /home/kalle/proaudio
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=amdfam10"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="                      --binpkg-changed-deps=y --binpkg-respect-use=y                      --with-bdeps=y                      --usepkg-exclude app-emulation/virtualbox-modules                      --usepkg-exclude sys-fs/vhba --getbinpkg=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ http://mirror.mdfnet.se/gentoo"
LANG="C"
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"
USE="X a52 aac alloca alsa amd64 aspell bindist cairo cd cdda cddb cdr consolekit cracklib crypt cups curl dri drm dssi dvd dvdr exif ffmpeg fftw flac fltk gallium gif gimp glib gmp gnuplot gnutls gstreamer gtk gtk2 gtkstyle gudev hwdb imap inotify jack javascript jit jpeg keymap ladspa lame libkms libnotify libsamplerate mad mp3 mpeg netifrc nptl ocamlopt ogg opengl openmp openrc orc pam pdf png policykit qt3support qt4 readline spell ssl startup-notification subversion svg svn theora threads thunar tiff truetype udev udisks unicode usb v4l vlc vorbis webgl x264 xcb xcomposite xinerama xorg xscreensaver zlib" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3 sse4_1" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en en_GB" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby22" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nouveau" XFCE_PLUGINS="trash"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Karl Lindén 2015-03-24 09:00:36 UTC
Created attachment 399590 [details]
build.log
Comment 3 Ognian Tenchev 2015-03-24 17:27:09 UTC
Same here. spell USE flag will compile package, but without it always fail to build.
Comment 4 SpanKY gentoo-dev 2015-03-27 20:39:59 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add upstream fix for building with USE=-spell
http://sources.gentoo.org/app-editors/nano/files/nano-2.4.0-no-speller.patch?rev=1.1
http://sources.gentoo.org/app-editors/nano/nano-2.4.0.ebuild?r1=1.1&r2=1.2