bugGNU GRUB - Bugs: bug #19415, some items are undeclared in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  Vladimir Vinogradov <v_vv>
Submitted:  Mon 26 Mar 2007 01:23:03 AM UTC
   
 
Category:  Compilation Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Vladimir Vinogradov
Open/Closed:  Closed Release:  None
Release:  grub-1.95 Reproducibility:  Every Time
Planned Release:  None

Sat 15 Dec 2007 09:47:49 PM UTC, comment #2: 

Closing due to lack of response.

Robert Millan <robertmh>
Group administrator
Sun 22 Jul 2007 11:46:18 AM UTC, comment #1: 

Looks like this should already be handled in the HAVE_LZO1X_H case.  Why wasn't HAVE_LZO1X_H defined in your build?  (check autoconf output)

Robert Millan <robertmh>
Group administrator
Mon 26 Mar 2007 01:23:03 AM UTC, original submission:  

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.


Vladimir Vinogradov <v_vv>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by robertmh (Posted a comment)
  • -email is unavailable- added by v_vv (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-15 robertmh Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code