1 Reply Latest reply on Apr 17, 2009 12:40 AM by suravee

    cannot build CodeAnalyst-Linux-2.8.29.tar.gz

    inflo

      hi,

      i try to build ca but the first thing is, that it cannot find QT_DIR while running configure in main directory. The return is: Warning: a working Qt not found; no GUI will be built. This output comes from the src/oprofile/configuration file, the last statement, but i use this line to configure oprofile

      ./configure --with-qt-dir=/usr/lib64/q3 --with-qt-includes=/usr/include/qt3 --with-qt-libraries=/usr/lib64/qt3

       

      when i then try to build it without gui support, then these errors show up

       

      make[5]: Entering directory `/home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/ca/libs/libopdata'
      /bin/sh ../../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../src/ca/gui  -I/usr/include/qt3 -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///daemon -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libop -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libdb -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libopt++ -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++ -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libregex -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libpp -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///pp -I ../../include -I ../liboutput -I ../libca/ -pipe -D_x86_64_ -W -Wall -fno-common -ftemplate-depth-50 -fPIC   -O2 -MT opdata_handler.lo -MD -MP -MF .deps/opdata_handler.Tpo -c -o opdata_handler.lo opdata_handler.cpp
       g++ -DHAVE_CONFIG_H -I. -I../../../../src/ca/gui -I/usr/include/qt3 -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///daemon -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libop -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libdb -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libopt++ -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++ -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libregex -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libpp -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///pp -I ../../include -I ../liboutput -I ../libca/ -pipe -D_x86_64_ -W -Wall -fno-common -ftemplate-depth-50 -fPIC -O2 -MT opdata_handler.lo -MD -MP -MF .deps/opdata_handler.Tpo -c opdata_handler.cpp  -fPIC -DPIC -o .libs/opdata_handler.o
      In file included from opdata_handler.cpp:10:
      /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++/op_bfd.h:175: warning: type qualifiers ignored on function return type
      opdata_handler.cpp: In member function ‘bool opdata_handler::isJoFile(parsed_filename)’:
      opdata_handler.cpp:371: warning: comparison between signed and unsigned integer expressions
      opdata_handler.cpp: In member function ‘bool opdata_handler::getJitInfo(op_bfd*, std::string, std::string*, long long unsigned int*, unsigned int*)’:
      opdata_handler.cpp:614: warning: unused variable ‘header_offset’
      /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++/utility.h: In destructor ‘scoped_ptr<T>::~scoped_ptr() [with T = opd_header]’:
      /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libpp/profile.h:33:   instantiated from here
      /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++/utility.h:32: warning: possible problem detected in invocation of delete operator:
      /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++/utility.h:32: warning: invalid use of incomplete type ‘struct opd_header’
      /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libpp/profile.h:25: warning: forward declaration of ‘struct opd_header’
      /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++/utility.h:32: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
       g++ -DHAVE_CONFIG_H -I. -I../../../../src/ca/gui -I/usr/include/qt3 -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///daemon -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libop -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libdb -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libopt++ -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++ -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libregex -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libpp -I /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///pp -I ../../include -I ../liboutput -I ../libca/ -pipe -D_x86_64_ -W -Wall -fno-common -ftemplate-depth-50 -fPIC -O2 -MT opdata_handler.lo -MD -MP -MF .deps/opdata_handler.Tpo -c opdata_handler.cpp -o opdata_handler.o >/dev/null 2>&1
      mv -f .deps/opdata_handler.Tpo .deps/opdata_handler.Plo
      /bin/sh ../../../../libtool --tag=CXX   --mode=link g++  -O2 -Wl -fPIC --no-undefined -L/usr/lib64 -o libopdata.la -rpath /opt/CodeAnalyst//lib opdata_handler.lo ../../../../src/ca//libs/liboutput/lib_tbp_output.la /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libpp/libpp.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libregex/libop_regex.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++/libutil++.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libop/libop.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil/libutil.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libdb/libodb.a  -lelf -lpopt -ldl -lbfd -liberty

      *** Warning: Linking the shared library libopdata.la against the
      *** static library /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libpp/libpp.a is not portable!

      *** Warning: Linking the shared library libopdata.la against the
      *** static library /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libregex/libop_regex.a is not portable!

      *** Warning: Linking the shared library libopdata.la against the
      *** static library /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++/libutil++.a is not portable!

      *** Warning: Linking the shared library libopdata.la against the
      *** static library /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libop/libop.a is not portable!

      *** Warning: Linking the shared library libopdata.la against the
      *** static library /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil/libutil.a is not portable!

      *** Warning: Linking the shared library libopdata.la against the
      *** static library /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libdb/libodb.a is not portable!
      g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.3.2/crtbeginS.o  .libs/opdata_handler.o  -Wl,--rpath -Wl,/home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/ca/libs/liboutput/.libs -Wl,--rpath -Wl,/opt/CodeAnalyst//lib -L/usr/lib64 ../../../../src/ca//libs/liboutput/.libs/lib_tbp_output.so /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libpp/libpp.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libregex/libop_regex.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil++/libutil++.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libop/libop.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libutil/libutil.a /home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/oprofile///libdb/libodb.a -lelf /usr/lib/libpopt.so -ldl -lbfd -liberty -L/usr/lib/gcc/x86_64-linux-gnu/4.3.2 -L/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.3.2/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/crtn.o  -Wl,-soname -Wl,libopdata.so.0 -o .libs/libopdata.so.0.0.0
      /usr/bin/ld: /usr/lib64/libiberty.a(xmemdup.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
      /usr/lib64/libiberty.a: could not read symbols: Bad value
      collect2: ld returned 1 exit status
      make[5]: *** [libopdata.la] Fehler 1
      make[5]: Leaving directory `/home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/ca/libs/libopdata'
      make[4]: *** [all-recursive] Fehler 1
      make[4]: Leaving directory `/home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/ca/libs/libopdata'
      make[3]: *** [all-recursive] Fehler 1
      make[3]: Leaving directory `/home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/ca/libs'
      make[2]: *** [all-recursive] Fehler 1
      make[2]: Leaving directory `/home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src/ca'
      make[1]: *** [all-recursive] Fehler 1
      make[1]: Leaving directory `/home/bob/download/codeanalyst-2.89/CodeAnalyst-Linux-2.8.29/src'
      make: *** [all-recursive] Fehler 1

       

      what do i wrong? thanks for help

       

      flo