Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Unresolved symbols in lvm-mod.o
@ 2001-09-18 16:06 Brian Bailey
  2001-09-20  7:31 ` Patrick Caulfield
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Bailey @ 2001-09-18 16:06 UTC (permalink / raw)
  To: linux-lvm

We're making progress in our LVM setup (Redhat 7.1, kernel 2.4.3-6, lvm
1.0) and finally have a lvm-mod.o file in /md, however, when we run
depmon -a we receive the "unresolved symbols in /md/lvm-mod-o" error.

As far as we can tell, everything else in the various steps ran well.
Suggestion?

Thanks in advance!

Brian Bailey
Fellowship Church Technology
www.fellowshipchurch.com 
bbailey@fcmail.org
972.471.6612

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Unresolved symbols in lvm-mod.o
  2001-09-18 16:06 [linux-lvm] Unresolved symbols in lvm-mod.o Brian Bailey
@ 2001-09-20  7:31 ` Patrick Caulfield
  2001-09-20 14:51   ` [linux-lvm] 1.0.1-rc2 config & kernel question James Pattinson
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Caulfield @ 2001-09-20  7:31 UTC (permalink / raw)
  To: linux-lvm

On Tue, Sep 18, 2001 at 11:06:52AM -0500, Brian Bailey wrote:
> We're making progress in our LVM setup (Redhat 7.1, kernel 2.4.3-6, lvm
> 1.0) and finally have a lvm-mod.o file in /md, however, when we run
> depmon -a we receive the "unresolved symbols in /md/lvm-mod-o" error.
> 
> As far as we can tell, everything else in the various steps ran well.
> Suggestion?

Which symbols are undefined ?

patrick

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [linux-lvm] 1.0.1-rc2 config & kernel question
  2001-09-20  7:31 ` Patrick Caulfield
@ 2001-09-20 14:51   ` James Pattinson
  2001-09-20 16:03     ` AJ Lewis
  0 siblings, 1 reply; 4+ messages in thread
From: James Pattinson @ 2001-09-20 14:51 UTC (permalink / raw)
  To: linux-lvm

Hi!

I've just downloaded LVM 1.0.1-rc2 and tried to configure it ready for kernel
2.4.9. However I get this output:

[root@fuse 1.0.1-rc2]# ./configure 
.
. (omitted)
.
checking for st_rdev in struct stat... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
./scripts/linuxver: [: ==: binary operator expected
./configure: [: ==: binary operator expected
checking whether gcc needs -traditional... (cached) no
checking return type of signal handlers... (cached) int
checking for vprintf... (cached) yes
checking for mkdir... (cached) yes
checking for rmdir... (cached) yes
checking for uname... (cached) yes
creating ./config.status
creating Makefile
creating make.tmpl
creating PATCHES/Makefile
creating tools/Makefile
creating tools/tools_and_lib.make.tmpl
creating tools/lib/Makefile
creating tools/man8/Makefile
./configure: ${srcdir/#\/*}: bad substitution

The patch seems to build OK however.

Another question - what kernel / lvm version do people recommend I use if I want
to avoid the MM problems in 2.4.9? I'd rather use a cutting edge version, but
what's the most stable? I couldn't seem to get 2.4.9-ac9 working, as it already
seems to have LVM beta7 parts in it and the patch doesn't work.

Has anyone had LVM 1.0.1-rc2 working with 2.4.10-pre12 ?

Regards,

James

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] 1.0.1-rc2 config & kernel question
  2001-09-20 14:51   ` [linux-lvm] 1.0.1-rc2 config & kernel question James Pattinson
@ 2001-09-20 16:03     ` AJ Lewis
  0 siblings, 0 replies; 4+ messages in thread
From: AJ Lewis @ 2001-09-20 16:03 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 3831 bytes --]

On Thu, Sep 20, 2001 at 03:51:57PM +0100, James Pattinson wrote:
> I've just downloaded LVM 1.0.1-rc2 and tried to configure it ready for kernel
> 2.4.9. However I get this output:
> 
> [root@fuse 1.0.1-rc2]# ./configure 
> .
> . (omitted)
> .
> checking for st_rdev in struct stat... (cached) yes
> checking whether time.h and sys/time.h may both be included... (cached) yes
> ./scripts/linuxver: [: ==: binary operator expected
> ./configure: [: ==: binary operator expected
> checking whether gcc needs -traditional... (cached) no
> checking return type of signal handlers... (cached) int
> checking for vprintf... (cached) yes
> checking for mkdir... (cached) yes
> checking for rmdir... (cached) yes
> checking for uname... (cached) yes
> creating ./config.status
> creating Makefile
> creating make.tmpl
> creating PATCHES/Makefile
> creating tools/Makefile
> creating tools/tools_and_lib.make.tmpl
> creating tools/lib/Makefile
> creating tools/man8/Makefile
> ./configure: ${srcdir/#\/*}: bad substitution
> 
> The patch seems to build OK however.

The following patch fixes that issue with configure.  I was
using an up-to-date version of bash when i wrote those in
originally, and older versions don't like the operators i used.
The following patch should fix the problem:

Index: configure.in
===================================================================
RCS file: /var/cvs/LVM/configure.in,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -B -u -r1.6 -r1.7
--- configure.in	2001/08/23 19:34:14	1.6
+++ configure.in	2001/09/06 13:02:34	1.7
@@ -75,7 +75,7 @@
 fi
 dnl -- get the version of the specified kernel
 kernel_ver=`$srcdir/scripts/linuxver -d $kernel_dir`;
-if [[ "x${kernel_ver}" == "x" ]]; then
+if [[ "x${kernel_ver}" = "x" ]]; then
  	echo -n "*** Unable to determine version of linux to build "
 	echo "patches for ***";
  	echo -n "*** Consider using the --with-kernel_dir flag     "
@@ -131,7 +131,8 @@
 tools/lib/Makefile							\
 tools/man8/Makefile							\
 )
-test=${srcdir/#\/*}
+# if there's a leading '/', assign test the null string...
+test=`echo ${srcdir} | sed -e '/^\/.*/d'`
 if [[ -z $test ]] ; then
 ln -sf $srcdir/kernel/lvm.h tools/lib/lvm.h;
 else
Index: configure
===================================================================
RCS file: /var/cvs/LVM/configure,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -B -u -r1.8 -r1.9
--- configure	2001/08/23 19:34:14	1.8
+++ configure	2001/09/06 13:02:34	1.9
@@ -1594,7 +1594,7 @@
 	kernel_dir=${topobjdir}/${kernel_dir};
 fi
 kernel_ver=`$srcdir/scripts/linuxver -d $kernel_dir`;
-if [ "x${kernel_ver}" == "x" ]; then
+if [ "x${kernel_ver}" = "x" ]; then
  	echo -n "*** Unable to determine version of linux to build "
 	echo "patches for ***";
  	echo -n "*** Consider using the --with-kernel_dir flag     "
@@ -2184,7 +2184,8 @@
 rm -fr confdefs* $ac_clean_files
 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
-test=${srcdir/#\/*}
+# if there's a leading '/', assign test the null string...
+test=`echo ${srcdir} | sed -e '/^\/.*/d'`
 if [ -z $test ] ; then
 ln -sf $srcdir/kernel/lvm.h tools/lib/lvm.h;
 else

Regards,
-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 60F3 160D C0D5 2C4B 751B  4FF9 6F67 E9BC 44CD DE95

-----Begin Obligatory Humorous Quote----------------------------------------
Quitters never win, and winners never quit,
but those who never quit AND never win are idiots.
-----End Obligatory Humorous Quote------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-20 16:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-18 16:06 [linux-lvm] Unresolved symbols in lvm-mod.o Brian Bailey
2001-09-20  7:31 ` Patrick Caulfield
2001-09-20 14:51   ` [linux-lvm] 1.0.1-rc2 config & kernel question James Pattinson
2001-09-20 16:03     ` AJ Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox