I've been trying without much success to build codeblocks from source. I ended up just installing the packaged version, and it seems to be working ok so far. Since I'm unable to reproduce my original problem, and since it seems to have been more of a configuration problem than a bug anyway, this ticket can probably be closed as invalid unless other people are seeing the same problem. I don't think that's likely, though, because I searched around for similar problems before I opened the ticket, but...
I believe I ran ld-config after I installed with make install the first time, but I might not have done it the second time. The first time I installed codeblocks 17.12 from source that I downloaded as a compressed file off the website. After running into this problem, I ran "sudo make uninstall". I afterwards pulled the source from svn and built it. I'm currently working through the build process on a fresh install of ubuntu 17.10. It's taking a while to get all the dependencies, etc., straight,...
I checked /usr/lib and /usr/local/lib, and both contained libwxsmith.so.0 and libwxsmith.so.0.0.1. I deleted those files from /usr/lib. When I started codeblocks, I got a message about a plugin failing to load, as shown in the attached image. When I run lsof and grep for "smith", nothing comes up.
I've attached the output from running lsof. I'm currently backing up my system in preparation for reinstalling Ubuntu, so it may be a while before I can report on whether or not I have the problem with a fresh install.
I did have the packaged version of codeblocks installed, but I had problems with it and uninstalled it. I tried doing the info sharedlibrary thing, but after pressing ctrl-c, gdb does not echo anything I type, and typing "info sharedlibrary" and pressing enter seems to have no effect, although typing "quit" and pressing enter did quit gdb (most of the time). I'm not familiar with gdb, so maybe I'm doing something stupid. I'll have some time after work to try building codeblocks on a fresh install...
Crash after clicking finish on the wxWidgets project creation wizard