compiling GRUB 1.93 on OpenBSD
I have been trying to compile GRUB 1.93 on an OpenBSD machine to create a port for it.
When I run ./configure the following message appears:
...
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
I have lzo-1.08 installed. I suppose GRUB is looking in the wrong place for it. The lzo files are located on the following places:
/usr/local/include/lzo1.h/usr/local/include/lzo16bit.h/usr/local/include/lzo1a.h/usr/local/include/lzo1b.h/usr/local/include/lzo1c.h/usr/local/include/lzo1f.h/usr/local/include/lzo1x.h/usr/local/include/lzo1y.h/usr/local/include/lzo1z.h/usr/local/include/lzo2a.h/usr/local/include/lzoconf.h/usr/local/include/lzoutil.h/usr/local/lib/liblzo.a/usr/local/lib/liblzo.la/usr/local/lib/liblzo.so.1.0/usr/local/share/doc/lzo/LTEST.TXT/usr/local/share/doc/lzo/LZO.FAQ/usr/local/share/doc/lzo/LZO.TXT/usr/local/share/doc/lzo/LZOAPI.TXT
I suppose I have to change something in configure.ac, and then run autoconf on it to produce the configure file. Could anyone help out?
Thank you very much for your time.
Quoted 10 lines · Marcos Latas
I have been trying to compile GRUB 1.93 on an OpenBSD machine to create a port for it.
When I run ./configure the following message appears:
...
checking for__lzo_init_v2in -llzo2... no
checking for__lzo_init_v2in -llzo... no
checking for__lzo_init2in -llzo... no
configure: error: LZO library version 1.02 or later is required
Try the following command which works for me on FreeBSD:
BUILD_LDFLAGS=-L/usr/local/lib BUILD_CFLAGS=-I/usr/local/include ./configure
Remember to use gmake to build afterwards.
Signature · 1 line
Christian Laursen
Quoted 13 lines · Christian Laursen
Quoted 10 lines · Marcos Latas
I have been trying to compile GRUB 1.93 on an OpenBSD machine to create a port for it.
When I run ./configure the following message appears:
...
checking for__lzo_init_v2in -llzo2... no
checking for__lzo_init_v2in -llzo... no
checking for__lzo_init2in -llzo... no
configure: error: LZO library version 1.02 or later is required
Quoted 6 lines
Try the following command which works for me on FreeBSD:
BUILD_LDFLAGS=-L/usr/local/lib BUILD_CFLAGS=-I/usr/local/include ./configure
Remember to use gmake to build afterwards.
Thank you very much for the tip. I tried the following:
./configure CFLAGS=-I/usr/local/include
(I omited the LDFLAGS path because it seems to be correct)
It now stops here:
...
checking for objcopy... objcopy
checking whether objcopy works for absolute addresses... no
configure: error: GRUB requires a working absolute objcopy; upgrade your binutils
The file INSTALL mentions that GRUB requires GNU binutils 2.9.1.0.23 or later. I have binutils 2.15!
Any thoughts?
Thank you.
Quoted 8 lines · Marcos Latas
checking for objcopy... objcopy
checking whether objcopy works for absolute addresses... no
configure: error: GRUB requires a working absolute objcopy; upgrade your binutilsThe file INSTALL mentions that GRUB requires GNU binutils 2.9.1.0.23 or later. I have binutils 2.15!
This means that the OpenBSD port of binutils is buggy. Please talk with the maintainer of the OpenBSD port.
Okuji