Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161815 - sys-boot/grub-1.95 cannot find dev-libs/lzo though it's installed
Summary: sys-boot/grub-1.95 cannot find dev-libs/lzo though it's installed
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 186516 194090 220437 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-12 19:10 UTC by David Watzke
Modified: 2008-05-06 11:36 UTC (History)
4 users (show)

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


Attachments
New ebuild with new use flag (lib32) (lzo-2.02-r2.ebuild,1.16 KB, text/plain)
2007-09-29 13:19 UTC, Magnus Granberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Watzke 2007-01-12 19:10:17 UTC
checking for __lzo_init_v2 in -llzo2... no
checking for __lzo_init_v2 in -llzo... no
checking for __lzo_init2 in -llzo... no
configure: error: LZO library version 1.02 or later is required

# emerge -pqv lzo
[ebuild   R   ] dev-libs/lzo-2.02-r1  USE="-examples"

I've tested it on two ~amd64 systems...

Reproducible: Always

Steps to Reproduce:
emerge =grub-1.95




Portage 2.1.2_rc4-r8 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.13.0_alpha11
Last Sync: Fri, 12 Jan 2007 11:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.20_alpha2
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.9
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe -msse3"
DISTDIR="/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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"
PORTAGE_TMPDIR="/20GB/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/usr/local/portage/berkano-overlay /overlay /usr/local/portage/dave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 asf avi bitmap-fonts bzip2 cairo cdparanoia cdr cli css cups curl curlwrappers custom-cflags cvs dbus dga dts dvd dvdr dvdread emboss enca encode fbcon ffmpeg firefox flac flash ftp fuse gd gif gpm hal iconv id3 id3v2 imagemagick jabber javascript jpeg kde kdeenablefinal kdehiddenvisibility lame lcms libg++ mad matroska mp3 mpeg mplayer musepack ncurses nls no-suexec nowebdav nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl pic png posix ppds pppd print python qt qt3 quicktime readline reflection sdl session sockets spl sse3 ssl subversion svg symlink theora threads truetype truetype-fonts type1-fonts udev unicode usb vorbis wma x264 xcomposite xine xml xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
Comment 1 David Watzke 2007-01-12 19:21:29 UTC
Tried to run configure by hand (without params):
root@amd64 grub-1.95 # ./configure
[...]
checking for __lzo_init_v2 in -llzo2... yes

... and it works!
Comment 2 SpanKY gentoo-dev 2007-01-12 19:59:06 UTC
post a patch
Comment 3 David Watzke 2007-01-12 20:19:46 UTC
Well, I think I know what's that. It probably needs 32-bit LZO, because:

use amd64 && multilib_toolchain_setup x86
Comment 4 SpanKY gentoo-dev 2007-01-12 21:21:16 UTC
probably
Comment 5 David Watzke 2007-01-12 22:11:56 UTC
OK, it's caused by this. I've made a lzo32 ebuild and configure passed, but it's useless to fix this, because it fails on next minimally two points (during compilation). If you want lzo32 ebuild, let me know.
Comment 6 SpanKY gentoo-dev 2007-01-12 22:46:31 UTC
nah ... we should be expending effort in a proper multilib solution

thanks though
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-07-24 20:59:37 UTC
*** Bug 186516 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-09-28 16:29:42 UTC
*** Bug 194090 has been marked as a duplicate of this bug. ***
Comment 9 Stelard Actek 2007-09-29 05:39:03 UTC
I should mention that someone I was talking to last night on IRC said they had successfully compiled this on an AMD64 machine.
Comment 10 Stelard Actek 2007-09-29 08:17:40 UTC
I also noticed emerge was running this command:
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/ --datadir=/usr/lib --libdir=/lib32 --build=x86_64-pc-linux-gnu

If I change --libdir to point to /lib64, it configures and compiles without issue. I've not tried it yet, however.
Comment 11 Magnus Granberg gentoo-dev 2007-09-29 13:19:48 UTC
Created attachment 132170 [details]
New ebuild with new use flag (lib32)

Build 32bit ver of lzo on a 64bit system with multilib to get grub-1.95 build.
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-21 11:00:28 UTC
vapier: So what's the course of action being taken to actually fix this bug?
I need grub-1.96 to boot a GPT-based system with a normal amd64 BIOS (not an EFI BIOS).
Comment 13 SpanKY gentoo-dev 2008-02-21 13:39:35 UTC
if you want to build grub on an amd64 machine, *you* need to build lzo as well and install it properly

the long term solution is to get multilib support into portage

i'm not putting into place any hacks whatsoever
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-21 18:29:05 UTC
vapier: Any objections if a 32-bit version of lzo gets included in app-emulation/emul-linux-x86-baselibs as a stopgap measure?
Comment 15 SpanKY gentoo-dev 2008-02-22 03:03:19 UTC
i object to any libraries being added, but i'm not the maintainer of the emul packages, so i'm not the one you need to convince it isnt a waste of time
Comment 16 SpanKY gentoo-dev 2008-05-06 11:36:53 UTC
*** Bug 220437 has been marked as a duplicate of this bug. ***