LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-29-2009, 03:36 AM   #1
melmar
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Rep: Reputation: 0
can't compile util-linux on ubuntu?


Hi!

I am trying to compile util-linux i start by ./configure and then I get the following message

Code:
configuring util-linux-2.12p

You have <scsi/scsi.h>
You have <linux/blkpg.h>
You have <linux/kd.h>
You have <locale.h>
You have <langinfo.h>
You have <sys/user.h>
You have <uuid/uuid.h>
You have <rpcsvc/nfs_prot.h>
You have <asm/types.h>
You have <linux/raw.h>
You have <stdint.h>
You have <sys/io.h>
You have inet_aton()
You have fsync()
You have getdomainname()
You have nanosleep()
You have personality()
You have updwtmp()
You have fseeko()
You have lchown()
You have rpmatch()
You have <term.h>
You have ncurses. Using <ncurses.h>.
You have termcap
You need -lcrypt
You don't have native language support
You have __progname
You have <pty.h> and openpty()
You have wide character support
You have SYS_pivot_root
You have a tm_gmtoff field in struct tm
Your rpcgen seems to work
You have zlib
You don't have blkid
and then make :

Code:
make[1]: Entering directory `/usr/src/util-linux-2.12p/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/util-linux-2.12p/po'
make[1]: Entering directory `/usr/src/util-linux-2.12p/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/util-linux-2.12p/lib'
make[1]: Entering directory `/usr/src/util-linux-2.12p/getopt'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/util-linux-2.12p/getopt'
make[1]: Entering directory `/usr/src/util-linux-2.12p/disk-utils'
cc -c -pipe -O2 -mtune=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O2 fsck.cramfs.c -o fsck.cramfs.o
fsck.cramfs.c:79:22: asm/page.h: No such file or directory
make[1]: *** [fsck.cramfs.o] Error 1
make[1]: Leaving directory `/usr/src/util-linux-2.12p/disk-utils'
make: *** [all] Error 1
Dose anyone have any ides.
 
Old 11-29-2009, 04:38 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
i think you are missing kernel headers (linux headers in some places they are called).
 
Old 11-29-2009, 04:44 AM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
You can satisfy the missing:

zlib - by installing the package zlib1g-dev

blkid - by installing the package libblkid-dev

I have no idea what -lcrypt is for or how to add it.
 
Old 11-29-2009, 04:59 AM   #4
melmar
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
You can satisfy the missing:

zlib - by installing the package zlib1g-dev

blkid - by installing the package libblkid-dev

I have no idea what -lcrypt is for or how to add it.
I have run

Code:
apt-get install zlib1g-dev

apt-get install libblkid-dev
but I have the same error!!!
 
Old 11-29-2009, 05:04 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try
Code:
apt-get install uuid-dev zlib1g-dev
 
Old 11-29-2009, 05:20 AM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Is there a special reason why you are compiling util-linux instead of installing from the repositories using sudo apt-get or via synaptic? If you are running Karmic the available version is 2.16, which is newer than the version you are trying to install.
 
Old 11-29-2009, 05:43 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 9.10 Karmic : util-linux 2.16-1ubuntu5
Ubuntu 9.04 Jaunty : util-linux 2.14.2-1ubuntu4
.. util-linux is installed by default, always.

The command : dpkg -L util-linux | grep bin
.. will show that you already have all the util-linux commands in place.

Attempting to compile an old version util-linux-2.12p
from year 2004 will probably require old headers.
Ubuntu 5.10 is the last with 2.12p ? : October 2005.
Quote:
asm/page.h: No such file or directory
No page.h in /usr/include/asm/ available for e.g. Ubuntu 9.04 Jaunty
.....

Last edited by knudfl; 11-29-2009 at 05:21 PM.
 
Old 11-30-2009, 09:06 AM   #8
melmar
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Ubuntu 9.10 Karmic : util-linux 2.16-1ubuntu5
Ubuntu 9.04 Jaunty : util-linux 2.14.2-1ubuntu4
.. util-linux is installed by default, always.

The command : dpkg -L util-linux | grep bin
.. will show that you already have all the util-linux commands in place.

Attempting to compile an old version util-linux-2.12p
from year 2004 will probably require old headers.
Ubuntu 5.10 is the last with 2.12p ? : October 2005.

No page.h in /usr/include/asm/ available for e.g. Ubuntu 9.04 Jaunty
.....
I need to compile because I need some file like :

fdisk/fdisk
login-utils/login
misc-utils/kill
mount/mount
mount/swapon
 
Old 11-30-2009, 03:29 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 9.04

REPEAT, REPEAT : dpkg -L util-linux | grep bin
→ result :
/sbin/fdisk .. and a lot more.
But there is no command 'fdisk'. There is 'sudo fdisk'.
.....
.....

/bin/login :
'login' is a package : sudo apt-get install login
( but is always installed at OS install.)

/bin/kill : sudo apt-get install procps

/bin/mount : sudo apt-get install mount
( is already installed.)
/sbin/swapon : also in package 'mount'.
> > and please use 'sudo swapon'

.....
.....

And do not expect very old packages to compile.
The util-linux for 9.04 : See Ubuntu 9.04 Jaunty ..
http://packages.ubuntu.com/eo/jaunty/util-linux
> "Links for util-linux" > > [util-linux_2.14.2.orig.tar.gz],
[util-linux_2.14.2-1ubuntu4.diff.gz].
.....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error compile util-linux mah454 Linux - Software 2 11-08-2009 06:10 AM
Cannot cross-compile bluez-util..pls help mrmuds Linux - Embedded & Single-board computer 1 07-09-2009 12:40 PM
Java.util.Scanner not found by Eclipse in Ubuntu 8.10 charlie0313 Linux - Software 1 01-03-2009 04:11 PM
Alsa util compile error: alsactl.h not found vasanthraghavan Red Hat 4 01-13-2006 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration