Skip to contentSkip to conversation

Building LVM ona RH7.2 - errors

linux-lvm Jeff Layton 4 participants 5 messages Feb 12, 2002 – Feb 14, 2002

lore
Share & tools
lore
#0 lore raw

Good evening,

I tried building lvm-1.0.2 against a clean 2.4.17
kernel. I untarred the lvm tar.gz file as well as the 2.4.17 kernel (into /usr/src/linux-2.4.17.clean). Then I did a,

./configure --with-kernel_dir=/usr/src/linux-2.4.17.clean

from /usr/src/LVLM/1.0.2 I get the following errors during the configure process,

[root@home2 1.0.2]# ./configure --with-kernel_dir=/usr/src/linux-2.4.17.clean creating cache ./config.cache
checking for mawk... mawk
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... yes
checking whether make sets ${MAKE}... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for malloc.h... yes
checking for sys/ioctl.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for st_rdev in struct stat... yes
checking whether time.h and sys/time.h may both be included... yes ./configure: [: too many arguments
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for vprintf... yes
checking for mkdir... yes
checking for rmdir... yes
checking for uname... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
sed: file conftest.s1 line 40: Unterminated `s' command
creating make.tmpl
sed: file conftest.s1 line 40: Unterminated `s' command
creating PATCHES/Makefile
sed: file conftest.s1 line 40: Unterminated `s' command
creating tools/Makefile
sed: file conftest.s1 line 40: Unterminated `s' command
creating tools/tools_and_lib.make.tmpl
sed: file conftest.s1 line 40: Unterminated `s' command
creating tools/lib/Makefile
sed: file conftest.s1 line 40: Unterminated `s' command
creating tools/man8/Makefile
sed: file conftest.s1 line 40: Unterminated `s' command

(sorry about the length). sed is not my string point at all. Any ideas what I'm doing wrong?

TIA,

Jeff

#1 lore raw
Quoted 13 lines · Jeff Layton

Good evening,

I tried building lvm-1.0.2 against a clean 2.4.17
kernel. I untarred the lvm tar.gz file as well as the 2.4.17 kernel (into /usr/src/linux-2.4.17.clean). Then I did a,

./configure --with-kernel_dir=/usr/src/linux-2.4.17.clean

from /usr/src/LVLM/1.0.2 I get the following errors during the configure process,

Quoted 8 lines

checking whether time.h and sys/time.h may both be included... yes ./configure: [: too many arguments
checking whether gcc needs -traditional... no

(sorry about the length). sed is not my string point at all. Any ideas what I'm doing wrong?

It looks like there's something funny with your kernel sources, maybe a space in the version number perhaps - check the Makefile.

I just tried a kernel.org kernel and 1.0.2 on RH 7.2 here and it's fine.

patrick

#2 lore raw
Quoted 19 lines · Patrick Caulfield
Quoted 18 lines · Jeff Layton

Good evening,

I tried building lvm-1.0.2 against a clean 2.4.17
kernel. I untarred the lvm tar.gz file as well as the 2.4.17 kernel (into /usr/src/linux-2.4.17.clean). Then I did a,

./configure --with-kernel_dir=/usr/src/linux-2.4.17.clean

from /usr/src/LVLM/1.0.2 I get the following errors during the configure process,

checking whether time.h and sys/time.h may both be included... yes ./configure: [: too many arguments
checking whether gcc needs -traditional... no

Quoted 8 lines
Quoted 3 lines

(sorry about the length). sed is not my string point at all. Any ideas what I'm doing wrong?

It looks like there's something funny with your kernel sources, maybe a space in the version number perhaps - check the Makefile.

I just tried a kernel.org kernel and 1.0.2 on RH 7.2 here and it's fine.

I'll try it again, but the kernel source was pristine. I untarred it to /usr/src/linux and mv'ed it to /usr/src/linux-2.4.17.clean.

Thanks

Jeff

Quoted 9 lines

patrick

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

#3 lore raw
In reply to Jeff Layton
Quoted 4 lines · Jeff Layton

I tried building lvm-1.0.2 against a clean 2.4.17
kernel. I untarred the lvm tar.gz file as well as the 2.4.17 kernel (into /usr/src/linux-2.4.17.clean). Then I did a,

guess redhat changed something with sed

Quoted 3 lines

checking whether time.h and sys/time.h may both be included... yes ./configure: [: too many arguments
checking whether gcc needs -traditional... no

try running
sh -x ./scripts/linuxver -d /usr/src/linux-2.4.17.clean and see if we can guess what's wrong (probably the sed)

Quoted 2 lines

creating Makefile
sed: file conftest.s1 line 40: Unterminated `s' command

try salvaging those conftest.s1 files before configure kills them and see what's in there.

also which version of sed are you runnging (rpm -q sed) and which version of autoconf, if you have it installed

last thing, try running autoconf in the base lvm source dir and see if configure works afterwards

Regards,
L.

Signature · 6 lines
Luca Berra -- [email protected]
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \
#4 lore raw
Quoted 5 lines · Luca Berra
Quoted 4 lines · Jeff Layton

I tried building lvm-1.0.2 against a clean 2.4.17
kernel. I untarred the lvm tar.gz file as well as the 2.4.17 kernel (into /usr/src/linux-2.4.17.clean). Then I did a,

Quoted 8 lines

guess redhat changed something with sed

Quoted 3 lines

checking whether time.h and sys/time.h may both be included... yes ./configure: [: too many arguments
checking whether gcc needs -traditional... no

try running
sh -x ./scripts/linuxver -d /usr/src/linux-2.4.17.clean and see if we can guess what's wrong (probably the sed)

OK, here you go,

[root@home2 1.0.2]# sh -x ./scripts/linuxver -d /usr/src/linux-2.4.17.clean
+ getopts d:h option
+ linux_src=/usr/src/linux-2.4.17.clean
+ getopts d:h option
+ '[' x/usr/src/linux-2.4.17.clean = x ']'
+ file=/usr/src/linux-2.4.17.clean/Makefile
+ '[' '!' -e /usr/src/linux-2.4.17.clean/Makefile ']'
++ grep '^VERSION[[:blank:]]*='
++ cat /usr/src/linux-2.4.17.clean/Makefile
++ sed -e 's/^VERSION[[:blank:]]*=[[:blank:]]*\([[:digit:]]*\)\(.*\)/\1/'
+ major=2
++ cat /usr/src/linux-2.4.17.clean/Makefile
++ grep '^PATCHLEVEL[[:blank:]]*='
++ sed -e 's/^PATCHLEVEL[[:blank:]]*=[[:blank:]]*\([[:digit:]]*\).*/\1/'
+ minor=4
++ cat /usr/src/linux-2.4.17.clean/Makefile
++ grep '^SUBLEVEL[[:blank:]]*='
++ sed -e 's/^SUBLEVEL[[:blank:]]*=[[:blank:]]*\([[:digit:]]*\).*/\1/'
+ sublvl=17
++ cat /usr/src/linux-2.4.17.clean/Makefile
++ grep '^EXTRAVERSION[[:blank:]]*='
++ sed -e 's/^EXTRAVERSION[[:blank:]]*=[[:blank:]]*\([-+_.[:alnum:]]*\).*/\1/'
+ extraver=
+ '[' x '!=' x ']'
+ '[' -n 2 -a -n 4 -a -n 17 ']'
+ '[' -n '' ']'
+ echo 2.4.17
2.4.17

Quoted 8 lines
Quoted 3 lines

creating Makefile
sed: file conftest.s1 line 40: Unterminated `s' command

try salvaging those conftest.s1 files before configure kills them and see what's in there.

also which version of sed are you runnging (rpm -q sed) and which version of autoconf, if you have it installed

[root@home2 1.0.2]# rpm -q sed
sed-3.02-10

[root@home2 1.0.2]# rpm -q autoconf
autoconf-2.13-14

Quoted 4 lines

last thing, try running autoconf in the base lvm source dir and see if configure works afterwards

No joy, same error messages as before:

[root@home2 1.0.2]# ./configure --with-kernel_dir=/usr/src/linux-2.4.17.clean loading cache ./config.cache
checking for gawk... (cached) mawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for malloc.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for st_rdev in struct stat... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes ./configure: [: too many arguments
checking whether gcc needs -traditional... (cached) no
checking return type of signal handlers... (cached) void
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
sed: file conftest.s1 line 40: Unterminated `s' command
creating make.tmpl
sed: file conftest.s1 line 40: Unterminated `s' command
creating PATCHES/Makefile
sed: file conftest.s1 line 40: Unterminated `s' command
creating tools/Makefile
sed: file conftest.s1 line 40: Unterminated `s' command
creating tools/tools_and_lib.make.tmpl
sed: file conftest.s1 line 40: Unterminated `s' command
creating tools/lib/Makefile
sed: file conftest.s1 line 40: Unterminated `s' command
creating tools/man8/Makefile
sed: file conftest.s1 line 40: Unterminated `s' command

Thanks for the advice. Any ideas?

Jeff

Quoted 18 lines

Regards,
L.

--
Luca Berra -- [email protected]
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html