Author Topic: The 12 january 2007 build will NOT be out.  (Read 12546 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
The 12 january 2007 build will NOT be out.
« on: January 12, 2007, 05:13:37 pm »
- since linux won't be able to build, let's wait a while ;-)

Offline pasgui

  • Almost regular
  • **
  • Posts: 165
    • LGP
Re: The 12 january 2007 build will NOT be out.
« Reply #1 on: January 12, 2007, 08:34:33 pm »
- since linux won't be able to build, let's wait a while ;-)

Build works on Ubuntu Edgy. :)


[attachment deleted by admin]

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: The 12 january 2007 build will NOT be out.
« Reply #2 on: January 12, 2007, 08:47:57 pm »
you don't get errors on the compilation of sc_dialog.cpp ??? I do , tried it out on 3 different Suse 10.2 machines

Offline pasgui

  • Almost regular
  • **
  • Posts: 165
    • LGP
Re: The 12 january 2007 build will NOT be out.
« Reply #3 on: January 12, 2007, 08:52:49 pm »
you don't get errors on the compilation of sc_dialog.cpp ??? I do , tried it out on 3 different Suse 10.2 machines

No error, I used this script:
#!/bin/sh
./bootstrap
./configure --enable-contrib
make clean-zipfiles
make

And I try this also:
pascal@pluton:~/project/codeblocks/src/sdk/scripting/bindings$ make clean
rm -rf .libs _libs
test -z "libsqbindings.la" || rm -f libsqbindings.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
pascal@pluton:~/project/codeblocks/src/sdk/scripting/bindings$ make
...
if /bin/bash ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/sdk -I/usr/lib/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 -I../../../../src/sdk/wxscintilla/include -I../../../../src/sdk/scripting/include -I../../../../src/sdk/scripting/sqplus    -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT sc_dialog.lo -MD -MP -MF ".deps/sc_dialog.Tpo" -c -o sc_dialog.lo sc_dialog.cpp; \
        then mv -f ".deps/sc_dialog.Tpo" ".deps/sc_dialog.Plo"; else rm -f ".deps/sc_dialog.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/sdk -I/usr/lib/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 -I../../../../src/sdk/wxscintilla/include -I../../../../src/sdk/scripting/include -I../../../../src/sdk/scripting/sqplus -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT sc_dialog.lo -MD -MP -MF .deps/sc_dialog.Tpo -c sc_dialog.cpp  -fPIC -DPIC -o .libs/sc_dialog.o
...
/bin/bash ../../../../libtool --tag=CXX --mode=link g++  -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC   -o libsqbindings.la   scriptbindings.lo sc_consts.lo sc_dialog.lo sc_globals.lo sc_plugin.lo sc_progress.lo sc_wxtypes.lo sc_io.lo  -lpthread -ldl
ar cru .libs/libsqbindings.a .libs/scriptbindings.o .libs/sc_consts.o .libs/sc_dialog.o .libs/sc_globals.o .libs/sc_plugin.o .libs/sc_progress.o .libs/sc_wxtypes.o .libs/sc_io.o
ranlib .libs/libsqbindings.a
creating libsqbindings.la
(cd .libs && rm -f libsqbindings.la && ln -s ../libsqbindings.la libsqbindings.la)
« Last Edit: January 12, 2007, 09:13:57 pm by pasgui »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: The 12 january 2007 build will NOT be out.
« Reply #4 on: January 12, 2007, 10:02:29 pm »
weird, this is what i get :

if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/sdk -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 -I../../../../src/sdk/wxscintilla/include -I../../../../src/sdk/scripting/include -I../../../../src/sdk/scripting/sqplus    -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT sc_dialog.lo -MD -MP -MF ".deps/sc_dialog.Tpo" -c -o sc_dialog.lo sc_dialog.cpp; \
        then mv -f ".deps/sc_dialog.Tpo" ".deps/sc_dialog.Plo"; else rm -f ".deps/sc_dialog.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/sdk -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 -I../../../../src/sdk/wxscintilla/include -I../../../../src/sdk/scripting/include -I../../../../src/sdk/scripting/sqplus -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT sc_dialog.lo -MD -MP -MF .deps/sc_dialog.Tpo -c sc_dialog.cpp  -fPIC -DPIC -o .libs/sc_dialog.o
sc_dialog.cpp: In function 'SQInteger ScriptBindings::XrcId(SQVM*)':
sc_dialog.cpp:101: error: call of overloaded 'Return(int)' is ambiguous
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:182: note: candidates are: SQInteger StackHandler::Return(const SQChar*) <near match>
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:187: note:                 SQInteger StackHandler::Return(SQFloat)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:192: note:                 SQInteger StackHandler::Return(SQInteger)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:197: note:                 SQInteger StackHandler::Return(bool)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:202: note:                 SQInteger StackHandler::Return(void*) <near match>
sc_dialog.cpp:109: error: call of overloaded 'Return(wxWindowID)' is ambiguous
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:182: note: candidates are: SQInteger StackHandler::Return(const SQChar*) <near match>
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:187: note:                 SQInteger StackHandler::Return(SQFloat)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:192: note:                 SQInteger StackHandler::Return(SQInteger)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:197: note:                 SQInteger StackHandler::Return(bool)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:202: note:                 SQInteger StackHandler::Return(void*) <near match>
make: *** [sc_dialog.lo] Error 1

Offline pasgui

  • Almost regular
  • **
  • Posts: 165
    • LGP
Re: The 12 january 2007 build will NOT be out.
« Reply #5 on: January 12, 2007, 10:33:56 pm »
In the squirrel.h file, when I make this modification:

#ifdef _SQ64
#ifdef _MSC_VER
//typedef __int64 SQInteger;
typedef unsigned __int64 SQUnsignedInteger;
typedef unsigned __int64 SQHash; /*should be the same size of a pointer*/
#else
//typedef long SQInteger;
typedef unsigned long SQUnsignedInteger;
typedef unsigned long SQHash; /*should be the same size of a pointer*/
#endif
typedef int SQInt32;
#else
//typedef int SQInteger;
typedef int SQInt32; /*must be 32 bits(also on 64bits processors)*/
typedef unsigned int SQUnsignedInteger;
typedef unsigned int SQHash; /*should be the same size of a pointer*/
#endif
typedef long SQInteger;

I got the same behavior, it look like it depends with _SQ64 _MSC_VER.

sc_dialog.cpp: In function 'SQInteger ScriptBindings::XrcId(SQVM*)':
sc_dialog.cpp:101: error: call of overloaded 'Return(int)' is ambiguous
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:182: note: candidates are: SQInteger StackHandler::Return(const SQChar*) <near match>
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:187: note:                 SQInteger StackHandler::Return(SQFloat)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:192: note:                 SQInteger StackHandler::Return(SQInteger)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:197: note:                 SQInteger StackHandler::Return(bool)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:202: note:                 SQInteger StackHandler::Return(void*) <near match>
sc_dialog.cpp:109: error: call of overloaded 'Return(wxWindowID)' is ambiguous
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:182: note: candidates are: SQInteger StackHandler::Return(const SQChar*) <near match>
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:187: note:                 SQInteger StackHandler::Return(SQFloat)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:192: note:                 SQInteger StackHandler::Return(SQInteger)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:197: note:                 SQInteger StackHandler::Return(bool)
../../../../src/sdk/scripting/sqplus/SquirrelObject.h:202: note:                 SQInteger StackHandler::Return(void*) <near match>
make: *** [sc_dialog.lo] Erreur 1

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: The 12 january 2007 build will NOT be out.
« Reply #6 on: January 12, 2007, 10:46:21 pm »
I think it is a error that happens on 64bit machines that define _LP64.
Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: The 12 january 2007 build will NOT be out.
« Reply #7 on: January 12, 2007, 11:10:40 pm »
yes I have on both 64 bit machines, staring to doubt if I had it on 32 bit, testing now, nope 32-bit ok
« Last Edit: January 13, 2007, 12:19:57 am by killerbot »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: The 12 january 2007 build will NOT be out.
« Reply #8 on: January 12, 2007, 11:14:16 pm »
A patch that might fix it.
Code
Index: src/sdk/scripting/sqplus/SquirrelObject.h
===================================================================
--- src/sdk/scripting/sqplus/SquirrelObject.h (revision 3480)
+++ src/sdk/scripting/sqplus/SquirrelObject.h (working copy)
@@ -11,7 +11,7 @@
  SquirrelObject(HSQOBJECT o);
  SquirrelObject & operator =(const SquirrelObject &o);
  SquirrelObject & operator =(int n);
- void AttachToStackObject(int idx);
+ void AttachToStackObject(SQInteger idx);
   void Reset(void); // Release (any) reference and reset _o.
   SquirrelObject Clone();
  BOOL SetValue(const SquirrelObject &key,const SquirrelObject &val);
@@ -102,21 +102,21 @@
  _top = sq_gettop(v);
  this->v = v;
  }
- SQFloat GetFloat(int idx) {
+ SQFloat GetFloat(SQInteger idx) {
  SQFloat x = 0.0f;
  if(idx > 0 && idx <= _top) {
  sq_getfloat(v,idx,&x);
  }
  return x;
  }
- SQInteger GetInt(int idx) {
+ SQInteger GetInt(SQInteger idx) {
  SQInteger x = 0;
  if(idx > 0 && idx <= _top) {
  sq_getinteger(v,idx,&x);
  }
  return x;
  }
- HSQOBJECT GetObjectHandle(int idx) {
+ HSQOBJECT GetObjectHandle(SQInteger idx) {
  HSQOBJECT x;
  if(idx > 0 && idx <= _top) {
  sq_resetobject(&x);
@@ -124,7 +124,7 @@
  }
  return x;
  }
- const SQChar *GetString(int idx)
+ const SQChar *GetString(SQInteger idx)
  {
     const SQChar *x = NULL;
  if(idx > 0 && idx <= _top) {
@@ -132,7 +132,7 @@
  }
  return x;
  }
- SQUserPointer GetUserPointer(int idx)
+ SQUserPointer GetUserPointer(SQInteger idx)
  {
  SQUserPointer x = 0;
  if(idx > 0 && idx <= _top) {
@@ -140,14 +140,14 @@
  }
  return x;
  }
- SQUserPointer GetInstanceUp(int idx,SQUserPointer tag)
+ SQUserPointer GetInstanceUp(SQInteger idx,SQUserPointer tag)
  {
  SQUserPointer self;
  if(SQ_FAILED(sq_getinstanceup(v,idx,(SQUserPointer*)&self,tag)))
  return NULL;
  return self;
  }
- SQUserPointer GetUserData(int idx,SQUserPointer tag=0)
+ SQUserPointer GetUserData(SQInteger idx,SQUserPointer tag=0)
  {
  SQUserPointer otag;
  SQUserPointer up;
@@ -159,7 +159,7 @@
  }
  return NULL;
  }
- BOOL GetBool(int idx)
+ BOOL GetBool(SQInteger idx)
  {
  SQBool ret;
  if(idx > 0 && idx <= _top) {
@@ -168,7 +168,7 @@
  }
  return FALSE;
  }
- int GetType(int idx)
+ int GetType(SQInteger idx)
  {
  if(idx > 0 && idx <= _top) {
  return sq_gettype(v,idx);
Index: src/sdk/scripting/sqplus/SquirrelObject.cpp
===================================================================
--- src/sdk/scripting/sqplus/SquirrelObject.cpp (revision 3480)
+++ src/sdk/scripting/sqplus/SquirrelObject.cpp (working copy)
@@ -71,7 +71,7 @@
  }
 }

-void SquirrelObject::AttachToStackObject(int idx)
+void SquirrelObject::AttachToStackObject(SQInteger idx)
 {
  HSQOBJECT t;
  sq_getstackobj(SquirrelVM::_VM,idx,&t);
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: The 12 january 2007 build will NOT be out.
« Reply #9 on: January 13, 2007, 12:22:01 am »
I'll leave this to Yiannis. The squirrel code used to work in the past, would be best if we don't need to change it.

@Yiannis : can you fix it ?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: The 12 january 2007 build will NOT be out.
« Reply #10 on: January 15, 2007, 09:24:15 am »
I'll leave this to Yiannis. The squirrel code used to work in the past, would be best if we don't need to change it.

@Yiannis : can you fix it ?

Sorry for responding so late (still no net at home :().
Just cast to (int) in the offending line. No need to patch anything.
Be patient!
This bug will be fixed soon...