#25 kernel config problems with Mandrake

closed-fixed
John Levon
None
5
2001-11-08
2001-10-15
Russell Selph
No

On two different installations of Mandrake 8.1, with
oprofile versions 0.0.5 and 0.0.6, I get the
following errors from ./configure (I'll tack the
whole configure output on the end of this message):

creating Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating dae/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating doc/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating doc/oprofile.1
sed: file conftest.s1 line 35: Unterminated `s'
command
creating pp/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating gui/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating gui/ui/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating version.h
sed: file conftest.s1 line 35: Unterminated `s'
command

I don't know if it is relevant, but Mandrake seems to
have installed autoconf-2.13-9mdk. I did a little
digging to see if I could fix the problem, but the
error reported is in a file autogenerated one or two
levels into the autoconf process. Perhaps this is
more appropriate to report as an autoconf bug?

Here's the whole autoconf output:
-----------------------------------
[rselph@spaz rselph]$ tar zxf oprofile-0.0.6.tar.gz
[rselph@spaz rselph]$ cd op
oprofile-0.0.6 oprofile-0.0.6.tar.gz
[rselph@spaz rselph]$ cd oprofile-0.0.6
[rselph@spaz oprofile-0.0.6]$ ./configure
creating cache ./config.cache
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 how to run the C preprocessor... gcc -E
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a
cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ld... ld
checking for kernel version... 2.4.8-26mdksmp
2.4.8-26mdkenterprise
2.4.8-26mdk
checking whether gcc accepts
-mpreferred-stack-boundary=2... yes
checking whether malloc attribute is understood... yes
checking whether __builtin_expect is understood... yes
checking for x86 architecture... yes
checking for SMP... yes
checking for versioned modules... yes
checking for poptGetContext in -lpopt... yes
checking for dlopen in -ldl... yes
checking for cplus_demangle in -liberty... yes
checking for bfd_openr in -lbfd... yes
checking for X... libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for Qt 2... libraries /usr/lib/qt2/lib,
headers /usr/lib/qt2/include
checking for moc... /usr/bin/moc
checking for moc2... not found
checking for uic... /usr/bin/uic
checking popt prototype... takes const char **
checking whether to use included sstream... no
updating cache ./config.cache
creating ./config.status
creating Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating dae/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating doc/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating doc/oprofile.1
sed: file conftest.s1 line 35: Unterminated `s'
command
creating pp/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating gui/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating gui/ui/Makefile
sed: file conftest.s1 line 35: Unterminated `s'
command
creating version.h
sed: file conftest.s1 line 35: Unterminated `s'
command

Discussion

1 2 > >> (Page 1 of 2)
  • John Levon
    John Levon
    2001-10-15

    Logged In: YES
    user_id=53034

    Are you sure you did not run autogen.sh before running
    configure ? The "configure" script is in straight sh, so
    it would be very odd for it to fail.

    If you did, can you try the "configure" supplied in the 0.0.6
    tarball ?

    If you /didn't/, can you try "sh -x ./configure" and add
    the output (long) ? Can I also have your config.log file ?

    This is a weird error - if you did run autoconf/autogen.sh,
    then I would say it's probably a mandrake/autoconf bug.

    thanks
    john

     
  • John Levon
    John Levon
    2001-10-15

    • assigned_to: nobody --> movement
     
  • Russell Selph
    Russell Selph
    2001-10-15

    config.log

     
    Attachments
  • Russell Selph
    Russell Selph
    2001-10-15

    Output of sh -x ./configure

     
    Attachments
  • Russell Selph
    Russell Selph
    2001-10-15

    Logged In: YES
    user_id=346351

    Nope, didn't run autogen.sh. Just unpacked the tarball, and ran .configure. I've uploaded the output you asked for. Thanks for the quick response!

    -Russ

     
  • John Levon
    John Levon
    2001-10-15

    Logged In: YES
    user_id=53034

    OK, can you attach config.status too please ?

    If you try to "make" does it fail (I expect yes ...)

    I think what might be happening is one of the tests is
    getting a funny value, which is screwing up config.status

     
  • Russell Selph
    Russell Selph
    2001-10-15

    config.status

     
    Attachments
  • Russell Selph
    Russell Selph
    2001-10-15

    Logged In: YES
    user_id=346351

    Yep, make fails, because the Makefile is empty. (exists, but length is 0)

    I'll be off-line for a few hours. I'll check back here later tonight.

    -Russ

     
  • Russell Selph
    Russell Selph
    2001-10-16

    Logged In: YES
    user_id=346351

    OK, I finally groked where the conftest.s1 file comes from, and modified the script so that the file isn't deleted. (It's uploaded here.)

    It looks like it is the kernel version test that is mucking things up. I have multiple kernels installed, and the three return values from that test are causing problems. I'll see if I can track down the actual test and provide a reasonable fix. I guess it's finally time for me to learn more about autoconf. :^)

    -Russ

     
  • Russell Selph
    Russell Selph
    2001-10-16

    Broken interim sed file

     
    Attachments
1 2 > >> (Page 1 of 2)