davilla / atv-bootloader

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

Parted install errors #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. removing original parted & not required lib files
2. Installing new parted with static=yes
3.

What is the expected output? What do you see instead?
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 `/home/sean/parted/parted-1.8.8/libparted/labels'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/sean/parted/parted-1.8.8/libparted'
make: *** [install-recursive] Error 1

What version of the product are you using? On what operating system?
parted 1.8.8 on Ubuntu 8.10

Please provide any additional information below.
Scott,
Firstly I apologize for posting in the comments section, I forgot about
here (getting tired)

I installed the build tools:
sudo /usr/bin/apt-get install build-essential patch

Then removed parted
sudo /usr/bin/apt-get remove parted

downloaded the new version, uncompressed and installed, got an error msg,
changed the install script and did the whole thing again. I then got a
slightly different error

Original issue reported on code.google.com by sean.rho...@gmail.com on 26 Feb 2009 at 6:00

GoogleCodeExporter commented 9 years ago
did you read my previous response? It points to a solution.

Original comment by sdavi...@gmail.com on 26 Feb 2009 at 6:15

GoogleCodeExporter commented 9 years ago
Everything is fixed now. Thanks.

Just to recap for anyone else using Ubuntu Intrepid 8.10 to compile parted:

# install the build tools
sudo /usr/bin/apt-get install build-essential patch

# remove the existing parted 
sudo /usr/bin/apt-get remove parted

# fetch the patched parted and decompress it
wget http://atv-bootloader.googlecode.com/files/parted-1.8.8-atv.tar.gz
tar -xzf parted-1.8.8-atv.tar.gz

# get the new patch parted-1.8.8-ped_div_round-1.patch (can be found in issue 
18)

# build and install the patched parted and ped_div_round-1
cp parted-1.8.8-ped_div_round-1.patch /parted-1.8.8
cd parted

# edit install_parted.sh
add line patch -p1 < ../parted-1.8.8-ped_div_round-1.patch after cd parted-1.8.8
change line ./configure --enable-static to ./configure --enable-static=yes
save file and continue with the install

sudo ./install_parted.sh
sudo ln -s /usr/local/sbin/parted /sbin/parted

# verify the install
parted --version
# you should see "parted (GNU parted) 1.8.8"

Original comment by sean.rho...@gmail.com on 26 Feb 2009 at 4:15

GoogleCodeExporter commented 9 years ago
Does this patch not work for 9.10?

Original comment by phantom...@gmail.com on 16 Dec 2009 at 11:53

GoogleCodeExporter commented 9 years ago
did you check if the exiting parted already has the atvrec bits.

Original comment by sdavi...@gmail.com on 17 Dec 2009 at 12:29

GoogleCodeExporter commented 9 years ago
a little new to all this, how would I check without going through the complete 
process to find out the 
recovery didn't format right?

Original comment by jusplain...@gmail.com on 17 Dec 2009 at 1:41

GoogleCodeExporter commented 9 years ago
when you use parted to make the partition with the atvrecv flag, if it does not 
understand the flag, it will 
complain . 

If you actually read the above line, it fetches a specific version of parted, 
and the patch for that version, then 
builds parted. Your original comment seems to imply that this did not work on 
9.10. Why did it fail to work?

Original comment by sdavi...@gmail.com on 17 Dec 2009 at 2:15

GoogleCodeExporter commented 9 years ago
I understood how the script worked and applied the patch. I maybe be throwing 
you off
when I say 9.10, I'm talking about Ubuntu Karmic. I made a seperate issue here
http://code.google.com/p/atv-bootloader/issues/detail?id=27

Original comment by jusplain...@gmail.com on 17 Dec 2009 at 3:44

GoogleCodeExporter commented 9 years ago
Worked! Thanks for the effort. 

The only problem for me was that the line

cp parted-1.8.8-ped_div_round-1.patch /parted-1.8.8

had to be changed to "cp parted-1.8.8-ped_div_round-1.patch
~/parted/parted-1.8.8-ped_div_round-1.patch"

Original comment by pfru...@gmail.com on 11 Jan 2010 at 10:30