Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parted install errors #20

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 8 comments
Open

Parted install errors #20

GoogleCodeExporter opened this issue Mar 13, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 26 Feb 2009 at 6:00

@GoogleCodeExporter
Copy link
Author

did you read my previous response? It points to a solution.

Original comment by [email protected] on 26 Feb 2009 at 6:15

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 26 Feb 2009 at 4:15

@GoogleCodeExporter
Copy link
Author

Does this patch not work for 9.10?

Original comment by [email protected] on 16 Dec 2009 at 11:53

@GoogleCodeExporter
Copy link
Author

did you check if the exiting parted already has the atvrec bits.

Original comment by [email protected] on 17 Dec 2009 at 12:29

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 17 Dec 2009 at 1:41

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 17 Dec 2009 at 2:15

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 17 Dec 2009 at 3:44

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 11 Jan 2010 at 10:30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant