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
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!
post a patch
Well, I think I know what's that. It probably needs 32-bit LZO, because: use amd64 && multilib_toolchain_setup x86
probably
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.
nah ... we should be expending effort in a proper multilib solution thanks though
*** Bug 186516 has been marked as a duplicate of this bug. ***
*** Bug 194090 has been marked as a duplicate of this bug. ***
I should mention that someone I was talking to last night on IRC said they had successfully compiled this on an AMD64 machine.
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.
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.
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).
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
vapier: Any objections if a 32-bit version of lzo gets included in app-emulation/emul-linux-x86-baselibs as a stopgap measure?
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
*** Bug 220437 has been marked as a duplicate of this bug. ***