Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IIkC5-0006w2-Mo for mharc-grub-devel@gnu.org; Wed, 08 Aug 2007 07:59:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIkC3-0006vu-ND for grub-devel@gnu.org; Wed, 08 Aug 2007 07:59:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIkC2-0006vi-9o for grub-devel@gnu.org; Wed, 08 Aug 2007 07:59:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIkC2-0006vf-4F for grub-devel@gnu.org; Wed, 08 Aug 2007 07:59:14 -0400 Received: from rv-out-0910.google.com ([209.85.198.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIkC1-0002HB-E0 for grub-devel@gnu.org; Wed, 08 Aug 2007 07:59:13 -0400 Received: by rv-out-0910.google.com with SMTP id c27so100432rvf for ; Wed, 08 Aug 2007 04:59:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=rFWbAL4xaacZXLEzaVxnzuuYXdP3niOlI6IV9Yk8I/9+o/Dh5/DS0c+FSXm6K8JaIYyqvJlxhnmLHlqpjlrt3kRTPSZ3GMai8XrzpKEGxF2vQYObL6TuBZ4iDuiY/iiAM9D5pxvKHwAqCepuNUFDuVcK4aOrjw1qjFjJ8xLYvX0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=EsxHp0oeZrq6t7OuaE1vrI2wMuJE4VBQHjj5BEbmO+LuW/MhTzq7XExKQdRQVJZFThxOLXFcN3bK8z49Dt4Svr/ImyPOBoyyWPUF8rzHW4c2GDtgyat5LQ0wPvvsVTWmRTpyQzCAcWLKOxkETb0JKJd5vK1upWpT9fVtMkSNEmQ= Received: by 10.141.195.18 with SMTP id x18mr486104rvp.1186574351362; Wed, 08 Aug 2007 04:59:11 -0700 (PDT) Received: by 10.141.20.5 with HTTP; Wed, 8 Aug 2007 04:59:11 -0700 (PDT) Message-ID: Date: Wed, 8 Aug 2007 16:59:11 +0500 From: "salman razzaq" To: "Grub Mailing List Address" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_35833_20214144.1186574351234" X-Detected-Kernel: Linux 2.6 (newer, 2) Subject: Unable to compile grub 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: Wed, 08 Aug 2007 11:59:15 -0000 ------=_Part_35833_20214144.1186574351234 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I am new to grub development. For the past two days, I am unable to compile the grub 1.95 on ubuntu 7.04. It gives the following error. gcc -I. -I./. -I. -Iinclude -I./include -Wall -W -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 -falign-functions=1 -fno-builtin -mrtd -mregparm=3 -m32 -MD -c -o kernel_img-symlist.o symlist.c gcc -o kernel.exec kernel_img-kern_i386_pc_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_loader.o kernel_img-kern_rescue.o kernel_img-kern_term.o kernel_img-kern_i386_dl.o kernel_img-kern_i386_pc_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-disk_i386_pc_biosdisk.o kernel_img-term_i386_pc_console.o kernel_img-symlist.o -nostdlib -Wl,-N,-Ttext,8200 -fno-builtin -mrtd -mregparm=3 -m32 kernel_img-kern_device.o: In function `grub_device_iterate': /home/salman/grub-1.95/kern/device.c:140: undefined reference to `__stack_chk_fail' kernel_img-kern_disk.o: In function `grub_disk_write': /home/salman/grub-1.95/kern/disk.c:531: undefined reference to `__stack_chk_fail' kernel_img-kern_misc.o: In function `grub_vsprintf': /home/salman/grub-1.95/kern/misc.c:897: undefined reference to `__stack_chk_fail' kernel_img-kern_rescue.o: In function `grub_rescue_cmd_cat': /home/salman/grub-1.95/kern/rescue.c:169: undefined reference to `__stack_chk_fail' kernel_img-kern_i386_pc_init.o: In function `grub_machine_set_prefix': /home/salman/grub-1.95/kern/i386/pc/init.c:239: undefined reference to `__stack_chk_fail' kernel_img-kern_parser.o:/home/salman/grub-1.95/kern/parser.c:230: more undefined references to `__stack_chk_fail' follow collect2: ld returned 1 exit status make: *** [kernel.exec] Error 1 I am thinking that if I would build it with static libc. But, it raises the question that since grub will be loaded in real or protected mode and libc is a user-mode library, so the solution is out of my mind. Please help me out. Also, I saw in the previous mailing archives that a patch related to enable stack smashing is posted. I dig into the code but did not find anything. Thank you. ------=_Part_35833_20214144.1186574351234 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,
   I am new to grub development. For the past two days, I am unable to compile the grub 1.95 on ubuntu 7.04. It gives the following error.


gcc -I. -I./. -I. -Iinclude -I./include -Wall -W  -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes                  -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 -falign-functions=1 -fno-builtin -mrtd -mregparm=3 -m32 -MD -c -o kernel_img- symlist.o symlist.c
gcc -o kernel.exec kernel_img-kern_i386_pc_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_loader.o kernel_img-kern_rescue.o kernel_img-kern_term.o kernel_img-kern_i386_dl.o kernel_img-kern_i386_pc_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-disk_i386_pc_biosdisk.o kernel_img-term_i386_pc_console.o kernel_img- symlist.o  -nostdlib -Wl,-N,-Ttext,8200 -fno-builtin -mrtd -mregparm=3 -m32
kernel_img-kern_device.o: In function `grub_device_iterate':
/home/salman/grub-1.95/kern/device.c:140: undefined reference to `__stack_chk_fail'
kernel_img-kern_disk.o: In function `grub_disk_write':
/home/salman/grub-1.95/kern/disk.c:531: undefined reference to `__stack_chk_fail'
kernel_img-kern_misc.o: In function `grub_vsprintf':
/home/salman/grub- 1.95/kern/misc.c:897: undefined reference to `__stack_chk_fail'
kernel_img-kern_rescue.o: In function `grub_rescue_cmd_cat':
/home/salman/grub-1.95/kern/rescue.c:169: undefined reference to `__stack_chk_fail'
kernel_img-kern_i386_pc_init.o: In function `grub_machine_set_prefix':
/home/salman/grub-1.95/kern/i386/pc/init.c:239: undefined reference to `__stack_chk_fail'
kernel_img-kern_parser.o:/home/salman/grub- 1.95/kern/parser.c:230: more undefined references to `__stack_chk_fail' follow
collect2: ld returned 1 exit status
make: *** [kernel.exec] Error 1




      I am thinking that if I would build it with static libc. But, it raises the question that since grub will be loaded in real or protected mode and libc is a user-mode library, so the solution is out of my mind. Please help me out. Also, I saw in the previous mailing archives that a patch related to enable stack smashing is posted. I dig into the code but did not find anything.

                                                                                 Thank you.





------=_Part_35833_20214144.1186574351234--