#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 2 of 2)
  • Russell Selph
    Russell Selph
    2001-10-16

    Logged In: YES
    user_id=346351

    I've attached Mandrake's version.h file below, so you can see what caused the problem. The following diff gives a pretty reasonable fix.

    -Russ

    *** tmp/oprofile-0.0.6/configure Fri Oct 12 21:31:49 2001
    --- oprofile-0.0.6/configure Tue Oct 16 11:33:53 2001
    ***************
    *** 1088,1094 ****

    echo $ac_n &quot;checking for kernel version&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
    echo &quot;configure:1091: checking for kernel version&quot; &gt;&amp;5
    ! KVERS=`sed -n 's:^#define *UTS_RELEASE *\&amp;quot;\([^&quot;]*\).*$:\1:p' $KINC/linux/version.h`
    echo &quot;$ac_t&quot;&quot;$KVERS&quot; 1&gt;&amp;6
    case &quot;$KVERS&quot; in
    2.4.*|2.5.*) ;;
    --- 1088,1098 ----

    echo $ac_n &quot;checking for kernel version&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
    echo &quot;configure:1091: checking for kernel version&quot; &gt;&amp;5
    ! if test &quot;${with_linux+set}&quot; = set; then
    ! KVERS=`sed -n 's:^#define *UTS_RELEASE *\&amp;quot;\([^&quot;]*\).*$:\1:p' $KINC/linux/version.h | head -1`
    ! else
    ! KVERS=`uname -r`
    ! fi
    echo &quot;$ac_t&quot;&quot;$KVERS&quot; 1&gt;&amp;6
    case &quot;$KVERS&quot; in
    2.4.*|2.5.*) ;;

     
  • Russell Selph
    Russell Selph
    2001-10-16

    Mandrake's interesting version.h

     
    Attachments
  • John Levon
    John Levon
    2001-10-16

    • summary: ./configure fails on Mandrake 8.1 --> kernel config problems with Mandrake
     
  • John Levon
    John Levon
    2001-10-16

    Logged In: YES
    user_id=53034

    Update from email: there are two problems

    1) the version.h file is broken. Workaround: pre-process
    and sed a small C file

    2) completion.h has been backported. Workaround: check
    for prototypes.

     
  • John Levon
    John Levon
    2001-10-16

    Logged In: YES
    user_id=53034

    Current CVS has a probable fix for the completion.h problem.

    The version.h problem is still open.

     
  • John Levon
    John Levon
    2001-10-18

    • status: open --> open-fixed
     
  • John Levon
    John Levon
    2001-10-18

    Logged In: YES
    user_id=53034

    I've just committed a workaround (hopefully).

    Russell, are you daring enough to try CVS oprofile ? It
    should work fine.

    thanks.

     
  • John Levon
    John Levon
    2001-10-18

    Logged In: YES
    user_id=53034

    Update from email. The workarounds have fixed the two bugs.

    However Russ reports a more serious bug, that the Mandrake
    kernel headers are themselves broken. As is this clearly
    a Mandrake problem, re-classed to Invalid.

    Russ, it would be great if you could get back with the
    Mandrake bug entry URL.

     
  • John Levon
    John Levon
    2001-10-18

    • status: open-fixed --> open-invalid
     
  • John Levon
    John Levon
    2001-11-08

    • status: open-invalid --> closed-fixed
     
<< < 1 2 (Page 2 of 2)