Author Topic: unable to load CC  (Read 13808 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
unable to load CC
« on: March 09, 2013, 05:37:12 pm »
Scanning for plugins in /usr/local/lib64/codeblocks/plugins

/usr/local/lib64/codeblocks/plugins/libcodecompletion.so: not loaded (missing symbols?)

since svn up of today.
Manually deleted everything installed on system, build procedure redone from bootstrap onwards, now trying a fresh svn checkout


EDIT : even starting from a fresh checkout didn't help
« Last Edit: March 09, 2013, 05:46:14 pm by killerbot »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: unable to load CC
« Reply #1 on: March 09, 2013, 05:56:30 pm »
Did you try it with -v parameter to get more (debug-)messages ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: unable to load CC
« Reply #2 on: March 09, 2013, 06:10:54 pm »
Killerbot: what have you used to uninstall your previous version, make uninstall I gues?
Why don't you build packages?
On redhad based distros it is pretty easy. I suppose it is not harder on debian based. Gentoo and Arch do it automatically.

Why do you like to inflict pain onto yourself by using make install in /usr/local?
(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 killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: unable to load CC
« Reply #3 on: March 09, 2013, 06:41:04 pm »
because this process has been working for me (with  2 glitches a year) for more then 8 years now

my uninstall was by removing everything even manually : so in /usr/local I removed all CB stuff

Question : why would we advocate, that the typical make/make install should not be used, and should not be working ?
Now we are gonna go even more nerd-way and telling people to even make packages and then install from packages.
Why should I even create an rpm ? And for your information, I don't even know how to.

« Last Edit: March 09, 2013, 06:43:38 pm by killerbot »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: unable to load CC
« Reply #4 on: March 09, 2013, 06:45:55 pm »
@Jens : never thought of the -v option, but this indeed gives more info :

Code
/usr/local/lib64/codeblocks/plugins/libcodecompletion.so: undefined symbol: _ZN19DocumentationHelper17OnSelectionChangeER11wxListEvent

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: unable to load CC
« Reply #5 on: March 09, 2013, 06:56:15 pm »
Two new files are missing from Makefile.am after last commit.

Should be fixed in trunk.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: unable to load CC
« Reply #6 on: March 09, 2013, 07:06:53 pm »
because this process has been working for me (with  2 glitches a year) for more then 8 years now
No, it has not, you always have problems with it, search the forum - it has a history of them all :)

my uninstall was by removing everything even manually : so in /usr/local I removed all CB stuff
This seems a bit more save, but still if you have two or more applications you've installed with this method you loose them all.

Question : why would we advocate, that the typical make/make install should not be used, and should not be working ?
Now we are gonna go even more nerd-way and telling people to even make packages and then install from packages.
Because make uninstall is unreliable.
We advocate people to use binary packages or use --prefix=/myhome/cb. At least I.

Why should I even create an rpm ? And for your information, I don't even know how to.
Because it is more reliable and easier in the longer run. And it is not that complex.
It is something like:
Code
./bootstrap
./configure --bla bla
make dist
rpmbuild -ta path_to_resulting_package
cd to where the packages are
rpm -Uhv codeblocks*

@Jen: Can you add -Wl,--no-undefined to the makefiles and to see if it passes?
         This will make the build fail if anything has not been added correctly to the build system.
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: unable to load CC
« Reply #7 on: March 09, 2013, 07:36:13 pm »
Two new files are missing from Makefile.am after last commit.
Dammed - indeed, I had forgotten this change.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: unable to load CC
« Reply #8 on: March 09, 2013, 07:36:37 pm »
@Jen: Can you add -Wl,--no-undefined to the makefiles and to see if it passes?
         This will make the build fail if anything has not been added correctly to the build system.
This would be nice, indeed.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: unable to load CC
« Reply #9 on: March 09, 2013, 10:59:13 pm »
ok, I  will give the rpm build some try some day, but will need help.

And, yes I had trouble, but whatever you were pointing out, that was not due to my way, rpm would have been as bad, because the makefile was not correct. So yes, I am occasionally having a make problem, but if the make file is broken, I am just an innocent victim ...

Verified problem gone with makefile update.
« Last Edit: March 09, 2013, 11:13:27 pm by killerbot »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: unable to load CC
« Reply #10 on: March 09, 2013, 11:46:20 pm »
@Jen: Can you add -Wl,--no-undefined to the makefiles and to see if it passes?
         This will make the build fail if anything has not been added correctly to the build system.
This would be nice, indeed.

Done in trunk for autotools and C::B project files.

Also fixed some plugins with missing link libraries.
The plugins have worked so far, because wxWidgets is linked against the missing libs, but this might can (of course) not be guaranteed in the future.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: unable to load CC
« Reply #11 on: March 11, 2013, 07:21:30 am »
And, yes I had trouble, but whatever you were pointing out, that was not due to my way, rpm would have been as bad, because the makefile was not correct. So yes, I am occasionally having a make problem, but if the make file is broken, I am just an innocent victim ...
They make it harder to make mistakes...
(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!]