util-linux compile problem

util-linux compile problem

Post by Chris Easo » Tue, 27 Mar 2001 16:58:38



Hello,

I'm trying to upgrade the kernel of my RH7 system to 2.4. I am reading a
'howto':
http://www.linuxnewbie.org/nhf/intel/compiling/kernel2.4upgrade.html

One of the stages is to recompile util-linux. However, running 'configure'
complains:

configuring util-linux-2.10o

You have inet_aton()
You have <scsi/scsi.h>
You have <linux/blkpg.h>
You don't need <linux/tqueue.h>
You have <linux/kd.h>
You don't have <term.h>
You don't have ncurses - I will not make ul and setterm.
You don't have termcap - I will not make more.
You need -lcrypt
You have <locale.h>
You have <libintl.h> and gettext()
Assuming that you want to enable NLS support.
(Otherwise, edit defines.h and remove the line with ENABLE_NLS)
You have <langinfo.h>
You have __progname
You have <pty.h> and openpty()
You have wide character support
You have nanosleep()
You have personality()
You have __NR_pivot_root
You have a tm_gmtoff field in struct tm
Your rpcgen seems to work

From other posts, I gather that '-lcrypt' means 'libcrypt' (helpful...),
which is part of glibc. I have installed:

glibc-2.2-12.i686.rpm
glibc-common-2.2-12.i386.rpm
glibc-devel-2.2-12.i386.rpm

and the following files are present on my system:

/usr/lib/libcrypto.so.0.9.5a
/usr/lib/libcrypto.so.0
/usr/lib/libcrypt.a
/usr/lib/libcrypt.so

I have checked /etc/ld.so.conf and /usr/lib is in there. However, the
util-linux 'configure' still doesn't work. Can anybody explain what's wrong
and how to fix it? Or just where to begin...

Help much appreciated. Thanks.

Chris Eason

 
 
 

util-linux compile problem

Post by Paul Kimo » Thu, 29 Mar 2001 01:41:36



> I'm trying to upgrade the kernel of my RH7 system to 2.4. I am reading a
> 'howto':
> http://www.linuxnewbie.org/nhf/intel/compiling/kernel2.4upgrade.html

> One of the stages is to recompile util-linux.

There isn't a Red Hat RPM for a recent util-linux?  (Current versions are
up to 2.11a or later, by the way.)

Quote:> However, running 'configure' complains:
> You need -lcrypt
> From other posts, I gather that '-lcrypt' means 'libcrypt' (helpful...),
> which is part of glibc. I have installed:

> glibc-2.2-12.i686.rpm
> glibc-common-2.2-12.i386.rpm
> glibc-devel-2.2-12.i386.rpm

> and the following files are present on my system:

> /usr/lib/libcrypto.so.0.9.5a
> /usr/lib/libcrypto.so.0
> /usr/lib/libcrypt.a
> /usr/lib/libcrypt.so

> I have checked /etc/ld.so.conf and /usr/lib is in there. However, the
> util-linux 'configure' still doesn't work.

Are you sure that it's not working?  "You need -lcrypt" may mean "on your
system, I need to invoke `-lcrypt'."  (On older systems, no special
invocation is needed to find the relevant functions.)

(P.S. /etc/ld.so.conf doesn't have anything to do with seeking libraries at
build time, but rather with finding them at run time.  Also, as far as I
know it is not necessary to put /usr/lib in /etc/ld.so.conf; it should be
searched anyway, by default.)

--
Paul Kimoto
This message was originally posted on Usenet in plain text.  Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.

 
 
 

util-linux compile problem

Post by Paul Hilto » Sun, 01 Apr 2001 05:12:46


Chris,
I also am having difficulties with util-linux, but modified with the
international
patch, and with kernel 2.2.18, I am also using util-linux-2.10o

I got similar (not identical) messages from 'configure' and didn't think it
was a
problem, I presumed that 'You don't have' meant 'util-linux will provide'.

I have been advised not to use glibc stuff for kernel compilation, and that
util-linux
counts as 'kernel compilation'.

I would be interested to hear if you make any progress.

Regards,
Paul


Quote:> Hello,

> I'm trying to upgrade the kernel of my RH7 system to 2.4. I am reading a
> 'howto':
> http://www.linuxnewbie.org/nhf/intel/compiling/kernel2.4upgrade.html

> One of the stages is to recompile util-linux. However, running 'configure'
> complains:

> configuring util-linux-2.10o

> You have inet_aton()
> You have <scsi/scsi.h>
> You have <linux/blkpg.h>
> You don't need <linux/tqueue.h>
> You have <linux/kd.h>
> You don't have <term.h>
> You don't have ncurses - I will not make ul and setterm.
> You don't have termcap - I will not make more.
> You need -lcrypt
> You have <locale.h>
> You have <libintl.h> and gettext()
> Assuming that you want to enable NLS support.
> (Otherwise, edit defines.h and remove the line with ENABLE_NLS)
> You have <langinfo.h>
> You have __progname
> You have <pty.h> and openpty()
> You have wide character support
> You have nanosleep()
> You have personality()
> You have __NR_pivot_root
> You have a tm_gmtoff field in struct tm
> Your rpcgen seems to work

> From other posts, I gather that '-lcrypt' means 'libcrypt' (helpful...),
> which is part of glibc. I have installed:

> glibc-2.2-12.i686.rpm
> glibc-common-2.2-12.i386.rpm
> glibc-devel-2.2-12.i386.rpm

> and the following files are present on my system:

> /usr/lib/libcrypto.so.0.9.5a
> /usr/lib/libcrypto.so.0
> /usr/lib/libcrypt.a
> /usr/lib/libcrypt.so

> I have checked /etc/ld.so.conf and /usr/lib is in there. However, the
> util-linux 'configure' still doesn't work. Can anybody explain what's
wrong
> and how to fix it? Or just where to begin...

> Help much appreciated. Thanks.

> Chris Eason

 
 
 

1. Problem compiling util-linux (with crypto) under Debian 2.2r4

Hi,
I am compiling the crypto options into kernel under Debian 2.2r4 (potato) (
I followed the instructions in the HOWTO).  The kernel part was a breeze
but when I tried to compile util-linux, I ran into compilation errors:

cc -c -O -pipe -O2 -m486 -fomit-frame-pointer -I../lib
-Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1
  -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\"
-DLOGDIR=\"/var/log\" -DVARPATH=\"/var\"
-DLOCALEDIR=\"/usr/share/locale\" -DHAVE_NFS lomount.c
lomount.c:50: `LO_CRYPT_SERPENT' undeclared here (not
in a function)
lomount.c:50: initializer element is not constant
lomount.c:50: (near initialization for
`crypt_type_tbl[7].id')
lomount.c:51: `LO_CRYPT_MARS' undeclared here (not in
a function)
lomount.c:51: initializer element is not constant
lomount.c:51: (near initialization for
`crypt_type_tbl[8].id')
lomount.c:52: `LO_CRYPT_RC6' undeclared here (not in a
function)
lomount.c:52: initializer element is not constant
lomount.c:52: (near initialization for
`crypt_type_tbl[9].id')
lomount.c:53: `LO_CRYPT_DES_EDE3' undeclared here (not
in a function)
lomount.c:53: initializer element is not constant
lomount.c:53: (near initialization for
`crypt_type_tbl[10].id')
lomount.c:54: `LO_CRYPT_DFC' undeclared here (not in a
function)
lomount.c:54: initializer element is not constant
lomount.c:54: (near initialization for
`crypt_type_tbl[11].id')
lomount.c: In function `set_loop':
lomount.c:292: `LO_CRYPT_SERPENT' undeclared (first
use in this function)
lomount.c:292: (Each undeclared identifier is reported
only once
lomount.c:292: for each function it appears in.)
lomount.c:293: `LO_CRYPT_MARS' undeclared (first use
in this function)
lomount.c:294: `LO_CRYPT_RC6' undeclared (first use in
this function)
lomount.c:295: `LO_CRYPT_DES_EDE3' undeclared (first
use in this function)
lomount.c:296: `LO_CRYPT_DFC' undeclared (first use in
this function)
make[1]: *** [lomount.o] Error 1
make[1]: Leaving directory
`/usr/src/util-linux-2.10s/mount'
make: *** [all] Error 1

I had done this before (in SuSE 6.4) without a hitch
using exactly the same kernel and util-linux version.
I am sure I am missing some files.  But what files?

I am using kernel 2.2.18, patch-int-2.2.18.3 and
util-linux-2.10s.  All of them downloaded from ftp.kernel.org.

Thanks again for any advice.

GZ

2. Linux v 0.96b available

3. util-linux: "Your rpcgen output does not compile"

4. SuSE doesn't want me running Emacs?!

5. trouble compiling util-linux

6. BULL Estrella 200 /IBM RS6000/???

7. Why do we need to donwload three iso for Mandrake 8.2? NEED HELP

8. uClibC problems with Util-Linux

9. problem upgrading util-linux

10. Build problems with util-linux 2.9{g,h}

11. util-linux (crypto patch)