Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
batchbuild issues with backticked commands
MortenMacFly:
--- Quote from: tiwag on October 18, 2006, 10:14:07 pm ---wx-config --leckmich > wx-config.log
--- End quote ---
I couldn't resist: lol :lol:
--- Quote from: tiwag on October 18, 2006, 10:33:58 pm ---maybe a buffer overflow in CB ?
--- End quote ---
But I don't see what could have caused this in the changes between those revisions we have identified...?!
tiwag:
--- Quote from: MortenMacFly on October 18, 2006, 10:43:44 pm ---
--- Quote from: tiwag on October 18, 2006, 10:33:58 pm ---maybe a buffer overflow in CB ?
--- End quote ---
But I don't see what could have caused this in the changes between those revisions we have identified...?!
--- End quote ---
i know the reason :
the output from the error message is:
>wx-config --prefix=d:\x263 --cxxflags
*** Error: wxWidgets hasn't been found installed at 'd:\x263'.
Please use the --prefix flag (as in `wx-config --prefix=C:\wxWidgets`)
or set the environment variable WXWIN (as in WXWIN=C:\wxWidgets)
to specify where is your installation of wxWidgets.
this makes an infinite loop !
takeshimiya:
I've narrowed it down to calling
--- Quote ---wx-config --prefix=
--- End quote ---
from command line. It hangs.
So it seems that when wx-config hangs it hangs C::B too.
Anyways the exe was built with MSVC 2005 Express and I can't debug it. :?
But when built with GCC or DMC it doesn't hangs and everything seems normal.
So in the meantime I've uploaded one built with DMC:
http://wx-config-win.googlecode.com/svn/binary/wx-config.exe
tiwag:
i tried the following :
--- Code: ---//nix.cpp -> nix.exe
#include <iostream>
int main(){
std::string s1 = "`nix` ;-)";
std::cout << s1 << std::endl;
return 0;
}
--- End code ---
and use this as backticked command `nix` to the compiler options :P
result, CB hangs because it recursively tries to resolve `nix`
conclusion:
1.) wx-config MUST return an error message WITHOUT a self-referencing backticked command !!!
2.) the CB environmentvariables plugin doesn't work in batchbuild mode or isn't initialized at the time,
when the compiler starts resolving backticked commands
brgds, tiwag
tiwag:
--- Quote from: Takeshi Miya on October 18, 2006, 10:58:18 pm ---I've narrowed it down to calling
--- Quote ---wx-config --prefix=
--- End quote ---
from command line. It hangs.
So it seems that when wx-config hangs it hangs C::B too.
Anyways the exe was built with MSVC 2005 Express and I can't debug it. :?
But when built with GCC or DMC it doesn't hangs and everything seems normal.
So in the meantime I've uploaded one built with DMC:
http://wx-config-win.googlecode.com/svn/binary/wx-config.exe
--- End quote ---
wx-config doesn't hang, it is called infinitely !
see other post using `nix`
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version