Author Topic: undefined symbol when starting CD build from SVN  (Read 3732 times)

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
undefined symbol when starting CD build from SVN
« on: May 05, 2016, 07:34:22 pm »
I get from SVN, configure, make and install (under Linux)
When try launch, is error:
undefined symbol: _ZN17wxScrollingDialog4ShowEb
The worst: if I remove and "sudo apt-get install codeblocks" this error is still
« Last Edit: May 05, 2016, 08:05:44 pm by Borneq »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: undefined symbol when starting CD build from SVN
« Reply #1 on: May 05, 2016, 08:31:11 pm »
Have you used the default prefix (--prefix on the configure script)?
Is this a new installation or you've overridden an old install?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: undefined symbol when starting CD build from SVN
« Reply #2 on: May 05, 2016, 08:38:12 pm »
Previously I had CodeBlocks installed from Ubuntu Software Center.
No prefix when build, I must use "./configure --prefix" ?

andrzej@andrzej-VirtualBox:~/devel/trunk$ ./configure --prefix
configure: error: missing argument to --prefix
« Last Edit: May 05, 2016, 08:48:08 pm by Borneq »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: undefined symbol when starting CD build from SVN
« Reply #3 on: May 05, 2016, 08:58:48 pm »
Try ./configure --help. It will describe what each parameter is doing.
Generally I'm use something like ~/software/cb. This allows me to do rm -rf ~/software/cb and to be sure that my build of cb is fully removed.
The default prefix is /usr/local which means that you cannot remove it cleanly.
You can try make uninstall, but I doubt this will work correctly.

About the original problem: my guess is that the installed version is using the wrong libcodeblocks.so and this is causing your problems.
ldd <path-to-codeblocks> might help reveal the mystery.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: undefined symbol when starting CD build from SVN
« Reply #4 on: May 05, 2016, 09:15:55 pm »
andrzej@andrzej-VirtualBox:~/devel$ ldd /usr/local/bin/codeblocks >a

Quote
   linux-vdso.so.1 =>  (0x00007ffc0e570000)
   libcodeblocks.so.0 => /usr/lib/libcodeblocks.so.0 (0x00007f44e373f000)
   libwx_gtk2u-2.8.so.0 => /opt/wx/2.8/lib/libwx_gtk2u-2.8.so.0 (0x00007f44e2be9000)
   libgtk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 (0x00007f44e259d000)
   libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f44e234a000)
   libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f44e212d000)
   libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f44e1daa000)
   libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f44e1b94000)
   libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f44e17cb000)
   libwx_gtk2u_aui-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0 (0x00007f44e1531000)
   libwx_gtk2u_xrc-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_xrc-3.0.so.0 (0x00007f44e11c0000)
   libwx_gtk2u_html-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0 (0x00007f44e0ee4000)
   libwx_gtk2u_adv-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0 (0x00007f44e0afd000)
   libwx_gtk2u_core-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0 (0x00007f44e0284000)
   libwx_baseu_xml-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0 (0x00007f44e0074000)
   libwx_baseu_net-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0 (0x00007f44dfe27000)
   libwx_baseu-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0 (0x00007f44df995000)
   libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f44df68c000)
   libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f44df471000)
   libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f44df26d000)
   libgdk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 (0x00007f44defb8000)
   libgdk_pixbuf-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007f44ded95000)
   libpango-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f44deb49000)
   libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f44de838000)
   libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f44de612000)
   libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f44de3e9000)
   libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f44de1e5000)
   libpangocairo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f44ddfd7000)
   libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f44ddc9d000)
   libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f44dda97000)
   libatk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f44dd871000)
   libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f44dd55d000)
   libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f44dd1d5000)
   libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f44dcfbe000)
   libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f44dcd7b000)
   libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f44dcb73000)
   /lib64/ld-linux-x86-64.so.2 (0x000055e1a02ca000)
   libnotify.so.4 => /usr/lib/x86_64-linux-gnu/libnotify.so.4 (0x00007f44dc96a000)
   libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f44dc764000)
   libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f44dc55b000)
   libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f44dc302000)
   libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f44dc08f000)
   libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f44dbe84000)
   libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f44dbc81000)
   libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f44dba70000)
   libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f44db865000)
   libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f44db65b000)
   libXcomposite.so.1 => /usr/lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f44db457000)
   libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f44db254000)
   libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f44db042000)
   libthai.so.0 => /usr/lib/x86_64-linux-gnu/libthai.so.0 (0x00007f44dae38000)
   libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f44dabc8000)
   libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f44da91d000)
   libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f44da6fb000)
   libpixman-1.so.0 => /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f44da452000)
   libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f44da24e000)
   libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f44da044000)
   librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f44d9e3b000)
   libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f44d9c19000)
   libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f44d99fe000)
   libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f44d979f000)
   libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f44d9585000)
   libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f44d937f000)
   liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f44d915d000)
   libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f44d8f4f000)
   libdatrie.so.1 => /usr/lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f44d8d46000)
   libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f44d8b42000)
   libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f44d893b000)
   libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f44d8716000)

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: undefined symbol when starting CD build from SVN
« Reply #5 on: May 05, 2016, 09:18:10 pm »
Maybe problem with wxWidgets? Previously I installed CodeBlocks but no wxWidgets, next I installl wxWidgets from source. Is possible install wxWidgets from apt-get?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: undefined symbol when starting CD build from SVN
« Reply #6 on: May 06, 2016, 01:06:05 am »
Your build is quite messed up.
Why have you installed a separate wx?
Why the ldd output shows both wx2.8 and wx3.0 libs?
This is "libcodeblocks.so.0 => /usr/lib/libcodeblocks.so.0 (0x00007f44e373f000)" wrong, too.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: undefined symbol when starting CD build from SVN
« Reply #7 on: May 06, 2016, 05:41:30 am »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]