Code::Blocks Forums

User forums => Help => Topic started by: JCBCIV on June 28, 2012, 02:51:37 pm

Title: Linker error while building Code::Blocks
Post by: JCBCIV on June 28, 2012, 02:51:37 pm
I just downloaded the latest svn revision (8073) and tried to build it, but make (under Ubuntu 12.04, with g++-4.6) failes with

Code
...
libtool: link: g++ -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -o .libs/codeblocks app.o appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o disassemblydlg.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o examinememorydlg.o infopane.o main.o notebookstyles.o prefix.o printdlg.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o threadsdlg.o watchesdlg.o -pthread  -L../sdk /home/me/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so -L/usr/lib/x86_64-linux-gnu -lwx_gtk2u_aui-2.9 -lwx_gtk2u_propgrid-2.9 -lwx_gtk2u_xrc-2.9 -lwx_gtk2u_html-2.9 -lwx_gtk2u_qa-2.9 -lwx_gtk2u_adv-2.9 -lwx_gtk2u_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 /usr/lib/x86_64-linux-gnu/libcairo.so -lpango-1.0 /usr/lib/x86_64-linux-gnu/libfreetype.so -lfontconfig -lgobject-2.0 -lglib-2.0 -lpthread -ldl -pthread -Wl,-rpath -Wl,/opt/codeblocks/lib
/home/me/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `lmCoffeeScript'
collect2: ld returned 1 exit status
make[3]: *** [codeblocks] Error 1
make[3]: Leaving directory `/home/me/CodeBlocks/trunk/src/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/me/CodeBlocks/trunk/src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/me/CodeBlocks/trunk/src'
make: *** [all-recursive] Error 1

I had no such problems with revision 8065, so i looked a bit at the difference between them and noticed that LexCoffeeScript has been added recently.
Then i searched for LexCoffeeScript.o, but in trunk/src/sdk/wxscintilla/.libs, where the other Lex*.o 's are, i didn't find it.

is it me doing something stupid or is it your code/Makefiles being broken?

by the way: Code::Blocks is great! :)
Title: Re: Linker error while building Code::Blocks
Post by: MortenMacFly on June 28, 2012, 03:56:40 pm
is it me doing something stupid or is it your code/Makefiles being broken?
You have to re-build the makefiles (using automake), as the configuration changed.
Title: Re: Linker error while building Code::Blocks
Post by: JCBCIV on June 28, 2012, 04:41:37 pm
I did that.
However, the error did not change. :/
Title: Re: Linker error while building Code::Blocks
Post by: MortenMacFly on June 28, 2012, 05:03:31 pm
I did that.
However, the error did not change. :/
Did you do both: make clean and make dist clean and then start with bootstrap, configure etc...?

I guess a Linux dude needs to answer here...
Title: Re: Linker error while building Code::Blocks
Post by: Jenna on June 28, 2012, 09:29:04 pm
did you run ./bootstrap before running ./configure ?
Title: Re: Linker error while building Code::Blocks
Post by: JCBCIV on June 29, 2012, 01:51:15 am
Yes, i did this all. It doesn't help.

I will be absent for a few days, so I will not reply. Sorry. :(
Title: Re: Linker error while building Code::Blocks
Post by: Jenna on June 29, 2012, 06:06:11 am
Yes, i did this all. It doesn't help.

I will be absent for a few days, so I will not reply. Sorry. :(
There was indeed an error in the Makefile.am of our wxscintilla.
It should be fixed in svn r8076.

Sorry for the inconvenience.
Title: Re: Linker error while building Code::Blocks
Post by: MortenMacFly on June 29, 2012, 06:48:59 am
There was indeed an error in the Makefile.am of our wxscintilla.
Damn - I looked into it but I missed the extension was missing... typical "last-minute copy&paste error". Sorry for the inconvenience.