Author Topic: Compilation of v. 8.02 on debian etch fails  (Read 3915 times)

Offline daniel_s

  • Single posting newcomer
  • *
  • Posts: 4
Compilation of v. 8.02 on debian etch fails
« on: May 10, 2008, 07:42:52 pm »
Hello, I'm trying to compile CB 8.02 on debian 4.0. I built wxwidgets 2.8.7 from source and installed it to /usr/local. In the CB source dir I do "mkdir build; cd build", there I do ../configure --enable-contribs, which seems to work fine, but make aborts with the following error message:
...
 g++ -DHAVE_CONFIG_H -I. -I../../src/include -I../../../src/sdk -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -I../../../src/include -I../../../src/include/wxscintilla/include -I../../../src/include/tinyxml -I../../../src/include/scripting/include -I../../../src/include/scripting/sqplus -I../../../src/include/wxFlatNotebook/include -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT configmanager-revision.lo -MD -MP -MF .deps/configmanager-revision.Tpo -c ../../../src/sdk/configmanager-revision.cpp  -fPIC -DPIC -o .libs/configmanager-revision.o
../../src/include/autorevision.h:15: error: expected primary-expression before ';' token
make[3]: *** [configmanager-revision.lo] Error 1
make[3]: Leaving directory `/home/daniel/soft_codeblocks/codeblocks-8.02/build/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/daniel/soft_codeblocks/codeblocks-8.02/build/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/daniel/soft_codeblocks/codeblocks-8.02/build/src'
make: *** [all-recursive] Error 1

I already found some posts on the forum related to autorevision where setting LANG=C in autorevision.ccp:108 is suggested, but that doesn't seem to apply to the current version any more. I guess my system isn't properly configured ...
Ah, and gcc -v:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

regards
Daniel

Offline daniel_s

  • Single posting newcomer
  • *
  • Posts: 4
Re: Compilation of v. 8.02 on debian etch fails
« Reply #1 on: May 12, 2008, 11:56:12 am »
I didn't build wxwidgets like described in http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux, e.g. with explicit unicode option. But when I do, I get the same error, though.
best
Daniel

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Compilation of v. 8.02 on debian etch fails
« Reply #2 on: May 12, 2008, 01:02:12 pm »
You can try to delete "autorevision.h" (it will be recreated if you run "configure" again or on compile-time with default-values if you don't run "configure") and run "make" again.

By the way the correct parameter to build the contrib-plugins is "--with-contrib-plugins=all" (see "[.]./configure --help").

Offline daniel_s

  • Single posting newcomer
  • *
  • Posts: 4
Re: Compilation of v. 8.02 on debian etch fails
« Reply #3 on: May 12, 2008, 04:57:33 pm »
Thanks, that got me past the autorevision issue. Then, make was choking on a long list of missing dependencies, if I recall correctly. The configure command that finally allowed a successful build was, explicitly indicating the wxwidgets installation directory (although it seemed that the configuration got it right without that):
/configure --with-contrib-plugins=all --with-wx-prefix=/usr/local
Thanks again
Daniel