From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KHLJn-0006PS-Ss for mharc-grub-devel@gnu.org; Fri, 11 Jul 2008 12:17:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHLJl-0006Ov-Mq for grub-devel@gnu.org; Fri, 11 Jul 2008 12:17:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHLJk-0006OX-6M for grub-devel@gnu.org; Fri, 11 Jul 2008 12:17:56 -0400 Received: from [199.232.76.173] (port=45198 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHLJj-0006OU-W7 for grub-devel@gnu.org; Fri, 11 Jul 2008 12:17:56 -0400 Received: from marlin.bio.umass.edu ([128.119.55.19]:61040) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KHLJk-0000ka-4R for grub-devel@gnu.org; Fri, 11 Jul 2008 12:17:56 -0400 Received: from [172.30.55.86] (eutopia [128.119.55.30]) (authenticated bits=0) by marlin.bio.umass.edu (8.14.2/8.14.2) with ESMTP id m6BGHdY4007949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 11 Jul 2008 12:17:54 -0400 (EDT) Message-ID: <487787A3.3040105@bio.umass.edu> Date: Fri, 11 Jul 2008 12:17:39 -0400 From: Tom Carpenter User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=windows-1252; format=flowed X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (marlin.bio.umass.edu [128.119.55.19]); Fri, 11 Jul 2008 12:17:54 -0400 (EDT) X-Scanned-By: MIMEDefang 2.54 on 128.119.55.19 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by marlin.bio.umass.edu id m6BGHdY4007949 X-detected-kernel: by monty-python.gnu.org: Solaris 9 Subject: compiling grub2 on Ubuntu (Xubuntu) 8.04 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 16:17:57 -0000 Ran into a few problems compiling grub2 (1.96) on my Ubuntu box; highlights of the apparent fixes are - install liblzo2-2 and liblzo2-dev - create a static link named /usr/lib/liblzo2.so to /usr/lib/liblzo2.so.2.0.0 Compile errors I was getting are below. --=20 Tom Carpenter 1. first attempt after installing liblzo2-2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for cmp... cmp checking for bison... bison checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for ruby... no 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 special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... 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 2. create static link, ran 'configure', then tried running 'make' =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # ls -la /usr/lib | grep lzo lrwxrwxrwx 1 root root 16 2008-05-22 14:30 liblzo2.so.2 -> liblzo= 2.so.2.0.0 -rw-r--r-- 1 root root 125740 2007-06-16 08:58 liblzo2.so.2.0.0 # ln -s /usr/lib/liblzo2.so.2.0.0 /usr/lib/liblzo2.so # ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for cmp... cmp checking for bison... bison checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for ruby... no 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 special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... 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... yes checking for lzo1x_999_compress... yes checking lzo/lzo1x.h usability... no checking lzo/lzo1x.h presence... no checking for lzo/lzo1x.h... no checking lzo1x.h usability... no checking lzo1x.h presence... no checking for lzo1x.h... no checking for posix_memalign... yes checking for memalign... yes checking for objcopy... objcopy checking for strip... strip checking for nm... nm checking whether optimization for size works... yes checking whether -falign-loops works... yes checking whether the linker accepts `--build-id=3Dnone'... yes checking whether `gcc' accepts `-fstack-protector'... yes checking whether objcopy works for absolute addresses... 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... ye= s checking for .code16 addr32 assembler support... yes checking whether an absolute indirect call/jump must not be prefixed with= an=20 asterisk... no checking if GCC has the regparm=3D3 bug... no configure: creating ./config.status config.status: creating Makefile config.status: creating gensymlist.sh config.status: creating genkernsyms.sh config.status: creating stamp-h config.status: creating config.h config.status: linking ./include/grub/i386 to include/grub/cpu config.status: linking ./include/grub/i386/pc to include/grub/machine # make gcc -Iutil/i386/pc -I./util/i386/pc -I. -Iinclude -I./include -Wall -W=20 -DGRUB_LIBDIR=3D\"/usr/local/lib/`echo grub/i386-pc | sed 's,x,x,'`\" -g = -O2=20 -DGRUB_UTIL=3D1 -DGRUB_MEMORY_MACHINE_LINK_ADDR=3D0x8200 -MD -c -o=20 grub_mkimage-util_i386_pc_grub_mkimage.o util/i386/pc/grub-mkimage.c util/i386/pc/grub-mkimage.c: In function =91compress_kernel=92: util/i386/pc/grub-mkimage.c:49: error: =91lzo_uint=92 undeclared (first u= se in this=20 function) util/i386/pc/grub-mkimage.c:49: error: (Each undeclared identifier is rep= orted=20 only once util/i386/pc/grub-mkimage.c:49: error: for each function it appears in.) util/i386/pc/grub-mkimage.c:49: error: expected =91;=92 before =91size=92 util/i386/pc/grub-mkimage.c:56: warning: implicit declaration of function= =91lzo_init=92 util/i386/pc/grub-mkimage.c:56: error: =91LZO_E_OK=92 undeclared (first u= se in this=20 function) util/i386/pc/grub-mkimage.c:60: error: =91LZO1X_999_MEM_COMPRESS=92 undec= lared=20 (first use in this function) util/i386/pc/grub-mkimage.c:65: warning: implicit declaration of function= =20 =91lzo1x_999_compress=92 util/i386/pc/grub-mkimage.c:65: error: expected =91)=92 before =91lzo_byt= e=92 util/i386/pc/grub-mkimage.c:66: warning: type defaults to =91int=92 in de= claration=20 of =91type name=92 util/i386/pc/grub-mkimage.c:68: error: =91lzo_byte=92 undeclared (first u= se in this=20 function) util/i386/pc/grub-mkimage.c:68: error: expected expression before =91)=92= token util/i386/pc/grub-mkimage.c:70: error: =91size=92 undeclared (first use i= n this=20 function) make: *** [grub_mkimage-util_i386_pc_grub_mkimage.o] Error 1 3. install liblzo2-dev, re-ran 'configure'; 'make' runs now =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D lzo related messages from re-run of 'configure' =2E =2E =2E checking for __lzo_init_v2 in -llzo2... yes checking for lzo1x_999_compress... yes checking lzo/lzo1x.h usability... yes checking lzo/lzo1x.h presence... yes checking for lzo/lzo1x.h... yes checking lzo1x.h usability... no checking lzo1x.h presence... no checking for lzo1x.h... no =2E =2E =2E