Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129756 - media-video/vlc-0.8.5_beta2 compile error; undefined reference to `lldiv'
Summary: media-video/vlc-0.8.5_beta2 compile error; undefined reference to `lldiv'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 15:36 UTC by Thomas Cort (RETIRED)
Modified: 2006-04-15 10:18 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 Thomas Cort (RETIRED) gentoo-dev 2006-04-12 15:36:41 UTC
I get the following compile error...

alpha-unknown-linux-gnu-gcc -Wsign-compare -Wall -mieee -pipe -O2 -mcpu=ev56 -pipe -o vlc vlc-vlc.o  src/libvlc.a -L/usr/lib -lrt -lpthread -ldl -lm
src/libvlc.a(libvlc_a-es_out.o): In function `EsOutAdd':
: undefined reference to `lldiv'
src/libvlc.a(libvlc_a-es_out.o): In function `EsOutAdd':
: undefined reference to `lldiv'
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/var/tmp/portage/vlc-0.8.5_beta2/work/vlc-0.8.5-test2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vlc-0.8.5_beta2/work/vlc-0.8.5-test2'
make: *** [all] Error 2

media-video/vlc-0.8.5_beta2 USE="X aac aalib alsa esd ffmpeg flac gnutls mp3 mpeg ncurses nls ogg opengl oss png screen sdl skins truetype vcd vorbis xml xv -a52 -arts -avahi -bidi -cdda -cddb -corba -daap -debug -directfb -dts -dvb -dvd -fbcon -ggi -httpd -libcaca -lirc -live -matroska -mod -nsplugin -rtsp -samba -shout -speex -stream -svg -theora -upnp -v4l -vlm -wxwindows -xinerama -xosd"

# emerge --info
Portage 2.1_pre7-r5 (default-linux/alpha/no-nptl/2.4, gcc-3.4.6, glibc-2.3.5-r3, 2.4.32 alpha)
=================================================================
System uname: 2.4.32 alpha EV56
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="alpha ~alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O2 -mcpu=ev56"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-mieee -pipe -O2 -mcpu=ev56"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict test"
GENTOO_MIRRORS="http://gentoo.mirrored.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alpha X aac aalib aim alsa apache2 artworkextra async audacious audiofile bash-completion berkdb binfilter bitmap-fonts bittorrent bl bonjour c++ cairo calendar cdinstall cdparanoia cdr cdrom chroot cli config_wizard cracklib crypt cscope csv ctype cups curl curlwrappers cvs cvsgraph dba dhcp dillo dri editor eds elf encode epiphany escreen esd ethereal expat extraicons extras fastbuild ffmpeg fftw figlet firefox flac force-cgi-redirect ftp gd gdb gdbm gif glep gnome gnutls gpm grammar gsl gstreamer gtalk gtk gtk2 gtkspell gvim gzip html icq id3 imlib ipv6 jabber javascript jpeg justify ladspa lame libg++ libsexy libwww lite lj logrotate lua mad mapeditor md5sum memlimit mikmod motif moznoirc moznomail moznoroaming mozsha1 mp3 mpeg mpeg2 mplayer msn msnextras music ncurses net nethack nls offensive ogg oggvorbis opengl openssh openssl oscar oss pam pcre pdflib perl png posix python quicktime quotes readline recode reiserfs scp screen sdl session sftp simplexml skins sndfile soap sockets sounds sox speech spell spl ssl subversion symlink syslog tcpd threads tokenizer truetype truetype-fonts type1-fonts userlocales vcd videos vim vim-with-x vorbis wma wma123 xml xml2 xmlreader xmms xsl xv xvid yahoo zip zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-14 11:54:45 UTC
Try with latest ~alpha glibc, this should be fine now, thanking kloeri :)
Comment 2 Zeksers 2006-04-15 09:24:16 UTC
i686-pc-linux-gnu-ranlib lib/libvlc.a
i686-pc-linux-gnu-g++ -Wsign-compare -Wsign-compare -Wall -march=pentium4 -O2 -p ipe -fomit-frame-pointer -pipe -Wl,-O1 -o vlc src/vlc-vlc.o lib/libvlc.a ./modul es/misc/memcpy/libmemcpymmx.a ./modules/video_chroma/libi420_rgb_mmx.a ./modules /video_chroma/libi422_yuy2_mmx.a ./modules/video_chroma/libi420_ymga_mmx.a ./mod ules/video_chroma/libi420_yuy2_mmx.a ./modules/misc/memcpy/libmemcpymmxext.a ./m odules/misc/memcpy/libmemcpy3dn.a ./modules/demux/liblivedotcom.a ./modules/mux/ mpeg/libmux_ts.a ./modules/codec/libtheora.a -L/usr/lib -lshout -lvorbis -lrt -l pthread -lm -Wl,-O1 -L/usr/lib/live/UsageEnvironment -lUsageEnvironment -L/usr/l ib/live/groupsock -lgroupsock -L/usr/lib/live/BasicUsageEnvironment -lBasicUsage Environment -L/usr/lib/live/liveMedia -lliveMedia -ldvbpsi -ltheora -logg
lib/libvlc.a(lib_libvlc_a-modules.o): In function `CloseModule':
modules.c:(.text+0x1bc7): undefined reference to `dlclose'
lib/libvlc.a(lib_libvlc_a-modules.o): In function `_module_getsymbol':
modules.c:(.text+0x1c7b): undefined reference to `dlsym'
lib/libvlc.a(lib_libvlc_a-modules.o): In function `AllocatePlugin':
modules.c:(.text+0x1cc9): undefined reference to `dlopen'
modules.c:(.text+0x1ce2): undefined reference to `dlopen'
modules.c:(.text+0x1e01): undefined reference to `dlerror'
modules.c:(.text+0x1e7c): undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/var/tmp/portage/vlc-0.8.4a-r1/work/vlc-0.8.4a'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vlc-0.8.4a-r1/work/vlc-0.8.4a'
make: *** [all] Error 2

!!! ERROR: media-video/vlc-0.8.4a-r1 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  vlc-0.8.4a-r1.ebuild, line 227:   Called die

!!! make of VLC failed
!!! If you need support, post the topmost build error, and the call stack if rel evant.

# emerge --info
Gentoo Base System version 1.12.0_pre17
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-ck3 i686)
=================================================================
System uname: 2.6.16-ck3 i686 Intel(R) Celeron(R) CPU 2.40GHz
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS=" http://gentoo.void.lv http://ftp.linux.ee/pub/gentoo/distfiles/ http://gentoo.osuosl.org/distfiles/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac ace alsa amr apm asf avi bash-completion berkdb bitmap-fonts bzip2 cairo cdda cddb cdio cdr cdrom cpudetection crypt ctrlmenu cups curl custom-cflags dbus dga dlloader dri dts dv effects encode exif expat fam ffmpeg firefox flac foomaticdb fortran gdbm gecko-sdk gif gimpprint glibc-omitfp glitz glut gnutls gphoto2 gpm gstreamer gtk gtk2 idn imlib inkjar ipv6 irssi jabber java javascript jpeg lcms ldap libg++ libgda libsamplerate libvisual libwww live lzo
mad math matroska mikmod mmx mng moznocompose moznoirc moznomail mozsvg mp3 mpeg mpi musepack music ncurses network nowin nptl nptlonly nsplugin nvidia offensive ogg oggvorbis on-the-fly-crypt opengl oss pdf pdflib perl png python quicktime readline rtc rtsp screen sdl shout silc sndfile socks5 speex spell sse sse2 ssl stream svg symlink tcltk tcpd tga theora thesaurus tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vcd vlm vorbis win32codecs wma wmf wxwindows x264 xanim xchat xml xml2 xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS
Comment 3 Thomas Cort (RETIRED) gentoo-dev 2006-04-15 09:39:58 UTC
(In reply to comment #1)
> Try with latest ~alpha glibc, this should be fine now, thanking kloeri :)

Upgrading to the latest ~alpha glibc fix the problem. I tested and keyworded media-video/vlc-0.8.5_beta2 ~alpha.

Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-15 09:41:14 UTC
The lldiv problem is fixed with newer glibc in ~alpha.

The other problem is due to confcache which had cached the wrong value for dlopen presence, remove confcache data and re-emerge.
Comment 5 Zeksers 2006-04-15 10:16:20 UTC
Thanks Diego, you were right. Everything's ok now.