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

Submitted by:  Vladimir Vinogradov <v_vv>
Submitted on:  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:  grub-1.95
Release:  None 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>
Project 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>
Project 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>


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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    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.6