Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209681 - sys-libs/slang-1.4.9-r2 undefined references
Summary: sys-libs/slang-1.4.9-r2 undefined references
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-11 17:49 UTC by pizgin
Modified: 2008-02-28 19:15 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/app-misc/mc-4.6.1-r4/work/mc-4.6.1/config.log (config.log,184.19 KB, text/plain)
2008-02-11 18:09 UTC, pizgin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pizgin 2008-02-11 17:49:50 UTC
I am making own livecd from stage2 (portage from 03.02.08). All good.
Emerge -e system was complete without any errors.

When i want to install mc:

tux / # emerge -av mc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] app-misc/mc-4.6.1-r4 USE="X gpm nls pam slang unicode -7zip -ncurses -samba" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) app-misc/mc-4.6.1-r4 to /
...
checking slang.h usability... yes
checking slang.h presence... yes
checking for slang.h... yes
checking if S-Lang uses termcap... yes
configure: using S-Lang screen library with termcap
checking for tgoto in -ltermcap... no
checking for SLang_init_tty in -lslang... no
configure: error: S-Lang library not found

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/app-misc/mc-4.6.1-r4/work/mc-4.6.1/config.log
*
* ERROR: app-misc/mc-4.6.1-r4 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* mc-4.6.1-r4.ebuild, line 108: Called econf '--with-vfs' '--with-ext2undel' '--with-edit' '--enable-charset' '--with-screen=slang' '--with-gpm-mouse' '--with-included-gettext' '--with-x' '--without-samba'
* ebuild.sh, line 638: Called die
* The specific snippet of code:
* die "econf failed"
* The die message:
* econf failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-misc/mc-4.6.1-r4/temp/build.log'.
*

* Messages for package app-misc/mc-4.6.1-r4:

*
* ERROR: app-misc/mc-4.6.1-r4 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* mc-4.6.1-r4.ebuild, line 108: Called econf '--with-vfs' '--with-ext2undel' '--with-edit' '--enable-charset' '--with-screen=slang' '--with-gpm-mouse' '--with-included-gettext' '--with-x' '--without-samba'
* ebuild.sh, line 638: Called die
* The specific snippet of code:
* die "econf failed"
* The die message:
* econf failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-misc/mc-4.6.1-r4/temp/build.log'.
*

But Slang already installed:

tux / # emerge -av slang

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-libs/slang-1.4.9-r2 USE="unicode -cjk" 0 kB

And all files are present:

tux / # ls /usr/lib/libslang*
/usr/lib/libslang.a -> /usr/lib/libslang-utf8.a
/usr/lib/libslang.so -> /usr/lib/libslang-utf8.so
/usr/lib/libslang.so.1 -> /usr/lib/libslang-utf8.so.1
/usr/lib/libslang.so.1.4.9 -> /usr/lib/libslang-utf8.so.1.4.9
/usr/lib/libslang-utf8.a
/usr/lib/libslang-utf8.so -> libslang-utf8.so.1.4.9
/usr/lib/libslang-utf8.so.1 -> libslang-utf8.so.1.4.9
/usr/lib/libslang-utf8.so.1.4.9

With ldd all ok:

tux / # ldd /usr/lib/libslang-utf8.so.1.4.9
linux-gate.so.1 => (0xb7fde000)
libdl.so.2 => /lib/libdl.so.2 (0xb7f5e000)
libm.so.6 => /lib/libm.so.6 (0xb7f38000)
libc.so.6 => /lib/libc.so.6 (0xb7e08000)
/lib/ld-linux.so.2 (0x80000000)

-----------------------

I am held experiment.
Variant 1.

1. untar stage2
2. emerge mc - OK!

Variant 2.

1. untar stage2
2. install last portage
3. emerge -e system
4. emerge -e system
4. emerge mc - FAIL

Reproducible: Always

Steps to Reproduce:
1. untar stage2
2. install latest portage
2. emerge -e system
3. emerge -e system
4. emerge mc



tux / # emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3-v1puh i686)
=================================================================
System uname: 2.6.23-gentoo-r3-v1puh i686 AMD Sempron(tm) 2500+
Timestamp of tree: Sat, 09 Feb 2008 01:47:01 +0000
app-shells/bash: 3.2_p17-r1
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="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/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
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"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru en_GB"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer hal iconv ipv6 isdnlog jpeg kde kerberos ldap livecd mad midi mikmod minimal mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session slang spell spl ssl svg 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" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en_GB" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-11 17:51:43 UTC
Run revdep-rebuild.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-11 17:53:27 UTC
And if you still have problems after that, do what the error message told you... ;)

> !!! Please attach the following file when filing a report to bugs.gentoo.org:
> !!! /var/tmp/portage/app-misc/mc-4.6.1-r4/work/mc-4.6.1/config.log
Comment 3 pizgin 2008-02-11 18:09:28 UTC
Created attachment 143225 [details]
/var/tmp/portage/app-misc/mc-4.6.1-r4/work/mc-4.6.1/config.log
Comment 4 pizgin 2008-02-11 18:11:06 UTC
(In reply to comment #1)
> Run revdep-rebuild.
> 

Tried. That does not help. Config file was attachment.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-11 18:13:24 UTC
<snip>
configure:19671: i686-pc-linux-gnu-gcc -o conftest -O2 -march=i686 -pipe -I/usr/include/gssapi  -I$(top_builddir)/intl -I$(top_srcdir)/intl  conftest.c -lnsl  -lslang >&5
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libslang.so: undefined reference to `tgetflag'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libslang.so: undefined reference to `tgetent'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libslang.so: undefined reference to `tgetnum'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libslang.so: undefined reference to `tgetstr'
</snip>

Your slang is clearly broken; re-emerge it.
Comment 6 pizgin 2008-02-11 18:24:36 UTC
(In reply to comment #5)
> Your slang is clearly broken; re-emerge it.
> 

I am making...
tux / # emerge -avt slang mc

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] app-misc/mc-4.6.1-r4  USE="gpm ncurses nls pam slang unicode -7zip -X -samba" 0 kB
[ebuild   R   ]  sys-libs/slang-1.4.9-r2  USE="unicode -cjk" 0 kB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 0 kB

No result. When emerging mc:

checking for tgoto in -ltermcap... no
checking for SLang_init_tty in -lslang... no
configure: error: S-Lang library not found
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-02-11 18:35:36 UTC
Well of course it will fail, since you need to re-emerge slang *first*; then emerge mc.
Comment 8 pizgin 2008-02-11 18:40:36 UTC
(In reply to comment #7)
> Well of course it will fail, since you need to re-emerge slang *first*; then
> emerge mc.
> 

Ok. I am do all by steps:

# emerge slang
# emerge mc

Emerging mc - failed :(

checking for tgoto in -ltermcap... no
checking for SLang_init_tty in -lslang... no
configure: error: S-Lang library not found
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2008-02-18 19:09:18 UTC
Boring.. I'm pushing slang-2.1.3-r1 to stable in about 3 weeks, please try that instead.