Re: Can't compile sg.c 2.6.8-rc1-mm1

From: Felipe Alfaro Solana
Date: Wed Jul 14 2004 - 04:40:07 EST


On Wed, 2004-07-14 at 11:45 +0300, Genady Okrain wrote:
> I am using gcc-3.4.1
>
> CC [M] drivers/scsi/sg.o
> drivers/scsi/sg.c: In function `sg_ioctl':
> drivers/scsi/sg.c:209: sorry, unimplemented: inlining failed in call
> to 'sg_jif_to_ms': function body not available
> drivers/scsi/sg.c:930: sorry, unimplemented: called from here
> make[2]: *** [drivers/scsi/sg.o] Error 1
> make[1]: *** [drivers/scsi] Error 2
> make: *** [drivers] Error 2
>

Also, the following patch is needed for "make menuconfig" to work with
GCC 3.5.
diff -uNr linux-2.6.7-mm7/scripts/kconfig/mconf.c linux-2.6.7-mm7-gcc35/scripts/kconfig/mconf.c
--- linux-2.6.7-mm7/scripts/kconfig/mconf.c 2004-06-16 07:19:02.000000000 +0200
+++ linux-2.6.7-mm7-gcc35/scripts/kconfig/mconf.c 2004-07-09 10:10:07.000000000 +0200
@@ -88,7 +88,7 @@
static int indent;
static struct termios ios_org;
static int rows, cols;
-static struct menu *current_menu;
+struct menu *current_menu;
static int child_count;
static int do_resize;
static int single_menu_mode;