Installation problems

Help
2002-03-03
2002-06-22
  • Arvind Padmanabhan

    Dear Developers,

    Some help is needed in installing kprof-1.3 on SunOS5.6. I am new to this area of programming and tools installation and any help is greatly appreciated. Thank you.

    1. I do not have KDE installed. Is KDE required for kprof?

    2. I have recently installed Qt version 3.0.2 at my home directory (not at the root).

    3. I have installed Qt using CC compiler. It doesn't compile with g++ which I had tried earlier.
    How can I redirect kprof to use CC instead of g++?

    4. For kprof, when I run "configure" this is what I get:

         creating cache ./config.cache
         checking host system type... sparc-sun-solaris2.6
         checking target system type... sparc-sun-solaris2.6
         checking build system type... sparc-sun-solaris2.6
         checking for a BSD compatible install... admin/install-sh -c
         checking for -p flag to install... no
         checking whether build environment is sane... yes
         checking whether make sets ${MAKE}... 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... 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 how to run the C preprocessor... gcc -E
         checking for a C++-Compiler...
         checking for g++... 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++... yes
         checking whether g++ supports -fno-exceptions... yes
         checking whether g++ supports -fno-check-new... yes
         checking whether g++ supports -Wno-long-long... no
         checking whether g++ supports -fno-builtin... yes
         checking whether g++ supports -fexceptions... yes
         checking whether g++ supports -frtti... yes
         checking how to run the C++ preprocessor... g++ -E
         checking whether g++ supports -frepo... yes
         checking for ld used by GCC... /usr/local/sparc-sun-solaris2.6/bin/ld
         checking if the linker (/usr/local/sparc-sun-solaris2.6/bin/ld) is GNU ld... yes
         checking for /usr/local/sparc-sun-solaris2.6/bin/ld option to reload object files... -r
         checking for BSD-compatible nm... /usr/local/bin/nm -B
         checking whether ln -s works... yes
         checking how to recognise dependant libraries... pass_all
         checking for ranlib... ranlib
         checking for strip... strip
         checking for Cygwin environment... no
         checking for mingw32 environment... no
         updating cache ./config.cache
         loading cache ./config.cache within ltconfig
         checking whether -lc should be explicitly linked in... yes
         checking for objdir... .libs
         checking for gcc option to produce PIC... -fPIC -DPIC
         checking if gcc PIC flag -fPIC -DPIC works... yes
         checking if gcc static flag -static works... yes
         checking if gcc supports -c -o file.o... yes
         checking if gcc supports -fno-rtti -fno-exceptions ... yes
         checking whether the linker (/usr/local/sparc-sun-solaris2.6/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... solaris2.6 ld.so
         checking command to parse /usr/local/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 dlopen in -ldl... yes
         checking for dlfcn.h... yes
         checking whether a program can dlopen itself... yes
         checking whether a statically linked program can dlopen itself... no
         creating libtool
         updating cache ./config.cache
         loading cache ./config.cache
         loading cache ./config.cache within ltconfig
         checking host system type... sparc-sun-solaris2.6
         checking build system type... sparc-sun-solaris2.6
         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... solaris2.6 ld.so
         checking command to parse /usr/local/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... o
         checking for executable suffix... no
         checking for msgfmt... msgfmt
         checking for gmsgfmt... msgfmt
         found msgfmt program is not GNU msgfmt; ignore it
         checking for xgettext... /bin/xgettext
         found xgettext programs is not GNU xgettext; ignore it
         checking for main in -lcompat... no
         checking for crypt in -lcrypt... yes
         checking for the third argument of getsockname... int
         checking for dnet_ntoa in -ldnet... no
         checking for dnet_ntoa in -ldnet_stub... no
         checking for inet_ntoa... no
         checking for inet_ntoa in -lnsl... yes
         checking for connect... no
         checking for connect in -lsocket... yes
         checking for remove... yes
         checking for shmat... yes
         checking for killpg in -lucb... no
         checking size of int... 4
         checking size of long... 4
         checking size of char *... 4
         checking for dlopen in -ldl... (cached) yes
         checking for shl_unload in -ldld... no
         checking for bool... yes
         checking for extra includes... no
         checking for extra libs... no
         checking for libz... -lz
         checking for X... libraries /usr/local/lib, headers /usr/local/include
         checking for IceConnectionNumber in -lICE... yes
         checking for libXext... yes
         checking for libpng... -lpng -lz -lm
         checking for libjpeg6b... no
         checking for libjpeg... -ljpeg
         checking for Qt... configure: error: Qt (>= Qt 2.2.1) (libraries) not found. Please check your installation!
         For more details about this problem, look at the end of config.log.

    5. I am also attaching config.log for your information:

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    configure:615: checking host system type
    configure:636: checking target system type
    configure:654: checking build system type
    configure:713: checking for a BSD compatible install
    configure:770: checking for -p flag to install
    configure:793: checking whether build environment is sane
    configure:831: checking whether make sets ${MAKE}
    configure:877: checking for working aclocal
    configure:890: checking for working autoconf
    configure:903: checking for working automake
    configure:916: checking for working autoheader
    configure:929: checking for working makeinfo
    configure:1015: checking for a C-Compiler
    configure:1021: checking for gcc
    configure:1127: checking whether the C compiler (gcc  ) works
    configure:1143: gcc -o conftest    conftest.c  1>&5
    configure:1169: checking whether the C compiler (gcc  ) is a cross-compiler
    configure:1174: checking whether we are using GNU C
    configure:1183: gcc -E conftest.c
    configure:1286: checking how to run the C preprocessor
    configure:1307: gcc -E  conftest.c >/dev/null 2>conftest.out
    configure:1348: checking for a C++-Compiler
    configure:1354: checking for g++
    configure:1470: checking whether the C++ compiler (g++  ) works
    configure:1491: rm -rf SunWS_cache; g++ -o conftest    conftest.C  1>&5
    configure:1517: checking whether the C++ compiler (g++  ) is a cross-compiler
    configure:1522: checking whether we are using GNU C++
    configure:1531: g++ -E conftest.C
    configure:1606: checking whether g++ supports -fno-exceptions
    configure:1640: checking whether g++ supports -fno-check-new
    configure:1679: checking whether g++ supports -Wno-long-long
    configure:1711: checking whether g++ supports -fno-builtin
    configure:1756: checking whether g++ supports -fexceptions
    configure:1791: checking whether g++ supports -frtti
    configure:1872: checking how to run the C++ preprocessor
    configure:1894: g++ -E  conftest.C >/dev/null 2>conftest.out
    configure:1955: checking whether g++ supports -frepo
    configure:2150: checking for ld used by GCC
    configure:2218: checking if the linker (/usr/local/sparc-sun-solaris2.6/bin/ld) is GNU ld
    GNU ld version 2.10.1 (with BFD 2.10.1)
    configure:2235: checking for /usr/local/sparc-sun-solaris2.6/bin/ld option to reload object files
    configure:2247: checking for BSD-compatible nm
    configure:2284: checking whether ln -s works
    configure:2305: checking how to recognise dependant libraries
    configure:2591: checking for ranlib
    configure:2658: checking for strip
    configure:2830: checking for Cygwin environment
    configure:2846: gcc -c -O2  conftest.c 1>&5
    configure: In function `main':
    configure:2842: `__CYGWIN32__' undeclared (first use in this function)
    configure:2842: (Each undeclared identifier is reported only once
    configure:2842: for each function it appears in.)
    configure: failed program was:
    #line 2835 "configure"
    #include "confdefs.h"

    int main() {

    #ifndef __CYGWIN__
    #define __CYGWIN__ __CYGWIN32__
    #endif
    return __CYGWIN__;
    ; return 0; }
    configure:2863: checking for mingw32 environment
    configure:2875: gcc -c -O2  conftest.c 1>&5
    configure: In function `main':
    configure:2871: `__MINGW32__' undeclared (first use in this function)
    configure:2871: (Each undeclared identifier is reported only once
    configure:2871: for each function it appears in.)
    configure: failed program was:
    #line 2868 "configure"
    #include "confdefs.h"

    int main() {
    return __MINGW32__;
    ; return 0; }
    ltcf-c.sh:need_lc: gcc -c -O2  conftest.c 1>&5
    ltcf-c.sh:need_lc: gcc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest
    ltconfig:670:checking for gcc option to produce PIC
    ltconfig:679:checking that gcc PIC flag -fPIC -DPIC works.
    ltconfig:689: gcc -c -O2 -fPIC -DPIC -DPIC  conftest.c 1>&5
    ltconfig:741: checking if gcc static flag -static works
    ltconfig:750: gcc -o conftest -O2   -static conftest.c  1>&5
    ltconfig:787: checking if gcc supports -c -o file.o
    ltconfig:788: gcc -c -O2 -o out/conftest2.o  conftest.c 1>&5
    ltconfig:841: checking if gcc supports -fno-rtti -fno-exceptions
    ltconfig:842: gcc -c -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
    ltconfig:1309: checking if global_symbol_pipe works
    ltconfig:1310: gcc -c -O2  conftest.c 1>&5
    ltconfig:1313: eval "/usr/local/bin/nm -B conftest.o | sed -n -e 's/^.*[     ]\([ABCDGISTW]\)[     ][     ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
    ltconfig:1365: gcc -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions   conftest.c conftstm.o 1>&5
    ltconfig:1469: checking for dlopen in -ldl
    ltconfig:1489: gcc -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions   conftest.c -ldl   1>&5
    ltconfig:1706: checking for dlfcn.h
    ltconfig:1717: gcc -c -O2 -fno-builtin -fno-rtti -fno-exceptions  conftest.c 1>&5 >/dev/null 2>conftest.out
    ltconfig:1745: checking whether a program can dlopen itself
    ltconfig:1799: gcc -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions  -DHAVE_DLFCN_H  -Wl,--export-dynamic conftest.c -ldl  1>&5
    ltconfig:1818: checking whether a statically linked program can dlopen itself
    ltconfig:1872: gcc -o conftest -O2 -fno-builtin -fno-rtti -fno-exceptions  -DHAVE_DLFCN_H  -Wl,--export-dynamic -static conftest.c -ldl  1>&5
    /usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -ldl
    ltconfig: failed program was:
    /*#line 1826 "ltconfig"*/

    #if HAVE_DLFCN_H
    #include <dlfcn.h>
    #endif

    #include <stdio.h>

    #ifdef RTLD_GLOBAL
    # define LTDL_GLOBAL    RTLD_GLOBAL
    #else
    # ifdef DL_GLOBAL
    #  define LTDL_GLOBAL    DL_GLOBAL
    # else
    #  define LTDL_GLOBAL    0
    # endif
    #endif

    /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
       find out it does not work in some platform. */
    #ifndef LTDL_LAZY_OR_NOW
    # ifdef RTLD_LAZY
    #  define LTDL_LAZY_OR_NOW    RTLD_LAZY
    # else
    #  ifdef DL_LAZY
    #   define LTDL_LAZY_OR_NOW    DL_LAZY
    #  else
    #   ifdef RTLD_NOW
    #    define LTDL_LAZY_OR_NOW    RTLD_NOW
    #   else
    #    ifdef DL_NOW
    #     define LTDL_LAZY_OR_NOW    DL_NOW
    #    else
    #     define LTDL_LAZY_OR_NOW    0
    #    endif
    #   endif
    #  endif
    # endif
    #endif

    void fnord() { int i=42;}
    int main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
        if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
        if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); return 1; }

    g++ -E conftest.cc
    ltconfig:670:checking for g++ option to produce PIC
    ltconfig:679:checking that g++ PIC flag -fPIC -DPIC works.
    ltconfig:689: g++ -c -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin -fPIC -DPIC -DPIC  conftest.cc 1>&5
    ltconfig:741: checking if g++ static flag -static works
    ltconfig:750: g++ -o conftest -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin   -static conftest.cc  1>&5
    ltconfig:787: checking if g++ supports -c -o file.o
    ltconfig:788: g++ -c -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin -o out/conftest2.o  conftest.cc 1>&5
    ltconfig:841: checking if g++ supports -fno-rtti -fno-exceptions
    ltconfig:842: g++ -c -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin -fno-rtti -fno-exceptions -c conftest.cc  conftest.cc 1>&5
    ltconfig:1309: checking if global_symbol_pipe works
    ltconfig:1310: g++ -c -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin  conftest.cc 1>&5
    ltconfig:1313: eval "/usr/local/bin/nm -B conftest.o | sed -n -e 's/^.*[     ]\([ABCDGISTW]\)[     ][     ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
    ltconfig:1365: g++ -o conftest -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin -fno-builtin -fno-rtti -fno-exceptions   conftest.cc conftstm.o 1>&5
    ltconfig:1706: checking for dlfcn.h
    ltconfig:1745: checking whether a program can dlopen itself
    ltconfig:1818: checking whether a statically linked program can dlopen itself
    configure:3011: checking for object suffix
    configure:3017: gcc -c -O2  conftest.c 1>&5
    configure:3037: checking for executable suffix
    configure:3047: gcc -o conftest -O2   conftest.c  1>&5
    configure:3093: checking for msgfmt
    configure:3127: checking for gmsgfmt
    configure:3172: checking for xgettext
    configure:3225: checking for main in -lcompat
    configure:3240: gcc -o conftest -O2   conftest.c -lcompat   1>&5
    /usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -lcompat
    configure: failed program was:
    #line 3233 "configure"
    #include "confdefs.h"

    int main() {
    main()
    ; return 0; }
    configure:3262: checking for crypt in -lcrypt
    configure:3281: gcc -o conftest -O2   conftest.c -lcrypt   1>&5
    configure:3355: checking for the third argument of getsockname
    configure:3384: g++ -c -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin  conftest.C 1>&5
    configure: In function `int main()':
    configure:3378: `socklen_t' undeclared (first use this function)
    configure:3378: (Each undeclared identifier is reported only once
    configure:3378: for each function it appears in.)
    configure:3378: parse error before `='
    configure:3379: `a' undeclared (first use this function)
    configure: failed program was:
    #line 3371 "configure"
    #include "confdefs.h"

    #include <sys/types.h>
    #include <sys/socket.h>

    int main() {

    socklen_t a=0;
    getsockname(0,(struct sockaddr*)0, &a);

    ; return 0; }
    configure:3413: g++ -c -Werror -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin  conftest.C 1>&5
    configure:3455: checking for dnet_ntoa in -ldnet
    configure:3474: gcc -o conftest -O2   conftest.c -ldnet   1>&5
    /usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -ldnet
    configure: failed program was:
    #line 3463 "configure"
    #include "confdefs.h"
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char dnet_ntoa();

    int main() {
    dnet_ntoa()
    ; return 0; }
    configure:3496: checking for dnet_ntoa in -ldnet_stub
    configure:3515: gcc -o conftest -O2   conftest.c -ldnet_stub   1>&5
    /usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -ldnet_stub
    configure: failed program was:
    #line 3504 "configure"
    #include "confdefs.h"
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char dnet_ntoa();

    int main() {
    dnet_ntoa()
    ; return 0; }
    configure:3537: checking for inet_ntoa
    configure:3565: gcc -o conftest -O2   conftest.c  1>&5
    /var/tmp/cc61aOvD1.o: In function `main':
    /var/tmp/cc61aOvD1.o(.text+0x4): undefined reference to `inet_ntoa'
    configure: failed program was:
    #line 3542 "configure"
    #include "confdefs.h"
    /* System header to define __stub macros and hopefully few prototypes,
        which can conflict with char inet_ntoa(); below.  */
    #include <assert.h>
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char inet_ntoa();

    int main() {

    /* The GNU C library defines this for functions which it implements
        to always fail with ENOSYS.  Some functions are actually named
        something starting with __ and the normal name is an alias.  */
    #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
    choke me
    #else
    inet_ntoa();
    #endif

    ; return 0; }
    configure:3586: checking for inet_ntoa in -lnsl
    configure:3605: gcc -o conftest -O2   conftest.c -lnsl   1>&5
    configure:3627: checking for connect
    configure:3655: gcc -o conftest -O2   conftest.c  1>&5
    /var/tmp/cc1paazD1.o: In function `main':
    /var/tmp/cc1paazD1.o(.text+0x4): undefined reference to `connect'
    configure: failed program was:
    #line 3632 "configure"
    #include "confdefs.h"
    /* System header to define __stub macros and hopefully few prototypes,
        which can conflict with char connect(); below.  */
    #include <assert.h>
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char connect();

    int main() {

    /* The GNU C library defines this for functions which it implements
        to always fail with ENOSYS.  Some functions are actually named
        something starting with __ and the normal name is an alias.  */
    #if defined (__stub_connect) || defined (__stub___connect)
    choke me
    #else
    connect();
    #endif

    ; return 0; }
    configure:3676: checking for connect in -lsocket
    configure:3695: gcc -o conftest -O2   conftest.c -lsocket  -lnsl  1>&5
    configure:3718: checking for remove
    configure:3746: gcc -o conftest -O2   conftest.c  1>&5
    configure:3810: checking for shmat
    configure:3838: gcc -o conftest -O2   conftest.c  1>&5
    configure:3904: checking for killpg in -lucb
    configure:3923: gcc -o conftest -O2   conftest.c -lucb   1>&5
    /usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -lucb
    configure: failed program was:
    #line 3912 "configure"
    #include "confdefs.h"
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char killpg();

    int main() {
    killpg()
    ; return 0; }
    configure:3992: checking size of int
    configure:4011: gcc -o conftest -O2   conftest.c  1>&5
    configure:4030: checking size of long
    configure:4049: gcc -o conftest -O2   conftest.c  1>&5
    configure:4068: checking size of char *
    configure:4087: gcc -o conftest -O2   conftest.c  1>&5
    configure:4108: checking for dlopen in -ldl
    configure:4152: checking for shl_unload in -ldld
    configure:4171: gcc -o conftest -O2   conftest.c -ldld   1>&5
    /usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -ldld
    configure: failed program was:
    #line 4160 "configure"
    #include "confdefs.h"
    /* Override any gcc2 internal prototype to avoid an error.  */
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */
    char shl_unload();

    int main() {
    shl_unload()
    ; return 0; }
    configure:4199: checking for bool
    configure:4223: g++ -c -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin  conftest.C 1>&5
    configure: In function `int main()':
    configure:4219: warning: unused variable `bool aBool'
    configure:4254: checking for extra includes
    configure:4285: checking for extra libs
    configure:4319: checking for libz
    configure:4345: gcc -o conftest -O2     conftest.c   -lz -lsocket  -lnsl 1>&5
    configure:4375: checking for X
    configure:4414: gcc -E  conftest.c >/dev/null 2>conftest.out
    configure:4490: gcc -o conftest -O2   conftest.c -lXt  1>&5
    /usr/local/lib/libXt.so: undefined reference to `XrmEnumerateDatabase'
    /usr/local/lib/libXt.so: undefined reference to `XSetWMIconName'
    /usr/local/lib/libXt.so: undefined reference to `XFindContext'
    /usr/local/lib/libXt.so: undefined reference to `XCreateFontCursor'
    /usr/local/lib/libXt.so: undefined reference to `XResourceManagerString'
    /usr/local/lib/libXt.so: undefined reference to `XrmCombineDatabase'
    /usr/local/lib/libXt.so: undefined reference to `SmcSaveYourselfDone'
    /usr/local/lib/libXt.so: undefined reference to `XSetTransientForHint'
    /usr/local/lib/libXt.so: undefined reference to `XCreateRegion'
    /usr/local/lib/libXt.so: undefined reference to `XGrabKeyboard'
    /usr/local/lib/libXt.so: undefined reference to `XrmQGetResource'
    /usr/local/lib/libXt.so: undefined reference to `XSync'
    /usr/local/lib/libXt.so: undefined reference to `XIntersectRegion'
    /usr/local/lib/libXt.so: undefined reference to `XAddConnectionWatch'
    /usr/local/lib/libXt.so: undefined reference to `XFreeCursor'
    /usr/local/lib/libXt.so: undefined reference to `XrmQGetSearchList'
    /usr/local/lib/libXt.so: undefined reference to `XMapWindow'
    /usr/local/lib/libXt.so: undefined reference to `IceConnectionNumber'
    /usr/local/lib/libXt.so: undefined reference to `SmcDeleteProperties'
    /usr/local/lib/libXt.so: undefined reference to `XCloseDisplay'
    /usr/local/lib/libXt.so: undefined reference to `XIconifyWindow'
    /usr/local/lib/libXt.so: undefined reference to `XRaiseWindow'
    /usr/local/lib/libXt.so: undefined reference to `XInternAtoms'
    /usr/local/lib/libXt.so: undefined reference to `XrmStringToBindingQuarkList'
    /usr/local/lib/libXt.so: undefined reference to `XPending'
    /usr/local/lib/libXt.so: undefined reference to `XDisplayOfScreen'
    /usr/local/lib/libXt.so: undefined reference to `XLoadFont'
    /usr/local/lib/libXt.so: undefined reference to `XSetSelectionOwner'
    /usr/local/lib/libXt.so: undefined reference to `XGetModifierMapping'
    /usr/local/lib/libXt.so: undefined reference to `XIfEvent'
    /usr/local/lib/libXt.so: undefined reference to `XDeleteContext'
    /usr/local/lib/libXt.so: undefined reference to `XWMGeometry'
    /usr/local/lib/libXt.so: undefined reference to `XmbTextListToTextProperty'
    /usr/local/lib/libXt.so: undefined reference to `XAllocNamedColor'
    /usr/local/lib/libXt.so: undefined reference to `XLookupColor'
    /usr/local/lib/libXt.so: undefined reference to `XFreeGC'
    /usr/local/lib/libXt.so: undefined reference to `XAllocSizeHints'
    /usr/local/lib/libXt.so: undefined reference to `XConvertCase'
    /usr/local/lib/libXt.so: undefined reference to `IceProcessMessages'
    /usr/local/lib/libXt.so: undefined reference to `XCreateFontSet'
    /usr/local/lib/libXt.so: undefined reference to `XDeleteProperty'
    /usr/local/lib/libXt.so: undefined reference to `XKeysymToString'
    /usr/local/lib/libXt.so: undefined reference to `XUnloadFont'
    /usr/local/lib/libXt.so: undefined reference to `XDestroyRegion'
    /usr/local/lib/libXt.so: undefined reference to `XConvertSelection'
    /usr/local/lib/libXt.so: undefined reference to `XMaxRequestSize'
    /usr/local/lib/libXt.so: undefined reference to `XUngrabButton'
    /usr/local/lib/libXt.so: undefined reference to `XGrabPointer'
    /usr/local/lib/libXt.so: undefined reference to `XNextRequest'
    /usr/local/lib/libXt.so: undefined reference to `XScreenResourceString'
    /usr/local/lib/libXt.so: undefined reference to `XPutBackEvent'
    /usr/local/lib/libXt.so: undefined reference to `XrmPutLineResource'
    /usr/local/lib/libXt.so: undefined reference to `XSetLocaleModifiers'
    /usr/local/lib/libXt.so: undefined reference to `XFreeStringList'
    /usr/local/lib/libXt.so: undefined reference to `XQueryPointer'
    /usr/local/lib/libXt.so: undefined reference to `XSendEvent'
    /usr/local/lib/libXt.so: undefined reference to `XSetWMHints'
    /usr/local/lib/libXt.so: undefined reference to `XGetGCValues'
    /usr/local/lib/libXt.so: undefined reference to `XSetWMName'
    /usr/local/lib/libXt.so: undefined reference to `XrmUniqueQuark'
    /usr/local/lib/libXt.so: undefined reference to `XFree'
    /usr/local/lib/libXt.so: undefined reference to `XMapSubwindows'
    /usr/local/lib/libXt.so: undefined reference to `XGetWindowProperty'
    /usr/local/lib/libXt.so: undefined reference to `XFreeModifiermap'
    /usr/local/lib/libXt.so: undefined reference to `XFreeColors'
    /usr/local/lib/libXt.so: undefined reference to `SmcRequestSaveYourselfPhase2'
    /usr/local/lib/libXt.so: undefined reference to `XSetErrorHandler'
    /usr/local/lib/libXt.so: undefined reference to `XrmPutStringResource'
    /usr/local/lib/libXt.so: undefined reference to `XFreeFontSet'
    /usr/local/lib/libXt.so: undefined reference to `XChangeProperty'
    /usr/local/lib/libXt.so: undefined reference to `XChangeGC'
    /usr/local/lib/libXt.so: undefined reference to `XDestroyWindow'
    /usr/local/lib/libXt.so: undefined reference to `XrmCombineFileDatabase'
    /usr/local/lib/libXt.so: undefined reference to `XGetSelectionOwner'
    /usr/local/lib/libXt.so: undefined reference to `XrmGetDatabase'
    /usr/local/lib/libXt.so: undefined reference to `XEmptyRegion'
    /usr/local/lib/libXt.so: undefined reference to `XGrabButton'
    /usr/local/lib/libXt.so: undefined reference to `XStringToKeysym'
    /usr/local/lib/libXt.so: undefined reference to `XListDepths'
    /usr/local/lib/libXt.so: undefined reference to `XClipBox'
    /usr/local/lib/libXt.so: undefined reference to `XRefreshKeyboardMapping'
    /usr/local/lib/libXt.so: undefined reference to `XQueryColor'
    /usr/local/lib/libXt.so: undefined reference to `SmcInteractDone'
    /usr/local/lib/libXt.so: undefined reference to `SmcCloseConnection'
    /usr/local/lib/libXt.so: undefined reference to `XConfigureWindow'
    /usr/local/lib/libXt.so: undefined reference to `XFreeFont'
    /usr/local/lib/libXt.so: undefined reference to `XChangeWindowAttributes'
    /usr/local/lib/libXt.so: undefined reference to `XSetCommand'
    /usr/local/lib/libXt.so: undefined reference to `XMatchVisualInfo'
    /usr/local/lib/libXt.so: undefined reference to `SmcSetProperties'
    /usr/local/lib/libXt.so: undefined reference to `XSynchronize'
    /usr/local/lib/libXt.so: undefined reference to `XSetWMProperties'
    /usr/local/lib/libXt.so: undefined reference to `XkbLookupKeySym'
    /usr/local/lib/libXt.so: undefined reference to `XGrabKey'
    /usr/local/lib/libXt.so: undefined reference to `XFilterEvent'
    /usr/local/lib/libXt.so: undefined reference to `XLoadQueryFont'
    /usr/local/lib/libXt.so: undefined reference to `XPeekEvent'
    /usr/local/lib/libXt.so: undefined reference to `XTranslateCoordinates'
    /usr/local/lib/libXt.so: undefined reference to `XSetWMNormalHints'
    /usr/local/lib/libXt.so: undefined reference to `XSupportsLocale'
    /usr/local/lib/libXt.so: undefined reference to `XrmStringToQuark'
    /usr/local/lib/libXt.so: undefined reference to `XGetAtomName'
    /usr/local/lib/libXt.so: undefined reference to `XClearArea'
    /usr/local/lib/libXt.so: undefined reference to `XrmQPutResource'
    /usr/local/lib/libXt.so: undefined reference to `XInternAtom'
    /usr/local/lib/libXt.so: undefined reference to `XDisplayKeycodes'
    /usr/local/lib/libXt.so: undefined reference to `SmcOpenConnection'
    /usr/local/lib/libXt.so: undefined reference to `XWithdrawWindow'
    /usr/local/lib/libXt.so: undefined reference to `XFlush'
    /usr/local/lib/libXt.so: undefined reference to `XCreateWindow'
    /usr/local/lib/libXt.so: undefined reference to `XScreenNumberOfScreen'
    /usr/local/lib/libXt.so: undefined reference to `XrmGetStringDatabase'
    /usr/local/lib/libXt.so: undefined reference to `XNextEvent'
    /usr/local/lib/libXt.so: undefined reference to `XrmInitialize'
    /usr/local/lib/libXt.so: undefined reference to `SmcInteractRequest'
    /usr/local/lib/libXt.so: undefined reference to `XSelectInput'
    /usr/local/lib/libXt.so: undefined reference to `XrmGetFileDatabase'
    /usr/local/lib/libXt.so: undefined reference to `XUnionRectWithRegion'
    /usr/local/lib/libXt.so: undefined reference to `XSaveContext'
    /usr/local/lib/libXt.so: undefined reference to `SmcModifyCallbacks'
    /usr/local/lib/libXt.so: undefined reference to `XEventsQueued'
    /usr/local/lib/libXt.so: undefined reference to `XProcessInternalConnection'
    /usr/local/lib/libXt.so: undefined reference to `XUngrabKey'
    /usr/local/lib/libXt.so: undefined reference to `XrmMergeDatabases'
    /usr/local/lib/libXt.so: undefined reference to `XrmSetDatabase'
    /usr/local/lib/libXt.so: undefined reference to `XrmQGetSearchResource'
    /usr/local/lib/libXt.so: undefined reference to `XQueryFont'
    /usr/local/lib/libXt.so: undefined reference to `XDisplayName'
    /usr/local/lib/libXt.so: undefined reference to `SmcClientID'
    /usr/local/lib/libXt.so: undefined reference to `XUngrabKeyboard'
    /usr/local/lib/libXt.so: undefined reference to `XCheckIfEvent'
    /usr/local/lib/libXt.so: undefined reference to `XrmGetResource'
    /usr/local/lib/libXt.so: undefined reference to `XrmParseCommand'
    /usr/local/lib/libXt.so: undefined reference to `XGetKeyboardMapping'
    /usr/local/lib/libXt.so: undefined reference to `XrmDestroyDatabase'
    /usr/local/lib/libXt.so: undefined reference to `XUngrabPointer'
    /usr/local/lib/libXt.so: undefined reference to `XrmQuarkToString'
    /usr/local/lib/libXt.so: undefined reference to `XCreatePixmap'
    /usr/local/lib/libXt.so: undefined reference to `XUnmapWindow'
    /usr/local/lib/libXt.so: undefined reference to `XCreateGC'
    /usr/local/lib/libXt.so: undefined reference to `SmcGetIceConnection'
    /usr/local/lib/libXt.so: undefined reference to `XOpenDisplay'
    /usr/local/lib/libXt.so: undefined reference to `XrmPermStringToQuark'
    /usr/local/lib/libXt.so: undefined reference to `XMapRaised'
    configure: failed program was:
    #line 4483 "configure"
    #include "confdefs.h"

    int main() {
    XtMalloc()
    ; return 0; }
    configure:4661: checking for IceConnectionNumber in -lICE
    configure:4680: gcc -o conftest -O2   -L/usr/local/lib conftest.c -lICE -lsocket  -lnsl  1>&5
    configure:4709: checking for libXext
    configure:4732: gcc -o conftest -O2   -L/usr/local/lib  conftest.c -lXext -lX11 -lsocket  -lnsl 1>&5
    configure:4820: checking for libpng
    configure:4850: gcc -o conftest -O2 -I/usr/local/include    conftest.c  -L/usr/local/lib  -lpng -lz -lm -lX11 -lsocket  -lnsl 1>&5
    configure:4882: checking for libjpeg6b
    configure:4920: gcc -o conftest -O2 -I/usr/local/include    conftest.c -L/usr/local/lib  -ljpeg6b -lm 1>&5
    /usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -ljpeg6b
    configure: failed program was:
    #line 4899 "configure"
    #include "confdefs.h"
    /* Override any gcc2 internal prototype to avoid an error.  */
    struct jpeg_decompress_struct;
    typedef struct jpeg_decompress_struct * j_decompress_ptr;
    typedef int size_t;
    #ifdef __cplusplus
    extern "C" {
    #endif
        void jpeg_CreateDecompress(j_decompress_ptr cinfo,
                                        int version, size_t structsize);
    #ifdef __cplusplus
    }
    #endif
    /* We use char because int might match the return type of a gcc2
        builtin and then its argument prototype would still apply.  */

    int main() {
    jpeg_CreateDecompress(0L, 0, 0);
    ; return 0; }
    configure:4943: checking for libjpeg
    configure:4981: gcc -o conftest -O2 -I/usr/local/include    conftest.c -L/usr/local/lib  -ljpeg -lm 1>&5
    configure:5142: checking for Qt
    tried NO
    configure:5303: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin -I/home/vispa/qt/include -I/usr/local/include   -L/home/vispa/qt/lib -L/usr/local/lib  conftest.C  -lqt -lpng -lz -lm -ljpeg  -lXext -lX11 -lSM -lICE -lsocket  -lnsl 1>&5
    conftest.C: In function `int main()':
    conftest.C:20: warning: unused variable `int magnolia'
    conftest.C:15: warning: unused variable `class QStringList * t'
    /usr/local/sparc-sun-solaris2.6/bin/ld: warning: libICE.so.6, needed by /home/vispa/qt/lib/libqt.so, may conflict with libICE.so.6.3
    /usr/local/sparc-sun-solaris2.6/bin/ld: warning: libSM.so.6, needed by /home/vispa/qt/lib/libqt.so, may conflict with libSM.so.6.0
    /usr/local/sparc-sun-solaris2.6/bin/ld: warning: libXext.so.0, needed by /home/vispa/qt/lib/libqt.so, may conflict with libXext.so.6.4
    /usr/local/sparc-sun-solaris2.6/bin/ld: warning: libX11.so.4, needed by /home/vispa/qt/lib/libqt.so, may conflict with libX11.so.6.1
    /var/tmp/cc.waW5D1.o: In function `main':
    /var/tmp/cc.waW5D1.o(.text+0x30): undefined reference to `QString::shared_null'
    /var/tmp/cc.waW5D1.o(.text+0x34): undefined reference to `QString::shared_null'
    /var/tmp/cc.waW5D1.o(.text+0x44): undefined reference to `QString::makeSharedNull(void)'
    /var/tmp/cc.waW5D1.o(.text+0x84): undefined reference to `QIconView::QIconView(QWidget *, char const *, unsigned int)'
    /var/tmp/cc.waW5D1.o(.text+0x90): undefined reference to `QIconView::setWordWrapIconText(bool)'
    /var/tmp/cc.waW5D1.o(.text+0x98): undefined reference to `QString::shared_null'
    /var/tmp/cc.waW5D1.o(.text+0xa8): undefined reference to `QString::makeSharedNull(void)'
    /var/tmp/cc.waW5D1.o(.text+0xd0): undefined reference to `QString::setLatin1(char const *, int)'
    /var/tmp/cc.waW5D1.o(.text+0xf4): undefined reference to `QString::shared_null'
    /var/tmp/cc.waW5D1.o(.text+0x100): undefined reference to `QString::shared_null'
    /var/tmp/cc.waW5D1.o(.text+0x104): undefined reference to `QStringData::deleteSelf(void)'
    /var/tmp/cc.waW5D1.o(.text+0x110): undefined reference to `QIconView::~QIconView(void)'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1cG__CrunSregister_exit_code6FpG_v_v_'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1c2K6Fpv_v_'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1cG__CrunKpure_error6F_v_'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1cG__CrunKvector_des6FpvIIpF1_v_v_'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1c2k6Fpv_v_'
    /home/vispa/qt/lib/libqt.so: undefined reference to `c::c(n6,  (int0_t))'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1cG__CrunKvector_del6FpvIpF1_v_1_'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1cG__CrunKvector_new6FpvIIpF1_vp2_1_'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1cG__CrunMex_rethrow_q6F_v_'
    /home/vispa/qt/lib/libqt.so: undefined reference to `c::c(N6,  (int0_t))'
    /home/vispa/qt/lib/libqt.so: undefined reference to `__1cG__CrunKvector_con6FpvIIpF1_vp2_v_'
    configure: failed program was:
    #include "confdefs.h"
    #include <qglobal.h>
    #include <qapplication.h>
    #include <qapp.h>
    #include <qobjcoll.h>
    #include <qevent.h>
    #include <qstring.h>
    #include <qstyle.h>
    #include <qiconview.h>
    #if ! (QT_VERSION >= 221)
    #error 1
    #endif

    int main() {
        QStringList *t = new QStringList();
        QIconView iv(0);
        iv.setWordWrapIconText(false);
        QString s;
        s.setLatin1("Elvis is alive", 14);
        int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
        return 0;
    }

    Thank you.

    Yours truly,
    Arvind

     
    • Colin Desmond

      Colin Desmond - 2002-06-22

      Arvind,

      KProf needs KDE to build. KProf 1.3 requires KDE 2.2.x
      and Kprof 1.3.1 requires the newer KDE 3.0. There are no functional differences between these versions.

      Each of these versions of KDe has its own required version of QT, this should be clear when you install KDE.

      I am not sure about using the CC compiler, it is possible that a more recent version of QT would build with gcc under Solaris.

      In short -  install KDE3 and it's required version of QT (3.0.3 from memory) and then try installing KProf.

      Colin.

       

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

Sign up for the SourceForge newsletter:





No, thanks