Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65172 - mc-4.6.0-r11 Compile error - undefined reference to `SLsmg_write_char`
Summary: mc-4.6.0-r11 Compile error - undefined reference to `SLsmg_write_char`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 01:13 UTC by Pawel Pokladek
Modified: 2004-09-24 07:12 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Pokladek 2004-09-24 01:13:09 UTC
When I try to update mc I get the following error

..
gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O3 -mcpu=athlon-xp -march=athlon-xp -msse -mmmx -m3dnow -pipe -Wall   -o mcmfmt  mfmt.o
gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O3 -mcpu=athlon-xp -march=athlon-xp -msse -mmmx -m3dnow -pipe -Wall   -o man2hlp  man2hlp.o -lglib-2.0
gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O3 -mcpu=athlon-xp -march=athlon-xp -msse -mmmx -m3dnow -pipe -Wall   -o cons.saver  cons.saver.o
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: libcom_err.so.2, needed by /lib/libext2fs.so, may conflict with libcom_err.so.3
../edit/libedit.a(editdraw.o)(.text+0xd86): In function `print_to_widget':
: undefined reference to `SLsmg_write_char'
collect2: ld returned 1 exit status
make[2]: *** [mc] Error 1
make[2]: Leaving directory `/var/tmp/portage/mc-4.6.0-r11/work/mc-4.6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mc-4.6.0-r11/work/mc-4.6.0'
make: *** [all] Error 2

!!! ERROR: app-misc/mc-4.6.0-r11 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge -uv mc
2.
3.

Actual Results:  
!!! ERROR: app-misc/mc-4.6.0-r11 failed. 
!!! Function src_compile, Line 78, Exitcode 2 
!!! (no error message) 

Expected Results:  
mc update properly 

Portage 2.0.50-r11 (x86, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3) 
================================================================= 
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) XP 2500+ 
Gentoo Base System version 1.4.16 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -msse -mmmx -m3dnow -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -msse -mmmx -m3dnow -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox strict userpriv usersandbox" 
GENTOO_MIRRORS="http://src.gentoo.pl/ http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/portage/local" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="3dnow X Xaw3d acl acpi alsa apache2 arts audiofile avi berkdb caps cdr 
crypt cscope cups curl dedicated dga divx4linux doc encode esd flac flash 
foomaticdb gcj gd gdbm gif gimppring gphoto2 gtk gtk2 hardened icq imagemagick 
imap imlib innodb java jikes jpeg kde kerberos lcms lesstiff libg++ libwww 
linguas_pl lirc mad maildir memlimit mikmod mmx motif mozilla mpeg mysql 
ncurses netcdf nls nocardbus nocd odbc oggvorbis opengl pam pdflib perl pic 
pie png postgres ppds python qt quicktime readline samba sasl scanner sdl slp 
snmp speex spell sse ssl tcltk tcpd theora tiff truetype unicode usb v4l2 
videos wmf wxwindows x86 xml xml2 xmms xosd xv xvid zlib"
Comment 1 Marien Zwart (RETIRED) gentoo-dev 2004-09-24 04:45:14 UTC
The utf-8 patch seems to add this line:
SLsmg_write_char(textchar);

which refers to a function from the slang library. I think this will cause compiling with USE="unicode -slang" to fail.

I've just compiled mc with USE=-unicode and this worked. I haven't tried it with USE=slang, but I think that will work too.

USE=unicode should probably pull in slang as a dependency, or the patch needs to be modified to not use slang (don't know if that's possible).
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-24 07:12:08 UTC
you are right, added slang as dep for unicode