#3 Kprof compilation bug

closed
nobody
None
5
2002-07-03
2002-01-19
Anonymous
No

--All libraries are updated to proper versions
--Compilation fails.

loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install...
(cached) /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a C-Compiler...
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 how to run the C preprocessor... (cached)
gcc -E
checking for a C++-Compiler...
checking for g++... (cached) g++
checking whether the C++ compiler (g++ ) works... yes
checking whether the C++ compiler (g++ ) is a cross-
compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether g++ supports -fno-exceptions...
(cached) yes
checking whether g++ supports -fno-check-new...
(cached) yes
checking whether g++ supports -Wno-long-long...
(cached) yes
checking whether g++ supports -fno-builtin... (cached)
yes
checking whether g++ supports -fexceptions... (cached)
yes
checking whether g++ supports -frtti... (cached) yes
checking how to run the C++ preprocessor... (cached)
g++ -E
checking whether g++ supports -frepo... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld...
(cached) yes
checking for /usr/bin/ld option to reload object
files... (cached) -r
checking for BSD-compatible nm...
(cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries...
(cached) pass_all
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in...
(cached) no
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works...
(cached) yes
checking if gcc static flag -static works... (cached)
yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ...
yes
checking whether the linker (/usr/bin/ld) supports
shared libraries... yes
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux
ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for dlfcn.h... (cached) yes
checking whether a program can dlopen itself...
(cached) yes
checking whether a statically linked program can
dlopen itself... (cached) no
creating libtool
loading cache ./config.cache
loading cache ./config.cache within ltconfig
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
ltcf-cxx: with_gcc=yes ; with_gnu_ld=yes
checking for objdir... .libs
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -fno-rtti -fno-exceptions ...
yes
checking whether the linker (g++) supports shared
libraries... yes
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux
ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for dlfcn.h... (cached) yes
checking whether a program can dlopen itself...
(cached) yes
checking whether a statically linked program can
dlopen itself... (cached) no
appending configuration tag "CXX" to libtool
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for main in -lcompat... (cached) no
checking for crypt in -lcrypt... (cached) yes
checking for the third argument of getsockname...
(cached) socklen_t
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for inet_ntoa... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for killpg in -lucb... (cached) no
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of char *... (cached) 4
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... (cached) no
checking for bool... (cached) yes
checking for extra includes... no
checking for extra libs... no
checking for libz... (cached) -lz
checking for X... (cached) libraries /usr/X11R6/lib,
headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... (cached)
yes
checking for libXext... (cached) yes
checking for libpng... (cached) -lpng -lz -lm
checking for libjpeg6b... (cached) no
checking for libjpeg... (cached) -ljpeg
checking for Qt... (cached)
libraries /usr/local/qt/lib,
headers /usr/local/qt/include
checking if Qt compiles without flags... (cached) no
checking for moc... (cached) /usr/local/qt/bin/moc
checking for uic... (cached) /usr/local/qt/bin/uic
checking for rpath... yes
checking for KDE... (cached) libraries /usr/lib,
headers /usr/include/kde
checking for KDE paths... (cached) defaults
checking for dcopidl... (cached) /usr/bin/dcopidl
checking for dcopidl2cpp...
(cached) /usr/bin/dcopidl2cpp
checking for mcopidl... (cached) /usr/bin/mcopidl
checking for kdb2html... (cached) /usr/bin/kdb2html
checking for artsc-config... (cached) /usr/bin/artsc-
config
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be
included... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for paths.h... (cached) yes
checking for usleep... (cached) yes
checking if kprof should be compiled... yes
creating ./config.status
creating ./Makefile
creating kprof/Makefile
creating kprof/doc/Makefile
creating kprof/doc/kprof/Makefile

[root@burrito kprof-1.3]# make
make all-recursive
make[1]: Entering directory `/usr/local/kprof-1.3'
Making all in kprof
make[2]: Entering directory `/usr/local/kprof-
1.3/kprof'
Making all in .
make[3]: Entering directory `/usr/local/kprof-
1.3/kprof'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -
I/usr/local/qt/include -I/usr/X11R6/include -O2 -
fno-exceptions -fno-check-new -Wall -pedantic -W -
Wpointer-arith -Wmissing-prototypes -Wwrite-strings -
Wno-long-long -fno-builtin -c main.cpp
In file included
from /usr/include/kde/kmainwindow.h:30,

from /usr/include/kde/ktmainwindow.h:25,
from kprof.h:32,
from main.cpp:36:
/usr/include/kde/ktoolbar.h:156: type specifier
omitted for parameter
/usr/include/kde/ktoolbar.h:156: parse error before `,'
/usr/include/kde/ktoolbar.h:174: parse error before `*'
/usr/include/kde/ktoolbar.h:177: destructor `KToolBar'
must match class
name `QMainWindow'
/usr/include/kde/ktoolbar.h:1089: destructor
`KToolBar' must match
class name `QMainWindow'
/usr/include/kde/ktoolbar.h:1089: warning: ISO C++
forbids declaration of `KToolBar' with no type
/usr/include/kde/ktoolbar.h:102: confused by earlier
errors, bailing
out
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/usr/local/kprof-1.3/kprof'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/kprof-1.3/kprof'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/kprof-1.3'
make: *** [all-recursive-am] Error 2
[root@burrito kprof-1.3]#

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Forgot to mention. My system is:

    Fresh installation of RedHat Linux 7.2, then:
    Installed KDE 2.2.2
    Installed QT 2.3.2

    I get the same compilation problem while trying to compile
    kprof-1.2 also.

    Thanks,

     
  • Colin Desmond

    Colin Desmond - 2002-07-03
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks