[parted-devel] parted 1.80rc1 not compiling

David Cantrell dcantrell at redhat.com
Sun Sep 17 16:09:34 UTC 2006


rohit hooda wrote:
> --- rohit hooda <rohit13hoodaait at yahoo.co.in> wrote:
> 
>> --- David Cantrell <dcantrell at redhat.com> wrote:
>>
>>> rohit hooda wrote:
>>>> Hi All, 
>>>>
>>>> I am getting the following error while building
>>> the
>>>> source for parted 1.8.0rc1.
>>>>
>>>> ....
>>>> ....
>>>> (cd .libs && rm -f libfs.la && ln -s ../libfs.la
>>>> libfs.la)
>>>> make[4]: Leaving directory
>>>> `/usr/src/parted_1.8/libparted/fs'
>>>> make[3]: Leaving directory
>>>> `/usr/src/parted_1.8/libparted/fs'
>>>> make[3]: Entering directory
>>>> `/usr/src/parted_1.8/libparted'
>>>> Makefile:379: warning: overriding commands for
>>> target
>>>> `linux.lo'
>>>> Makefile:372: warning: ignoring old commands for
>>>> target `linux.lo'
>>>>
>>>> ....
>>>> ....
>>>> if /bin/sh ../libtool --mode=compile --tag=CC
>> gcc
>>>> -DHAVE_CONFIG_H -I. -I. -I.. -I../include    
>>>> -D_REENTRANT -D_FILE_OFFSET_BITS=64
>>>> -DLOCALEDIR="\"/usr/local/share/locale\""
>>>> -DLOCALEDIR="\"/usr/local/share/locale\"" -W
>> -Wall
>>>> -Wno-unused -Wno-switch -Wno-format -Werror -MT
>>>> linux.lo -MD -MP -MF ".deps/linux.Tpo" -c -o
>>> linux.lo
>>>> `test -f 'arch/linux.c' || echo
>> './'`arch/linux.c;
>>> \
>>>> then mv -f ".deps/linux.Tpo" ".deps/linux.Plo";
>>> else
>>>> rm -f ".deps/linux.Tpo"; exit 1; fi
>>>>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include
>>>> -D_REENTRANT -D_FILE_OFFSET_BITS=64
>>>> -DLOCALEDIR=\"/usr/local/share/locale\"
>>>> -DLOCALEDIR=\"/usr/local/share/locale\" -W -Wall
>>>> -Wno-unused -Wno-switch -Wno-format -Werror -MT
>>>> linux.lo -MD -MP -MF .deps/linux.Tpo -c
>>> arch/linux.c 
>>>> -fPIC -DPIC -o .libs/linux.o
>>>> arch/linux.c: In function `linux_read':
>>>> arch/linux.c:1343: warning: implicit declaration
>>> of
>>>> function `posix_memalign'
>>>> make[3]: *** [linux.lo] Error 1
>>>> make[3]: Leaving directory
>>>> `/usr/src/parted_1.8/libparted'
>>>> make[2]: *** [all-recursive] Error 1
>>>> make[2]: Leaving directory
>>>> `/usr/src/parted_1.8/libparted'
>>>> make[1]: *** [all-recursive] Error 1
>>>> make[1]: Leaving directory `/usr/src/parted_1.8'
>>>> make: *** [all] Error 2
>>>>
>>>> I am not able to figure it out. 
>>>>
>>>> Can anyone point out the root cause for this.
>>> Can you tell me the exact commands you used to
>>> compile the source?  The 
>>> arguments to ./configure, any variables passed to
>>> make, and so on?
>> no arguments to ./configure nor make
>> 1) ./configure
>> 2) make
>>
>> then i also tried 
>> 1) CFLAGS=-Os ./configure
>> 2) make
>>
>> still the same error message.
> Some more info ... this will give you a clear picture
> 
> Makefile:379: warning: overriding commands for target
> `linux.lo'
> Makefile:372: warning: ignoring old commands for
> target `linux.lo'
> if /bin/sh ../libtool --mode=compile --tag=CC gcc
> -DHAVE_CONFIG_H -I. -I. -I.. -I../include     -Os
> -D_REENTRANT -D_FILE_OFFSET_BITS=64
> -DLOCALEDIR="\"/usr/local/share/locale\""
> -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall
> -Wno-unused -Wno-switch -Wno-format -Werror -MT
> linux.lo -MD -MP -MF ".deps/linux.Tpo" -c -o linux.lo
> `test -f 'arch/linux.c' || echo './'`arch/linux.c; \
> then mv -f ".deps/linux.Tpo" ".deps/linux.Plo"; else
> rm -f ".deps/linux.Tpo"; exit 1; fi
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Os
> -D_REENTRANT -D_FILE_OFFSET_BITS=64
> -DLOCALEDIR=\"/usr/local/share/locale\"
> -DLOCALEDIR=\"/usr/local/share/locale\" -W -Wall
> -Wno-unused -Wno-switch -Wno-format -Werror -MT
> linux.lo -MD -MP -MF .deps/linux.Tpo -c arch/linux.c 
> -fPIC -DPIC -o .libs/linux.o
> arch/linux.c: In function `linux_read':
> arch/linux.c:1343: warning: implicit declaration of
> function `posix_memalign'
> make[3]: *** [linux.lo] Error 1
> make[3]: Leaving directory
> `/usr/src/parted_1.8/libparted'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/usr/src/parted_1.8/libparted'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/parted_1.8'
> make: *** [all] Error 2

Can you capture stdout and stderr to one file and send me the results?

	./configure
	make 2>&1 | tee parted.log

Send me parted.log

Thanks,

-- 
David Cantrell
Red Hat / Westford, MA



More information about the parted-devel mailing list