compile problem with kprof-1.4.3

  • Manuel06

    Manuel06 - 2007-07-30


    I can neither compile kprof 1.4.3 nor any other 1.4 version.

    My system:
    Fedora Core 5, KDE 3.3.5, autoconf 2.59, automake 1.9.6, m4 1.4.7

    1. problem: make -f Makefile.cvs does not work.
    acinclude.m4:44: warning: underquoted definition of KDE_PATH_X_DIRECT
      run info '(automake)Extending aclocal'
      or see
    acinclude.m4:168: warning: underquoted definition of AC_FIND_FILE
    acinclude.m4:187: warning: underquoted definition of KDE_FIND_PATH
    acinclude.m4:240: warning: underquoted definition of KDE_MOC_ERROR_MESSAGE
    acinclude.m4:252: warning: underquoted definition of KDE_UIC_ERROR_MESSAGE
    ... thousands of those warnings ...
    acinclude.m4:4534: warning: underquoted definition of KDE_CHECK_JAVA_DIR
    acinclude.m4:4667: warning: underquoted definition of KDE_NEED_FLEX
    acinclude.m4:4679: warning: underquoted definition of AC_PATH_QTOPIA error: m4_popdef: undefined macro: AC_Dest
    autoconf/status.m4:848: AC_CONFIG_FILES is expanded from... the top level
    autom4te: /usr/bin/m4 failed with exit status: 1
    aclocal: autom4te failed with exit status: 1
    make[1]: *** [cvs] Error 1
    make: *** [all] Error 2

    2. make doesn't work:
    > ./configure --prefix=/usr/include
    works fine
    > make
    make  all-recursive
    make[1]: Entering directory `/home/mcaroli/tmp/kprof'
    Making all in kprof
    make[2]: Entering directory `/home/mcaroli/tmp/kprof/kprof'
    /usr/lib/qt-3.3/bin/uic -L /usr/include/lib/kde3/plugins/designer -nounload -o call-graph.h ./call-graph.ui
    c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -fno-exceptions -fno-check-new  -c ctidyup.cpp
    c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -fno-exceptions -fno-check-new  -c parseArguments.cpp
    c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -fno-exceptions -fno-check-new  -c kproffile.cpp
    c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -fno-exceptions -fno-check-new  -c Log.cpp
    Log.cpp:43:2: warning: #warning "NDEBUG is not defined (so debug + assert are enabled)"
    c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -fno-exceptions -fno-check-new  -c cprofileinfo.cpp
    c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -fno-exceptions -fno-check-new  -c parseprofile_pose.cpp
    parseprofile_pose.h:30: error: expected `)' before ‘&’ token
    parseprofile_pose.cpp:29: error: prototype for ‘CParseProfile_pose::CParseProfile_pose(QTextStream&, QPtrVector<CProfileInfo>&)’ does not match any in class ‘CParseProfile_pose’
    parseprofile_pose.h:28: error: candidates are: CParseProfile_pose::CParseProfile_pose(const CParseProfile_pose&)
    parseprofile_pose.h:36: error:                 CParseProfile_pose::CParseProfile_pose()
    make[2]: *** [parseprofile_pose.o] Error 1
    make[2]: Leaving directory `/home/mcaroli/tmp/kprof/kprof'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/mcaroli/tmp/kprof'
    make: *** [all-recursive-am] Error 2

    Any further information needed?

    thanks for your help!


    • st00pid

      st00pid - 2007-08-17


      Part 1: Did you add --prefix=/opt/kde3 while running ./configure ?

      Part 2:
      1. Add #include <qtextstream.h> to parseprofile.h
      2. Add #include <assert.h> to kprofwidget.cpp

      These worked for me, hopefully these should work for you too ;)



Log in to post a comment.