bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #19415] some items are undeclared in util/i386/pc/grub-mkimage.c


From: Vladimir Vinogradov
Subject: [bug #19415] some items are undeclared in util/i386/pc/grub-mkimage.c
Date: Mon, 26 Mar 2007 01:23:04 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

URL:
  <http://savannah.gnu.org/bugs/?19415>

                 Summary: some items are undeclared in
util/i386/pc/grub-mkimage.c
                 Project: GNU GRUB
            Submitted by: v_vv
            Submitted on: Понедельник 26.03.2007 at 01:23
                Category: Compilation
                Severity: Major
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Vladimir Vinogradov
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: grub-1.95
         Reproducibility: Every Time
         Planned Release: 

    _______________________________________________________

Details:

I got following errors while compiling:

gcc -Iutil/i386/pc -I./util/i386/pc -static -I.
-I/media/idedisk1/grub/lzo-2.02-bin/include/lzo -Iinclude -I./include -Wall
-W -DGRUB_LIBDIR=\"/media/idedisk1/grub/grub-1.95-bin/lib/grub/i386-pc\" -g
-O2 -DGRUB_UTIL=1  -MD -c -o grub_mkimage-util_i386_pc_grub_mkimage.o
util/i386/pc/grub-mkimage.c
util/i386/pc/grub-mkimage.c: In function ‘compress_kernel’:
util/i386/pc/grub-mkimage.c:48: error: ‘lzo_uint’ undeclared (first use
in this function)
util/i386/pc/grub-mkimage.c:48: error: (Each undeclared identifier is
reported only once
util/i386/pc/grub-mkimage.c:48: error: for each function it appears in.)
util/i386/pc/grub-mkimage.c:48: error: syntax error before ‘size’
util/i386/pc/grub-mkimage.c:55: warning: implicit declaration of function
‘lzo_init’
util/i386/pc/grub-mkimage.c:55: error: ‘LZO_E_OK’ undeclared (first use
in this function)
util/i386/pc/grub-mkimage.c:59: error: ‘LZO1X_999_MEM_COMPRESS’
undeclared (first use in this function)
util/i386/pc/grub-mkimage.c:64: warning: implicit declaration of function
‘lzo1x_999_compress’
util/i386/pc/grub-mkimage.c:64: error: syntax error before ‘lzo_byte’
util/i386/pc/grub-mkimage.c:67: error: ‘lzo_byte’ undeclared (first use
in this function)
util/i386/pc/grub-mkimage.c:67: error: syntax error before ‘)’ token
util/i386/pc/grub-mkimage.c:69: error: ‘size’ undeclared (first use in
this function)
make: *** [grub_mkimage-util_i386_pc_grub_mkimage.o] Error 1

To fix them, I had to add

--- grub-1.95/util/i386/pc/grub-mkimage.c       2007-03-26 03:10:15.000000000
+0300
+++ grub-1.95/util/i386/pc/grub-mkimage.c-vvv   2007-03-26 03:06:54.000000000
+0300
@@ -34,6 +34,8 @@
 
 #define _GNU_SOURCE    1
 #include <getopt.h>
+#include <lzoconf.h>
+#include <lzo1x.h>
 #if defined(HAVE_LZO_LZO1X_H)
 # include <lzo/lzo1x.h>
 #elif defined(HAVE_LZO1X_H) 

and everything became Ok.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19415>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]