Menu

#9 Build issue

release_0.11.1
closed
nobody
None
bug
2016-06-26
2016-02-17
No

Hello,

I have tried to build knoda4 on a NetBSD workstation and a linux box without any result. I have built a long time ago knoda 0.9 without any trouble and I have rebuilt knoda4 as I have found a very strange bug : when I close a panel on main interface, I'm unable to reopen it and I have to delete .kde directory to obtain a running knoda4.

On both systems, I have built hk_classes 0.8.3. knoda4 link aborts with :

...
CMakeFiles/hk_kde4classes.dir/knodamaindockwindowbase.cpp.o : Dans la fonction « knodamaindockwindowbase::slot_store_connection() » :
knodamaindockwindowbase.cpp:(.text+0xaac4) : référence indéfinie vers « u2l »
knodamaindockwindowbase.cpp:(.text+0xaacf) : référence indéfinie vers « hk_url::hk_url(std::cxx11::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&) »
knodamaindockwindowbase.cpp:(.text+0xaae6) : référence indéfinie vers « hk_database::store_connectionfile(hk_url const&, bool) »
knodamaindockwindowbase.cpp:(.text+0xab5f) : référence indéfinie vers « hk_class::~hk_class() »
CMakeFiles/hk_kde4classes.dir/knodamaindockwindowbase.cpp.o : Dans la fonction « hk_url::~hk_url() » :
knodamaindockwindowbase.cpp:(.text._ZN6hk_urlD2Ev[_ZN6hk_urlD5Ev]+0x64) : référence indéfinie vers « hk_class::~hk_class() »
CMakeFiles/hk_kde4classes.dir/knodamaindockwindowbase.cpp.o : Dans la fonction « _GLOBAL
sub_I_knodamaindockwindowbase.cpp » :
knodamaindockwindowbase.cpp:(.text.startup+0x1722) : référence indéfinie vers « hk_colour::hk_colour(int, int, int) »
knodamaindockwindowbase.cpp:(.text.startup+0x1729) : référence indéfinie vers « hk_colour::~hk_colour() »
knodamaindockwindowbase.cpp:(.text.startup+0x175a) : référence indéfinie vers « hk_colour::hk_colour(int, int, int) »
knodamaindockwindowbase.cpp:(.text.startup+0x1782) : référence indéfinie vers « hk_colour::hk_colour(int, int, int) »
knodamaindockwindowbase.cpp:(.text.startup+0x17ad) : référence indéfinie vers « hk_colour::hk_colour(int, int, int) »
knodamaindockwindowbase.cpp:(.text.startup+0x17de) : référence indéfinie vers « hk_colour::hk_colour(int, int, int) »
knodamaindockwindowbase.cpp:(.text.startup+0x180c) : référence indéfinie vers « hk_colour::hk_colour(int, int, int) »
CMakeFiles/hk_kde4classes.dir/knodamaindockwindowbase.cpp.o:knodamaindockwindowbase.cpp:(.text.startup+0x183d) : encore plus de références indéfinies suivent vers « hk_colour::hk_colour(int, int, int) »
CMakeFiles/hk_kde4classes.dir/knodamaindockwindowbase.cpp.o : Dans la fonction « hk_url::~hk_url() » :
knodamaindockwindowbase.cpp:(.text._ZN6hk_urlD0Ev[_ZN6hk_urlD5Ev]+0x63) : référence indéfinie vers « hk_class::~hk_class() »
CMakeFiles/hk_kde4classes.dir/knodamaindockwindowbase.cpp.o:(.data.rel.ro._ZTI6hk_url[_ZTI6hk_url]+0x10) : référence indéfinie vers « typeinfo for hk_class »
CMakeFiles/hk_kde4classes.dir/knodamaindockwindowbase.cpp.o:(.data.rel.ro._ZTV6hk_url[_ZTV6hk_url]+0x10) : référence indéfinie vers « hk_class::savedata(std::ostream&) »
CMakeFiles/hk_kde4classes.dir/knodamaindockwindowbase.cpp.o:(.data.rel.ro._ZTV6hk_url[_ZTV6hk_url]+0x18) : référence indéfinie vers « hk_class::loaddata(_xmlNode) »
collect2: error: ld returned 1 exit status
hk_kdeclasses/CMakeFiles/hk_kde4classes.dir/build.make:2396: recipe for target 'lib64/libhk_kde4classes.so.8.0.2' failed
make[2]: [lib64/libhk_kde4classes.so.8.0.2] Error 1
CMakeFiles/Makefile2:138: recipe for target 'hk_kdeclasses/CMakeFiles/hk_kde4classes.dir/all' failed
make[1]:
[hk_kdeclasses/CMakeFiles/hk_kde4classes.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make:
** [all] Error 2

Of course, I have checked that all pathes were correct. Thus, I have tried to build hk_classes 0.8.4. This libray was configured with :

./configure --with-python-incdir=/usr/pkg/include/python2.7 --with-python-libdir=/usr/pkg/lib/ --with-fontconfig-incdir=/usr/X11R7/include/fontconfig --with-fontconfig-libdir=/usr/X11R7/lib --with-mysql-incdir=/usr/pkg/include/mysql --with-mysql-libdir=/usr/pkg/lib/ --with-postgres-incdir=/usr/pkg/include --with-postgres-libdir=/usr/pkg/lib --prefix=/usr/local

and build stage aborts with :

if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../hk_classes -I/usr/pkg/include/mysql -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings -I/usr/pkg/include/libxml2 -g -O2 -MT hk_mysqlcolumn.lo -MD -MP -MF ".deps/hk_mysqlcolumn.Tpo" -c -o hk_mysqlcolumn.lo hk_mysqlcolumn.cpp; then mv -f ".deps/hk_mysqlcolumn.Tpo" ".deps/hk_mysqlcolumn.Plo"; else rm -f ".deps/hk_mysqlcolumn.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../hk_classes -I/usr/pkg/include/mysql -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings -I/usr/pkg/include/libxml2 -g -O2 -MT hk_mysqlcolumn.lo -MD -MP -MF .deps/hk_mysqlcolumn.Tpo -c hk_mysqlcolumn.cpp -fPIC -DPIC -o .libs/hk_mysqlcolumn.o
In file included from ../hk_classes/hk_class.h:13:0,
from ../hk_classes/hk_column.h:13,
from ../hk_classes/hk_storagecolumn.h:13,
from hk_mysqlcolumn.h:13,
from hk_mysqlcolumn.cpp:11:
../hk_classes/hk_definitions.h:129:3: warning: 'typedef' was ignored in this declaration [enabled by default]
} ;
^
../hk_classes/hk_definitions.h:145:3: warning: 'typedef' was ignored in this declaration [enabled by default]
} ;
^
../hk_classes/hk_definitions.h:168:3: warning: 'typedef' was ignored in this declaration [enabled by default]
} ;
^
../hk_classes/hk_definitions.h:238:1: warning: 'typedef' was ignored in this declaration [enabled by default]
} ;
^
In file included from ../hk_classes/hk_storagedatasource.h:13:0,
from hk_mysqldatasource.h:14,
from hk_mysqlcolumn.cpp:12:
../hk_classes/hk_datasource.h:756:8: warning: 'typedef' was ignored in this declaration [enabled by default]
};
^
hk_mysqlcolumn.cpp: In member function 'virtual bool hk_mysqlcolumn::driver_specific_asstring(const hk_string&)':
hk_mysqlcolumn.cpp:116:41: error: 'strcpy' was not declared in this scope
strcpy(p_original_new_data,s.c_str());
^
*** Error code 1

Stop.
make[2]: stopped in /home/bertrand/hk_classes-0.8.4/hk_mysqlclasses
*** Error code 1

Stop.
make[1]: stopped in /home/bertrand/hk_classes-0.8.4
*** Error code 1

Stop.
make: stopped in /home/bertrand/hk_classes-0.8.4

Best regards,

JB

Discussion

  • hanakp

    hanakp - 2016-02-21
     
    • BERTRAND Joël

      BERTRAND Joël - 2016-02-22

      hanakp a écrit :

      • Comment:

      Hello,

      Hello,
      

      I prepared mysql driver patch for hk_classes 0.8.4 which should solve
      problem with
      compilation of hk_classes 0.8.4 you experienced. It is available at:
      https://sourceforge.net/projects/knoda4/files/hk_classes/
      Please:
      1. apply mysql driver patch to hk_classes 0.8.4
      2. compile and install hk_classes 0.8.4

      With your patch, I can build hk_classes 0.8.4 without trouble. I will
      

      try to check if I can build last knoda4 application.

      Regards,
      
      JB
      
       
    • BERTRAND Joël

      BERTRAND Joël - 2016-02-23

      hanakp a écrit :

      • Comment:

      Hello,

      I prepared mysql driver patch for hk_classes 0.8.4 which should solve
      problem with
      compilation of hk_classes 0.8.4 you experienced. It is available at:
      https://sourceforge.net/projects/knoda4/files/hk_classes/
      Please:
      1. apply mysql driver patch to hk_classes 0.8.4
      2. compile and install hk_classes 0.8.4
      3. compile and install knoda4-0.11.0

      If you get any compilation errors, provide me with:
      1. full output of configure script
      2. full output of make command
      for package which failed to compile.

      Hello,
      
      I have tried to build knoda 0.11 against hk_classes 0.8.4.
      

      Output of configure script is :

      -- Found Qt-Version 4.8.7 (using /usr/pkg/qt4/bin/qmake)
      -- Found X11: /usr/X11R7/lib/libX11.so
      -- Found KDE 4.12 include dir: /usr/pkg/include
      -- Found KDE 4.12 library dir: /usr/pkg/lib
      -- Found the KDE4 kconfig_compiler preprocessor:
      /usr/pkg/bin/kconfig_compiler
      -- Found automoc4: /usr/pkg/bin/automoc4
      -- Found ktexteditor libraries: KDE4__ktexteditor
      -- Found hk_classes include directory: /usr/local/include/hk_classes
      -- Found hk_classes library: /usr/local/lib
      CMake Warning (dev) at /usr/pkg/lib/automoc4/Automoc4Config.cmake:179
      (get_directory_property):
      Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in
      directory
      property. Run "cmake --help-policy CMP0059" for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.
      Call Stack (most recent call first):
      /usr/pkg/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:1055
      (_automoc4_kde4_pre_target_handling)
      hk_kdeclasses/CMakeLists.txt:100 (kde4_add_library)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at /usr/pkg/lib/automoc4/Automoc4Config.cmake:179
      (get_directory_property):
      Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in
      directory
      property. Run "cmake --help-policy CMP0059" for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.
      Call Stack (most recent call first):
      /usr/pkg/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:679
      (_automoc4_kde4_pre_target_handling)
      hk_kdedbdesigner/CMakeLists.txt:9 (kde4_add_plugin)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at /usr/pkg/lib/automoc4/Automoc4Config.cmake:179
      (get_directory_property):
      Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in
      directory
      property. Run "cmake --help-policy CMP0059" for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.
      Call Stack (most recent call first):
      /usr/pkg/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:679
      (_automoc4_kde4_pre_target_handling)
      hk_kdeformpart/CMakeLists.txt:9 (kde4_add_plugin)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at /usr/pkg/lib/automoc4/Automoc4Config.cmake:179
      (get_directory_property):
      Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in
      directory
      property. Run "cmake --help-policy CMP0059" for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.
      Call Stack (most recent call first):
      /usr/pkg/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:679
      (_automoc4_kde4_pre_target_handling)
      hk_kdegridpart/CMakeLists.txt:9 (kde4_add_plugin)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at /usr/pkg/lib/automoc4/Automoc4Config.cmake:179
      (get_directory_property):
      Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in
      directory
      property. Run "cmake --help-policy CMP0059" for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.
      Call Stack (most recent call first):
      /usr/pkg/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:679
      (_automoc4_kde4_pre_target_handling)
      hk_kdemodulepart/CMakeLists.txt:9 (kde4_add_plugin)
      This warning is for project developers. Use -Wno-dev to suppress it.
      CMake Warning (dev) at
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:747 (if):
      Policy CMP0054 is not set: Only interpret if() arguments as variables or
      keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
      details. Use the cmake_policy command to set the policy and suppress
      this
      warning.

      Quoted keywords like "TEST" will no longer be interpreted as keywords
      when
      the policy is set to NEW. Since the policy is not set the OLD behavior
      will be used.
      Call Stack (most recent call first):
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:979
      (kde4_check_executable_params)
      knoda/CMakeLists.txt:18 (kde4_add_executable)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:747 (if):
      Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake
      --help-policy CMP0064" for policy details. Use the cmake_policy
      command to
      set the policy and suppress this warning.

      TEST will be interpreted as an operator when the policy is set to NEW.
      Since the policy is not set the OLD behavior will be used.
      Call Stack (most recent call first):
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:979
      (kde4_check_executable_params)
      knoda/CMakeLists.txt:18 (kde4_add_executable)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:761 (if):
      Policy CMP0054 is not set: Only interpret if() arguments as variables or
      keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
      details. Use the cmake_policy command to set the policy and suppress
      this
      warning.

      Quoted keywords like "TEST" will no longer be interpreted as keywords
      when
      the policy is set to NEW. Since the policy is not set the OLD behavior
      will be used.
      Call Stack (most recent call first):
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:979
      (kde4_check_executable_params)
      knoda/CMakeLists.txt:18 (kde4_add_executable)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:761 (if):
      Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake
      --help-policy CMP0064" for policy details. Use the cmake_policy
      command to
      set the policy and suppress this warning.

      TEST will be interpreted as an operator when the policy is set to NEW.
      Since the policy is not set the OLD behavior will be used.
      Call Stack (most recent call first):
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:979
      (kde4_check_executable_params)
      knoda/CMakeLists.txt:18 (kde4_add_executable)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at /usr/pkg/lib/automoc4/Automoc4Config.cmake:179
      (get_directory_property):
      Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in
      directory
      property. Run "cmake --help-policy CMP0059" for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.
      Call Stack (most recent call first):
      /usr/pkg/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:1003
      (_automoc4_kde4_pre_target_handling)
      knoda/CMakeLists.txt:18 (kde4_add_executable)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:747 (if):
      Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake
      --help-policy CMP0064" for policy details. Use the cmake_policy
      command to
      set the policy and suppress this warning.

      TEST will be interpreted as an operator when the policy is set to NEW.
      Since the policy is not set the OLD behavior will be used.
      Call Stack (most recent call first):
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:979
      (kde4_check_executable_params)
      knoda/CMakeLists.txt:36 (kde4_add_executable)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:761 (if):
      Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake
      --help-policy CMP0064" for policy details. Use the cmake_policy
      command to
      set the policy and suppress this warning.

      TEST will be interpreted as an operator when the policy is set to NEW.
      Since the policy is not set the OLD behavior will be used.
      Call Stack (most recent call first):
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:979
      (kde4_check_executable_params)
      knoda/CMakeLists.txt:36 (kde4_add_executable)
      This warning is for project developers. Use -Wno-dev to suppress it.

      CMake Warning (dev) at /usr/pkg/lib/automoc4/Automoc4Config.cmake:179
      (get_directory_property):
      Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in
      directory
      property. Run "cmake --help-policy CMP0059" for policy details. Use the
      cmake_policy command to set the policy and suppress this warning.
      Call Stack (most recent call first):
      /usr/pkg/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
      /usr/pkg/share/kde/apps/cmake/modules/KDE4Macros.cmake:1003
      (_automoc4_kde4_pre_target_handling)
      knoda/CMakeLists.txt:36 (kde4_add_executable)
      This warning is for project developers. Use -Wno-dev to suppress it.

      -- Configuration is Release
      -- Install prefix is /usr/pkg
      -- Architecture is x86_64
      -- Configuring done
      WARNING: Target "hk_kde4classes" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "hk_kde4dbdesignerpart" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "hk_kde4formpart" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "hk_kde4gridpart" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "hk_kde4modulepart" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "hk_kde4qbepart" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "hk_kde4querypart" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "hk_kde4reportpart" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "hk_kde4tablepart" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      WARNING: Target "knoda4" requests linking to directory "/usr/local/lib".
      Targets may link only to libraries. CMake is dropping the item.
      WARNING: Target "knoda4_rt" requests linking to directory
      "/usr/local/lib". Targets may link only to libraries. CMake is
      dropping the item.
      -- Generating done
      -- Build files have been written to:
      /home/bertrand/knoda4-code/tags/release-0.11.0/build

      Output of make :
      

      [ 0%] Built target hk_kde4classes_automoc
      [ 73%] Built target hk_kde4classes
      [ 73%] Built target hk_kde4dbdesignerpart_automoc
      [ 76%] Built target hk_kde4dbdesignerpart
      [ 76%] Built target hk_kde4formpart_automoc
      [ 78%] Built target hk_kde4formpart
      [ 78%] Built target hk_kde4gridpart_automoc
      [ 81%] Built target hk_kde4gridpart
      [ 81%] Built target hk_kde4modulepart_automoc
      [ 83%] Built target hk_kde4modulepart
      [ 83%] Built target hk_kde4qbepart_automoc
      [ 86%] Built target hk_kde4qbepart
      [ 86%] Built target hk_kde4querypart_automoc
      [ 88%] Built target hk_kde4querypart
      [ 88%] Built target hk_kde4reportpart_automoc
      [ 91%] Built target hk_kde4reportpart
      [ 91%] Built target hk_kde4tablepart_automoc
      [ 93%] Built target hk_kde4tablepart
      [ 93%] Built target knoda4_automoc
      [ 94%] Linking CXX executable knoda4
      CMakeFiles/knoda4.dir/main.cpp.o: In function
      __static_initialization_and_destruction_0(int, int) [clone .constprop.5]': main.cpp:(.text.startup+0x15aa): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x15b9): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x15d7): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x15e6): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x15fb): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x160a): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x1622): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x1631): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x164f): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x165e): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x1679): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x1688): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x16a6): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x16b5): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x16d3): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x16e2): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x16fa): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x1709): undefined reference to
      hk_colour::~hk_colour()' main.cpp:(.text.startup+0x1727): undefined reference tohk_colour::hk_colour(int, int, int)'
      main.cpp:(.text.startup+0x1736): undefined reference to
      hk_colour::~hk_colour()' ... ../lib64/libhk_kde4classes.so: undefined reference totypeinfo for
      hk_visible'
      ../lib64/libhk_kde4classes.so: undefined reference to
      hk_drivermanager::show_driverselectdialog()' ../lib64/libhk_kde4classes.so: undefined reference tohk_dscombobox::action_on_select()'
      ../lib64/libhk_kde4classes.so: undefined reference to
      hk_subform::~hk_subform()' ../lib64/libhk_kde4classes.so: undefined reference tohk_reportsection::subreportname()'
      ../lib64/libhk_kde4classes.so: undefined reference to
      `hk_report::report_header()'
      *** Error code 1

      Stop.
      make[2]: stopped in /home/bertrand/knoda4-code/tags/release-0.11.0/build
      *** Error code 1

      Stop.
      make[1]: stopped in /home/bertrand/knoda4-code/tags/release-0.11.0/build
      *** Error code 1

      Stop.
      make: stopped in /home/bertrand/knoda4-code/tags/release-0.11.0/build

      Of course, I have checked that libhk_classes was usable.
      
      Best regards,
      
      JKB
      
       
      • hanakp

        hanakp - 2016-02-23

        Hello,

        cmake cannot properly identify hk_classes library. I see record in the log:
        -- Found hk_classes library: /usr/local/lib
        which is not correct. It should point to library file, not to directory. Correct record should look like:
        -- Found hk_classes library: /usr/lib64/hk_classes/libhk_classes.so
        For some reasons, standard cmake macro find_library() failed.

        Please, check, what is the file name of hk_classes library ? Is it stored in /usr/local/lib directory ?

        Solution could be manually set the HK_CLASSES_LIB variable. Just run:
        ./configure -i
        and interactively change HK_CLASSES_LIB variable value. Then configure ( press c)
        and generate (press g).

        Br

        Patrik

         
        • BERTRAND Joël

          BERTRAND Joël - 2016-02-23

          hanakp a écrit :

          Hello,

          cmake cannot properly identify hk_classes library. I see record in the log:
          -- Found hk_classes library: /usr/local/lib
          which is not correct. It should point to library file, not to directory.
          Correct record should look like:
          -- Found hk_classes library: /usr/lib64/hk_classes/libhk_classes.so
          For some reasons, standard cmake macro find_library() failed.

          Please, check, what is the file name of hk_classes library ? Is it
          stored in /usr/local/lib directory ?

          Solution could be manually set the HK_CLASSES_LIB variable. Just run:
          ./configure -i
          and interactively change HK_CLASSES_LIB variable value. Then configure (
          press c)
          and generate (press g).

          Hello,
          
          Thanks a lot for your explanation. Now, I can link knoda, but
          

          generating index.cache.bz2 hangs with :

          [100%] Generating index.cache.bz2
          index.docbook:14: warning: failed to load external entity
          "/usr/share/kde4/apps/ksgmltools2/customization/dtd/kdex.dtd"
          ]>
          ^
          index.docbook:15: parser error : Entity 'language' not defined
          &knoda; documentation
          ^
          index.docbook:15: element set: validity error : No declaration for
          attribute lang of element set
          &knoda; documentation
          ^
          index.docbook:15: element application: validity error : No declaration
          for element application
          &knoda; documentation
          ^
          index.docbook:15: element emphasis: validity error : No declaration for
          element emphasis
          &knoda; documentation
          ^
          index.docbook:15: element title: validity error : No declaration for
          element title
          &knoda; documentation
          ^
          index.docbook:18: element corpauthor: validity error : No declaration
          for element corpauthor
          <corpauthor>Horst Knorr</corpauthor>
          ^
          index.docbook:19: element setinfo: validity error : No declaration for
          element setinfo
          </setinfo>
          ^
          installation.docbook:1: parser error : Entity 'language' not defined
          <book id="installation" lang="&amp;language;">
          ^
          installation.docbook:30: parser error : Entity 'FDLNotice' not defined
          <legalnotice>&FDLNotice;</legalnotice>
          ^
          installation.docbook:416: parser error : Entity 'copy' not defined
          mdb is the Microsoft Access© database format. It is a file based
          database s
          ^
          installation.docbook:426: parser error : Entity 'copy' not defined
          Paradox is a file based database system used by Corel© Paradox
          (former Borl
          ^
          installation.docbook:426: parser error : Entity 'copy' not defined
          s a file based database system used by Corel© Paradox (former
          Borland©

               ^
          

          installation.docbook:603: parser error : Entity 'underFDL' not defined
          &underFDL;
          ^
          index.docbook:27: parser error : Failure to process entity general
          &general;
          ^
          index.docbook:27: parser error : Entity 'general' not defined
          &general;
          ^
          *** Error code 1

          Stop.
          make[2]: stopped in /home/bertrand/knoda4-code/tags/release-0.11.0/build
          *** Error code 1

          Stop.
          make[1]: stopped in /home/bertrand/knoda4-code/tags/release-0.11.0/build
          *** Error code 1

          Stop.
          make: stopped in /home/bertrand/knoda4-code/tags/release-0.11.0/build

          On NetBSD, I have to do a link to fix this issue as required files are
          

          not in /usr/share/kde4 but in /usr/pkg/share/kde (not kde4):

          legendre# pwd
          /usr/share
          legendre# ls -l kde4
          lrwxr-xr-x 1 root wheel 18 Feb 23 22:53 kde4 -> /usr/pkg/share/kde

          Regards,
          
          JKB
          
           
          • hanakp

            hanakp - 2016-03-12

            Hello !

            It looks the issue is fixed after clarification. Can I close the ticket?

            Br

            Patrik

             
            • hanakp

              hanakp - 2016-05-29

              OK, no feedback , I am going to close the ticket

              Patrik

               
  • hanakp

    hanakp - 2016-02-21

    Hello,

    I prepared mysql driver patch for hk_classes 0.8.4 which should solve problem with
    compilation of hk_classes 0.8.4 you experienced. It is available at:
    https://sourceforge.net/projects/knoda4/files/hk_classes/
    Please:
    1. apply mysql driver patch to hk_classes 0.8.4
    2. compile and install hk_classes 0.8.4
    3. compile and install knoda4-0.11.0

    If you get any compilation errors, provide me with:
    1. full output of configure script
    2. full output of make command
    for package which failed to compile.

    Br

    Patrik

     
  • hanakp

    hanakp - 2016-05-29
    • status: open --> closed
     
  • hanakp

    hanakp - 2016-06-26
    • Milestone: next_release --> release_0.11.1
     

Log in to post a comment.