Code::Blocks Forums

User forums => Help => Topic started by: Folco on June 30, 2011, 11:02:26 pm

Title: Can't compile revision 7265
Post by: Folco on June 30, 2011, 11:02:26 pm
Hi guys,

I can't compile revision 7265, I get this error :
Code
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
-I../../src/include -I../../src/sdk/wxscintilla/include -I../../src/sdk/wxpropgrid/include -I../../src/include/tinyxml
-I../../src/include/scripting/include -I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet
-Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions
-MT cbplugin.lo -MD -MP -MF .deps/cbplugin.Tpo -c cbplugin.cpp  -fPIC -DPIC -o .libs/cbplugin.o
cbplugin.cpp: In member function ‘int cbDebuggerPlugin::RunNixConsole(wxString&)’:
cbplugin.cpp:820:31: error: ‘kill’ was not declared in this scope
make[3]: *** [cbplugin.lo] Error 1
My build script :
Code
#!/bin/sh

# Retrieve sources
cd /home/folco
svn checkout svn://svn.berlios.de/codeblocks/branches/wxpropgrid_debugger CBsrc
#svn checkout svn://svn.berlios.de/codeblocks/trunk/ CBsrc

# Use the recentest 68k lexer
cd /home/folco/CBsrc
cp /mnt/Data/Programmation/PC/Programmes/patchCB/LexA68k.cxx ./src/sdk/wxscintilla/src/scintilla/lexers
cp /mnt/Data/Programmation/PC/Programmes/patchCB/lexer_A68k.* ./src/sdk/resources/lexers

# Compile
./bootstrap
./configure --with-contrib-plugins=all
make
sudo make install

My system :
Kubuntu 11.04 64 bits, up to date.
gcc -v > gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
uname -r > 2.6.38-8-generic
I compiled successfully revision 7245.

Could you help me to fix that, please ? Thanks in advance. :)
Title: Re: Can't compile revision 7265
Post by: Folco on June 30, 2011, 11:06:56 pm
I forgot to say that I did a "make clean" before compiling. On error, I did a "rm ./CBsrc", compiling from fresh sources. Problem still occurs.
Title: Re: Can't compile revision 7265
Post by: oBFusCATed on June 30, 2011, 11:42:19 pm
Fixed in r7266...

It looks like the CB build system and the autotools build systems using PCHes do different things with the includes :(
Title: Re: Can't compile revision 7265
Post by: Folco on July 01, 2011, 01:03:25 am
Wow, impressive, you're so quick :D Many thanks, I retry now. :)
Title: Re: Can't compile revision 7265
Post by: Folco on July 01, 2011, 02:00:03 am
I confirm that your fix works : CB compiles and runs fine now. Great, thanks again for your reactivity !