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

Failure to build in Ubuntu Lucid #2

Open
Jivings opened this issue Jul 12, 2012 · 6 comments
Open

Failure to build in Ubuntu Lucid #2

Jivings opened this issue Jul 12, 2012 · 6 comments

Comments

@Jivings
Copy link

Jivings commented Jul 12, 2012

Cannot build piimg in Ubuntu.

$ uname -r 
2.6.32-33-generic-pae
$ parted -v
parted (GNU parted) 2.2

Steps to reproduce:

Run make.

cc -g   -c -o piimg.o piimg.c
piimg.c:2:27: error: parted/parted.h: No such file or directory  
make: *** [piimg.o] Error 1

Reproducable:

Always.

@alexchamberlain
Copy link
Owner

How did you solve this?

@Jivings
Copy link
Author

Jivings commented Jul 12, 2012

Above solved by installing libparted0-dev.

New error is:

cc -g   -c -o piimg-mount.o piimg-mount.c
piimg-mount.c: In function ‘cmd_mount’:
piimg-mount.c:94: error: ‘MS_REC’ undeclared (first use in this function)
piimg-mount.c:94: error: (Each undeclared identifier is reported only once
piimg-mount.c:94: error: for each function it appears in.)
make: *** [piimg-mount.o] Error 1

@alexchamberlain
Copy link
Owner

You really need to upgrade your Ubuntu - MS_REC is a glibc version issue.

@alexchamberlain
Copy link
Owner

What version of glibc have you got?

@alexchamberlain
Copy link
Owner

This may be fixed at some point - if you want it fixed, please comment below.

@XP1
Copy link

XP1 commented Apr 18, 2018

How to compile

sudo apt-get update
sudo apt-get install -y make build-essential git libparted0-dev
git clone https://github.com/alexchamberlain/piimg.git
cd piimg
make
sudo make install

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

No branches or pull requests

3 participants