fdisk / cfdisk

Steve Crosby fost at hotmail.com
Tue Mar 8 01:38:58 PST 2005


Robert Connolly <robert at linuxfromscratch.org> wrote in
news:200503080429.42261.robert at linuxfromscratch.org: 

> On March 8, 2005 04:08 am, thorsten wrote:
>> Hello all,
>>
>> I just finnished building rev351.
>> The cfdisk/fdisk programs of util-linux do not work, regardless of
>> PaX Flags, Kernel w/wo PaX Grsec.
>> Is it possible, that -pie -fpie break these programs?
>> (on my rev149 version of hlfs they both work)
>>
>> thank you
>>
>> thorsten happel
> 
> I get:
> 
> # fdisk /dev/hda
> Unable to seek on /dev/hda
> 
> I don't know why yet. Looks like it might be related to the
> unistd_x86_PIC patch because that affects llseek.
> 

there was an LFS patch at some point to the base tarball for a similar 
problem with sfdisk - see below. The patch was dropped around 2.12g or so, 
as upstream fixed the problem. It may or may not be relevant ;)

The actual issue had to do with using __attribute__, which is included in 
GCC 3.4.x, but not defined or used properly - I forget exactly. There is 
probably a bug lodged for it.

=================

Submitted By: Jim Gifford (patches at jg555 dot com)
Date: 2004-09-23
Initial Package Version: 2.12g
Origin: Greg Schafer
Upstream Status: Sent
Description: Fixes Compile Issue with GCC 3.4.x

--- util-linux-2.12g/fdisk/sfdisk.c.orig	2004-09-19 13:02:25.000000000 +
0000
+++ util-linux-2.12g/fdisk/sfdisk.c	2004-09-23 16:53:07.884474104 +0000
@@ -145,6 +145,7 @@
  */
 #if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) 
&& !defined (__s390x__)
 static
+__attribute__ ((used))
 _syscall5(int,  _llseek,  unsigned int,  fd, ulong, hi, ulong, lo,
        loff_t *, res, unsigned int, wh);
 #endif

-- -
Steve Crosby



More information about the hlfs-dev mailing list