Skip to contentSkip to conversation

Lzo configure failure.

DISCUSSION xi yang 4 participants 4 messages Mar 20, 2006 – Mar 22, 2006

lore
Share & tools
lore

xi yang

author
#0 lore raw

hi:
Try Lzo-1.08.tar.gz
I have got the same problem whem i was compiling the grub1.92 with Lz0-2,02 then I used Lzo-1.08.tar.gz,everything 's fine

BTW,you should enable the /usr/loacal/lib while lib searching

2006/3/20, Z3tbl4 [] <[email protected]>:

Quoted 153 lines

Thank you for your answer.
i had some errors with includes which i fixed with this flags and copyind LZO includes to grub2 ./includes

./configure BUILD_LDDFLAGS=-L/usr/local/lib BUILD_CPPFLAGS=-I/usr/local/include BUILD_CFLAGS=-I/usr/local/include

but now i can't compile with this error

gcc -Iutil/i386/pc -I./util/i386/pc -I. -Iinclude -I./include -Wall -W

(quoted diff) +0 -2
-DGRUB_DATADIR=\"/usr/local/share/grub/i386-pc\" -g -O2 -DGRUB_UTIL=1
-c -o grub_mkimage-util_i386_pc_grub_mkimage.o

util/i386/pc/grub-mkimage.c
In file included from util/i386/pc/grub-mkimage.c:27:
include/grub/util/misc.h:41: error: syntax error before "off_t" include/grub/util/misc.h:45: error: syntax error before "off_t"
gmake: *** [grub_mkimage-util_i386_pc_grub_mkimage.o] Error 1

thank you

2006/3/18, [email protected] <[email protected]>:

Quoted 116 lines

Send Grub-devel mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.gnu.org/mailman/listinfo/grub-devel
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific than "Re: Contents of Grub-devel digest..."

Today's Topics:

1. Re: LZO configure failure (Martin Moeller)

----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Mar 2006 22:37:53 +0100
From: Martin Moeller <[email protected]>
Subject: Re: LZO configure failure
To: The development of GRUB 2 <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Hi,

I guess you have installed the LZO Library in /usr/local/lib. The script ignores this library search path (like the most one). Try to add it yourself as parameter to your configure script:

# ./configure BUILD_LDDFLAGS=-L/usr/local/lib
(tested with grub-1.91, also on FreeBSD 5.3)
Quoted 66 lines · On Thu, Mar 16, 2006 at 07:20:02AM -0800, Z3tbl4 [] wrote:

Hello. Can anyone help me compile grub2 with LZO on FBSD 5.3 ! I have lzo already installed. here is the configure output, thank you.

[zm@q] /usr/src/grub-1.92 # ./configure
checking build system type... i386-unknown-freebsd5.3
checking host system type... i386-unknown-freebsd5.3
checking for gcc... gcc
checking for C compiler default output file name... a.out checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed checking for bison... bison -y
checking for bison -y... (cached) bison -y
checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGE_FILES value needed for large files... no checking whether optimization for size works... yes
checking whether -falign-loops works... yes
checking if C symbols get an underscore after compilation... no checking if start is defined by the compiler... no
checking if _start is defined by the compiler... yes
checking if __bss_start is defined by the compiler... yes checking if edata is defined by the compiler... yes
checking if _edata is defined by the compiler... yes
checking if end is defined by the compiler... yes
checking if _end is defined by the compiler... yes
checking whether addr32 must be in the same line as the instruction... yes checking for .code16 addr32 assembler support... yes
checking whether an absolute indirect call/jump must not be prefixed with an asterisk... no
checking if GCC has the regparm=3 bug... yes
checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes
checking for objcopy... objcopy
checking whether objcopy works for absolute addresses... yes checking for strip... strip
checking for nm... nm
checking for ld... ld
checking for ruby... no
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for void *... yes
checking size of void *... 4
checking for long... yes
checking size of long... 4
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

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

------------------------------

Quoted 9 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

End of Grub-devel Digest, Vol 25, Issue 9
*****************************************

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#1 lore raw

Hello from Gregg C Levine
Actually libraries such as the LZO one belong in /usr/lib not usr/local/lib (Note my correct spelling.) that might be most of his/your problems. By instructing the configuration script where to find or place your libraries you'll solve most of these problems. These instructions are available by giving the configure script the "--help" option, but without my quotes. Unless of course your building Grub2 so that it will be placed in the /usr/local locations.

The proper place for all libraries on Linux is indeed /usr/lib unless the documentation insists upon it being otherwise. And of course your not building your libraries on Linux but your building on one of the BSDs.
---
Gregg C Levine [email protected]
---
"Remember the Force will be with you. Always." Obi-Wan Kenobi

Quoted 2 lines

-----Original Message-----
From: [email protected]

[mailto:grub-

Quoted 1 line

[email protected]] On Behalf Of

xi yang

Quoted 7 lines

Sent: Monday, March 20, 2006 5:33 PM
To: The development of GRUB 2
Subject: Lzo configure failure.

hi:
Try Lzo-1.08.tar.gz
I have got the same problem whem i was compiling the grub1.92 with

Lz0-2,02

Quoted 11 lines

then I used Lzo-1.08.tar.gz,everything 's fine

BTW,you should enable the /usr/loacal/lib while lib searching

2006/3/20, Z3tbl4 [] <[email protected]>:

Quoted 6 lines

Thank you for your answer.
i had some errors with includes which i fixed with this flags and copyind LZO includes to grub2 ./includes

./configure BUILD_LDDFLAGS=-L/usr/local/lib
BUILD_CPPFLAGS=-I/usr/local/include

BUILD_CFLAGS=-I/usr/local/include

Quoted 4 lines
Quoted 4 lines

but now i can't compile with this error

gcc -Iutil/i386/pc -I./util/i386/pc -I. -Iinclude -I./include

-Wall -W

Quoted 1 line
Quoted 1 line

-DGRUB_DATADIR=\"/usr/local/share/grub/i386-pc\" -g -O2

-DGRUB_UTIL=1

Quoted 10 lines
Quoted 10 lines

-c -o grub_mkimage-util_i386_pc_grub_mkimage.o util/i386/pc/grub-mkimage.c
In file included from util/i386/pc/grub-mkimage.c:27:
include/grub/util/misc.h:41: error: syntax error before "off_t" include/grub/util/misc.h:45: error: syntax error before "off_t"
gmake: *** [grub_mkimage-util_i386_pc_grub_mkimage.o] Error 1

thank you

2006/3/18, [email protected]

<[email protected]>:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Send Grub-devel mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.gnu.org/mailman/listinfo/grub-devel
or, via email, send a message with subject or body 'help' to
[email protected]

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more

specific

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

than "Re: Contents of Grub-devel digest..."

Today's Topics:

1. Re: LZO configure failure (Martin Moeller)

----------------------------------------------------------------------

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

Message: 1
Date: Fri, 17 Mar 2006 22:37:53 +0100
From: Martin Moeller <[email protected]>
Subject: Re: LZO configure failure
To: The development of GRUB 2 <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Hi,

I guess you have installed the LZO Library in /usr/local/lib. The script ignores this library search path (like the most one). Try to add it yourself as parameter to your configure script:

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
# ./configure BUILD_LDDFLAGS=-L/usr/local/lib
(tested with grub-1.91, also on FreeBSD 5.3)
Quoted 2 lines · On Thu, Mar 16, 2006 at 07:20:02AM -0800, Z3tbl4 [] wrote:

Hello. Can anyone help me compile grub2 with LZO on FBSD 5.3 ! I have lzo already installed. here is the configure output,

thank you.

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

[zm@q] /usr/src/grub-1.92 # ./configure
checking build system type... i386-unknown-freebsd5.3 checking host system type... i386-unknown-freebsd5.3 checking for gcc... gcc
checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables...
checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed checking for bison... bison -y
checking for bison -y... (cached) bison -y checking for special C compiler options needed for large

files... no

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

checking for _FILE_OFFSET_BITS value needed for large files...

no

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

checking for _LARGE_FILES value needed for large files... no checking whether optimization for size works... yes checking whether -falign-loops works... yes checking if C symbols get an underscore after compilation...

no

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

checking if start is defined by the compiler... no checking if _start is defined by the compiler... yes checking if __bss_start is defined by the compiler... yes checking if edata is defined by the compiler... yes checking if _edata is defined by the compiler... yes checking if end is defined by the compiler... yes checking if _end is defined by the compiler... yes checking whether addr32 must be in the same line as the

instruction... yes

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

checking for .code16 addr32 assembler support... yes checking whether an absolute indirect call/jump must not be

prefixed

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines

with an asterisk... no
checking if GCC has the regparm=3 bug... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes
checking for objcopy... objcopy
checking whether objcopy works for absolute addresses... yes checking for strip... strip
checking for nm... nm
checking for ld... ld
checking for ruby... no
checking whether byte ordering is bigendian... no checking how to run the C preprocessor... gcc -E checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

checking for void *... yes
checking size of void *... 4
checking for long... yes
checking size of long... 4
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

Quoted 34 lines
Quoted 23 lines
Quoted 12 lines
Quoted 6 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

------------------------------

Quoted 9 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

End of Grub-devel Digest, Vol 25, Issue 9
*****************************************

Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw
Quoted 3 lines · Gregg C Levine

Actually libraries such as the LZO one belong in /usr/lib not usr/local/lib (Note my correct spelling.) that might be most of his/your problems.

It is interesting when this changed. In the past, the standard location for add-on packages were always /usr/local, even with GNU/Linux.

Okuji

#3 lore raw
Quoted 6 lines
Quoted 3 lines

Actually libraries such as the LZO one belong in /usr/lib not usr/local/lib (Note my correct spelling.) that might be most of his/your problems.

It is interesting when this changed. In the past, the standard location for add-on packages were always /usr/local, even with GNU/Linux.

I don't really think it has. As I've understood it, the convention is that libraries that are installed from the distribution go in /usr/lib, and libraries that are installed from source or from external archives of binary packages should go in /usr/local/lib/.

The FHS (http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY)
while
a little vague on a few points[1], seems to support my understanding.

[1] Since they aren't defined in the spec, there may be some disagreement about what "locally installed" or "software" means.