davilla / atv-bootloader

Automatically exported from code.google.com/p/atv-bootloader
GNU General Public License v2.0
20 stars 10 forks source link

install_parted.sh errors out #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am following the steps on "build/install parted"
2. I get errors while running install_parted.sh (see below)
3.

What is the expected output? What do you see instead?
For the script to finish without errors and parted to be built.  I need to
be able to use this version of parted in order to set the flags correctly...

What version of the product are you using? On what operating system?
Ubuntu 8.1 Intrepid Ibex - installed (no live)

Please provide any additional information below.

make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/tmp/misc/parted/parted-1.8.8/lib'
make[2]: Leaving directory `/tmp/misc/parted/parted-1.8.8/lib'
make[1]: Leaving directory `/tmp/misc/parted/parted-1.8.8/lib'
Making install in libparted
make[1]: Entering directory `/tmp/misc/parted/parted-1.8.8/libparted'
Makefile:575: warning: overriding commands for target `linux.lo'
Makefile:568: warning: ignoring old commands for target `linux.lo'
Making install in labels
make[2]: Entering directory `/tmp/misc/parted/parted-1.8.8/libparted/labels'
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -std=gnu99  -I.
-I../../lib -I../../include     -g -O2 -Werror -MT rdb.lo -MD -MP -MF
.deps/rdb.Tpo -c -o rdb.lo rdb.c
 gcc -std=gnu99 -I. -I../../lib -I../../include -g -O2 -Werror -MT rdb.lo
-MD -MP -MF .deps/rdb.Tpo -c rdb.c  -fPIC -DPIC -o .libs/rdb.o
cc1: warnings being treated as errors
../../include/parted/natmath.h:93: error: inline function
'ped_div_round_to_nearest' declared but never defined
../../include/parted/natmath.h:90: error: inline function
'ped_div_round_up' declared but never defined
make[2]: *** [rdb.lo] Error 1
make[2]: Leaving directory `/tmp/misc/parted/parted-1.8.8/libparted/labels'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/misc/parted/parted-1.8.8/libparted'
make: *** [install-recursive] Error 1
Done

Original issue reported on code.google.com by prdamri...@gmail.com on 23 Jan 2009 at 6:25

GoogleCodeExporter commented 9 years ago
Seems to be an issue with the newer version of gcc:

http://lists.alioth.debian.org/pipermail/parted-devel/2008-January/002093.html

Original comment by crmi...@gmail.com on 27 Jan 2009 at 3:39

GoogleCodeExporter commented 9 years ago
I resolved this issue on parted 1.8.8 with this attached patch I made, based on 
the
info by crmills.

Original comment by flx2...@gmail.com on 11 Feb 2009 at 10:53

Attachments:

GoogleCodeExporter commented 9 years ago
Awesome!  I will give it a try tonight! I am getting tired of looking at this 
brick!

Original comment by prdamri...@gmail.com on 11 Feb 2009 at 2:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
http://stephenjungels.com/jungels.net/articles/diff-patch-ten-minutes.html

Original comment by sdavi...@gmail.com on 26 Feb 2009 at 5:12

GoogleCodeExporter commented 9 years ago
sudo patch < parted-1.8.8-ped_div_round-1.patch seems also not to work ..

patching file natmath.h
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 86.
2 out of 2 hunks FAILED -- saving rejects to file natmath.h.rej
patching file natmath.c
Hunk #1 FAILED at 74.
Hunk #2 FAILED at 85.

Any idea how to solve this problem? 

Original comment by oezka...@googlemail.com on 24 Jul 2010 at 12:16

GoogleCodeExporter commented 9 years ago
look at the failed hunks and fix them.

Original comment by sdavi...@gmail.com on 24 Jul 2010 at 6:40

GoogleCodeExporter commented 9 years ago
the above provided patch seemed to have worked. Here is what I did

1 download the file parted-1.8.8-ped_div_round-1.patch and copied to the parted 
dir (the same dir as install_parted.sh is located)
2. vi install_parted.sh and add the line 
patch -p1 < ../parted-1.8.8-ped_div_round-1.patch
right under 
patch -p1 < ../appletv_parted-1.8.8.patch

3. run install_parted.sh again.

it finished and installed parted under /usr/local/sbin with no issue.

Original comment by jiaqing....@gmail.com on 9 Oct 2010 at 5:36