Author Topic: rev 3543 doesn't build on linux (autorevision problems)  (Read 3792 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5215
rev 3543 doesn't build on linux (autorevision problems)
« on: January 27, 2007, 06:21:32 pm »
Quote
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I../../src/sdk/scripting/include -I../../src/sdk/scripting/sqplus -I../../src/sdk/wxFlatNotebook/include -I../../src/sdk/propgrid/include    -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT configmanager-revision.lo -MD -MP -MF ".deps/configmanager-revision.Tpo" -c -o configmanager-revision.lo configmanager-revision.cpp; \
        then mv -f ".deps/configmanager-revision.Tpo" ".deps/configmanager-revision.Plo"; else rm -f ".deps/configmanager-revision.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I../../src/sdk/scripting/include -I../../src/sdk/scripting/sqplus -I../../src/sdk/wxFlatNotebook/include -I../../src/sdk/propgrid/include -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT configmanager-revision.lo -MD -MP -MF .deps/configmanager-revision.Tpo -c configmanager-revision.cpp  -fPIC -DPIC -o .libs/configmanager-revision.o
autorevision.h:14: error: 'SVN_REV' was not declared in this scope
make[4]: *** [configmanager-revision.lo] Error 1
make[4]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/sdk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src'
make: *** [all-recursive] Error 1

solutions ??

[edit] : ./bootstrap && ./configure --enable-contrib && make clean && make : up and running again : probably the ./configure was the fixing part ;-)
« Last Edit: January 27, 2007, 07:29:43 pm by killerbot »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2192
Re: rev 3543 doesn't build on linux (autorevision problems)
« Reply #1 on: January 27, 2007, 06:38:40 pm »
On andLinux it also gets

devel/libcodeblocks.so: undefined reference to `ScriptBindings::Register_UtilDialogs()'

Code: [Select]
g++-4.0 -Ldevel -Lsrc/wxAUI -Lsdk/tinyxml  -o devel/codeblocks .objs/src/app.o .objs/src/appglobals.o .objs/src/compilersettingsdlg.o .objs/src/crashhandler.o .objs/src/dlgabout.o .objs/src/dlgaboutplugin.o .objs/src/environmentsettingsdlg.o .objs/src/main.o .objs/src/prefix.o .objs/src/printdlg.o .objs/src/scriptconsole.o .objs/src/scriptingsettingsdlg.o .objs/src/splashscreen.o .objs/src/startherepage.o   `wx-config --libs`  -lcodeblocks -lwxaui -lwxscintilla
devel/libcodeblocks.so: undefined reference to `ScriptBindings::Register_UtilDialogs()'
collect2: ld returned 1 exit status
Process terminated with status 1 (16 minutes, 43 seconds)
1 errors, 11 warnings
 


Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5215
Re: rev 3543 doesn't build on linux (autorevision problems)
« Reply #2 on: January 27, 2007, 07:30:20 pm »
@pecan, did you try a full rebuild ?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2192
Re: rev 3543 doesn't build on linux (autorevision problems)
« Reply #3 on: January 27, 2007, 08:35:48 pm »
@pecan, did you try a full rebuild ?

To make sure: I just did it again.
I did a "svn -R revert .", then svn update ." while in .../trunk
then I did a full build.

Code: [Select]
g++-4.0 -Ldevel -Lsrc/wxAUI -Lsdk/tinyxml  -o devel/codeblocks .objs/src/app.o .objs/src/appglobals.o .objs/src/compilersettingsdlg.o .objs/src/crashhandler.o .objs/src/dlgabout.o .objs/src/dlgaboutplugin.o .objs/src/environmentsettingsdlg.o .objs/src/main.o .objs/src/prefix.o .objs/src/printdlg.o .objs/src/scriptconsole.o .objs/src/scriptingsettingsdlg.o .objs/src/splashscreen.o .objs/src/startherepage.o   `wx-config --libs`  -lcodeblocks -lwxaui -lwxscintilla
devel/libcodeblocks.so: undefined reference to `ScriptBindings::Register_UtilDialogs()'
collect2: ld returned 1 exit status
Process terminated with status 1 (16 minutes, 43 seconds)
1 errors, 11 warnings

attached buildlog.zip


[attachment deleted by admin]
« Last Edit: January 27, 2007, 08:39:08 pm by Pecan »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5215
Re: rev 3543 doesn't build on linux (autorevision problems)
« Reply #4 on: January 27, 2007, 09:50:04 pm »
it is defined in sc_util_dialogs.cpp, when searching your build log it seems that file has not been compiled. Check your project tree, it belongs to sdk\scripting\bindings.

I would say your are not using the latest cbp file !!!

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2192
Re: rev 3543 doesn't build on linux (autorevision problems)
« Reply #5 on: January 27, 2007, 11:12:40 pm »
it is defined in sc_util_dialogs.cpp, when searching your build log it seems that file has not been compiled. Check your project tree, it belongs to sdk\scripting\bindings.

I would say your are not using the latest cbp file !!!

Ok, I deleted Codebocks-unix.cbp, then did a svn update .
sc_util_dialogs then showed up in my .cbp.

So why didn't my svn revert, then svn update download the new .cbp?


Offline keenblade

  • Multiple posting newcomer
  • *
  • Posts: 36
  • tao
    • keenblade
Re: rev 3543 doesn't build on linux (autorevision problems)
« Reply #6 on: January 28, 2007, 03:22:23 am »
...
autorevision.h:14: error: 'SVN_REV' was not declared in this scope
...
I'm getting the exact same error with  C::B revision3545, on gentoo ~amd64. I don't use Codebocks-unix.cbp but an ebuild. The last successful compiling was with revision 3539. It was also fine with the older revs, too.
If the issue is the sc_util_dialogs.cpp file is not being compiled, how do I add it?
Any idea?

Code::Blocks svn 3545
gcc-4.1.1-r3
Gentoo ~amd64
« Last Edit: January 28, 2007, 04:06:17 am by keenblade »
Anyway it\'s all the same at the end...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5215
Re: rev 3543 doesn't build on linux (autorevision problems)
« Reply #7 on: January 28, 2007, 08:16:13 am »
...
autorevision.h:14: error: 'SVN_REV' was not declared in this scope
...
I'm getting the exact same error with  C::B revision3545, on gentoo ~amd64. I don't use Codebocks-unix.cbp but an ebuild. The last successful compiling was with revision 3539. It was also fine with the older revs, too.
If the issue is the sc_util_dialogs.cpp file is not being compiled, how do I add it?
Any idea?

Code::Blocks svn 3545
gcc-4.1.1-r3
Gentoo ~amd64

./bootstrap && ./configure --enable-contrib && make clean && make

Offline keenblade

  • Multiple posting newcomer
  • *
  • Posts: 36
  • tao
    • keenblade
Re: rev 3543 doesn't build on linux (autorevision problems)
« Reply #8 on: January 28, 2007, 01:45:13 pm »
./bootstrap && ./configure --enable-contrib && make clean && make
Thanks. I edited the ebuild, now it works as it used to be. I've switched to linux (gentoo) for one month and did not think it would be so easy. Thanks again.
Anyway it\'s all the same at the end...