News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

rev 3543 doesn't build on linux (autorevision problems)

Started by killerbot, January 27, 2007, 06:21:32 PM

Previous topic - Next topic

killerbot

Quoteif /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 ;-)

Pecan

On andLinux it also gets

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


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



killerbot


Pecan

Quote from: killerbot on January 27, 2007, 07:30:20 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.


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]

killerbot

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 !!!

Pecan

Quote from: killerbot 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 !!!

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?


keenblade

#6
Quote from: killerbot on January 27, 2007, 06:21:32 PM...
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
Anyway it\'s all the same at the end...

killerbot

Quote from: keenblade on January 28, 2007, 03:22:23 AM
Quote from: killerbot on January 27, 2007, 06:21:32 PM...
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

keenblade

Quote from: killerbot on January 28, 2007, 08:16:13 AM
./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...