Author Topic: Can't compile revision 7265  (Read 4731 times)

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Can't compile revision 7265
« 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. :)
Kernel Extremist - PedroM power ©

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't compile revision 7265
« Reply #1 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.
Kernel Extremist - PedroM power ©

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Can't compile revision 7265
« Reply #2 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 :(
(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 Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't compile revision 7265
« Reply #3 on: July 01, 2011, 01:03:25 am »
Wow, impressive, you're so quick :D Many thanks, I retry now. :)
Kernel Extremist - PedroM power ©

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't compile revision 7265
« Reply #4 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 !
Kernel Extremist - PedroM power ©