[Gambas-devel] makefile !!!
Daniel
daniel at ...318...
Sun Oct 9 02:57:55 CEST 2005
PV wrote:
> On 08/10/2005 14:35, Daniel wrote:
>
>> this code is for the 2.4.4 ibpp library (README)
>> 1)dowload the last version and install it and also the ibpp.h header
>> 1.a) do ldconfig
>> 2) rename the directory gb.db.firebird in gb.db.firebird.ok and untar
>> unzip the file in attachement
>> 3) reconfig + ./configure ... etc (the makefile.am in src is modif.
>> to -fexecptions)
>> 4) a small prayer
>
>
> Ok, upgraded ibpp to 2.4.4, the compilation now runs smoothly.
> However, exceptions still don't seem to work properly and the program
> stops unexpectedly by raising signal #6.
>
> Following Benoit's suggestion, here's a backtrace of the stack when
> the program stops:
>
> Program received signal SIGABRT, Aborted.
> [Switching to Thread 16384 (LWP 7383)]
> 0x40083ef1 in kill () from /lib/libc.so.6
> (gdb) bt
> #0 0x40083ef1 in kill () from /lib/libc.so.6
> #1 0x4025bbb1 in pthread_kill () from /lib/libpthread.so.0
> #2 0x4025bf2b in raise () from /lib/libpthread.so.0
> #3 0x40083b24 in raise () from /lib/libc.so.6
> #4 0x400853fd in abort () from /lib/libc.so.6
> #5 0x409f9954 in __cxa_call_unexpected () from /usr/lib/./libstdc++.so.5
> #6 0x409f9991 in std::terminate () from /usr/lib/./libstdc++.so.5
> #7 0x409f9b01 in __cxa_throw () from /usr/lib/./libstdc++.so.5
> #8 0x409b2e0c in std::__throw_out_of_range () from
> /usr/lib/./libstdc++.so.5
> #9 0x409e969f in std::string::_M_check () from /usr/lib/./libstdc++.so.5
> #10 0x409e9d9c in std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::basic_string ()
> from /usr/lib/./libstdc++.so.5
> #11 0x41dbe12e in db_version (str1=
> {static npos = 4294967295, _M_dataplus =
> {<std::allocator<char>> = {<No data fields>}, _M_p = 0x40a1ecac ""},
> static _S_empty_rep_storage = {0, 0, 6, 0}}) at main.cpp:920
> #12 0x41dbe72a in open_database (desc=0x81afb80, charset=0x81afba0) at
> main.cpp:969
> #13 0x4001a095 in DB_Open () from /usr/local/lib/gambas2/gb.db.so
> #14 0x4001a987 in CCONNECTION_open () from
> /usr/local/lib/gambas2/gb.db.so
> #15 0x0804de32 in ?? ()
> #16 0x081afb70 in ?? ()
> #17 0x08074fc8 in ?? ()
> #18 0x00000000 in ?? ()
> #19 0xbfffe898 in ?? ()
> #20 0x0804e0c4 in ?? ()
> #21 0x4001a939 in CCONNECTION_version () from
> /usr/local/lib/gambas2/gb.db.so
> Previous frame inner to this frame (corrupt stack?)
>
> The library can't connect to the db server because I've faked a
> problem on port 3050, the same problem that I actually had before
> discovering it :)
>
> If all parameters are set correctly (login, pw etc.) and there are no
> connection problems everything seems to run just fine.
>
>
> Ciao,
> Piero
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>
>
i think the line 969 (main.cpp) is the problem !!!
can you remove this line by one //
desc->version=db_version(con->GetVersion(desc->host, desc->user,
desc->password));
can i see the result of the command in isql
isql>show version;
please
I believe the format of the line is not the same one as for my version
daniel
More information about the Devel
mailing list