[Bond-users] Can't compile bonddb

Ibrahim Shaame ishaame at gmail.com
Thu May 10 11:36:49 EDT 2007


Here is the output:

(gdb) bt
#0  0x4073be0b in strlen () from /lib/libc.so.6
#1  0x4070fdc5 in vfprintf () from /lib/libc.so.6
#2  0x40063126 in debug_msg (file=0x8064f2b "src/uiplugin.c", line=161,
function=0x8065063 "plugin_create", level=15, msgtype=Debug_Log,
fmt=0x8064f69 "prec=%s")
    at bondcommon/bcdebug.c:202
#3  0x0805c9b5 in plugin_create (library=0x808a9dc "gtk", args=0x0) at
src/uiplugin.c:161
#4  0x0805cd8f in ui_init (library=0x8068efc "gtk", localargs=0x0,
xmlfile=0x8069134 "../examples/testsoldier.xml", argc=1, argv=0xbffff5b4) at
src/ui.c:58
#5  0x08050b04 in bond_init (argc=1, argv=0xbffff5b4, bond=0xbffff560) at
src/bondmain.c:107
#6  0x08060318 in main (argc=1, argv=0xbffff5b4) at src/bondfrontend.c:43
(gdb)


Ibrahim

On 5/9/07, Dru <dru at treshna.com> wrote:
>
> Can you run it though gdb or strace?
>
> run
> gdb bondfrontend
> r
> then when it seg faults type
> bt
>
> And copy and paste output here.
>
>
>
> Ibrahim Shaame wrote:
> > I have run the bondfrontend, but now I get a segmentation fault, which
> > is apparently caused by wxGTK-2.6.3. I put back an older version
> > (wxGTK-2.4.2), installed a new copy of bond, ran scons and scons
> > install. But still I get the same message:
> > **************************************
> >
> ================================================================================
> > Reading configuration file /etc/bondfrontend.conf.
> > Connecting to database: dbname=zanzibar user=ibrahim host=localhost
> > Libary /usr/local/lib/libbonddb2_pgsql.so successfully loaded.
> > Connection to the database established successfully.
> >  <src/uiplugin.c:161 plugin_create();>
> > prec=/opt/databases/pgsql/lib:/opt/myapps/wxGTK-2.6.3/lib
> > checking directory/opt/databases/pgsql/lib/
> >  <src/uiplugin.c:161 plugin_create();> prec=/opt/myapps/wxGTK-2.6.3/lib
> > checking directory/opt/myapps/wxGTK-2.6.3/lib/
> > Segmentation fault
> > ibrahim at AMD_2400:/dwnlds/databases/bond/bond/examples$
> >
> > ******************************************
> > Any hint ?
> >
> > Ibrahim
> >
> >
> > On 5/9/07, *Colin Close* <itchka at compuserve.com
> > <mailto:itchka at compuserve.com>> wrote:
> >
> >     Hi Ibrahim,
> >
> >     Take a look in /usr/local/bin and /usr/local/lib it should all be
> there.
> >
> >     Cest
> >
> >     Colin Close
> >
> >     Ibrahim Shaame wrote:
> >      > Hi,
> >      >    I have created the symlinks and scons does not give any error
> >      > messages anymore. So I have run scons and scons install on both
> >     bonddb
> >      > and bond. But then I don't seem to undertand where the
> applications
> >      > are installed ( as scons does not give you a choice of where to
> >      > install the application, as it the case with
> ./configure).  I  have
> >      > not been able to run bond. Am I missing something?
> >      > Thanks again for your patience
> >      > Ibrahim
> >      >
> >      > On 5/8/07, *Colin Close* < itchka at compuserve.com
> >     <mailto:itchka at compuserve.com>
> >      > <mailto:itchka at compuserve.com <mailto:itchka at compuserve.com>>>
> wrote:
> >      >
> >      >     Hi Ibrahim,
> >      >
> >      >     I didn't touch scons I edited the source. The file you need
> >     to hack in
> >      >     Bond is pgsql/binding_pgsql.c; I simply pre-pended the path
> to my
> >      >     includes to libpq-fe.h.
> >      >     I didn't do it with scons because its not possible (well, not
> >      >     simple) to
> >      >     get scons to accept environment variables from the shell
> >     although I
> >      >     believe this can be done.
> >      >     With regard to libraries thats fixable with a symbolic link.
> >     If you
> >      >     don't know this then "man ln" will give you some help.
> >      >     Before I get jumped on I must say that this is a very bad way
> >     of doing
> >      >     things and it really should be sorted via the build system.
> >     The old
> >      >     configure/make build system had mechanisms for getting round
> >     these
> >      >     kind
> >      >     of difficulties scons however is much more disciplined but
> >     has the
> >      >     advantage of being blisteringly fast.
> >      >
> >      >     Best
> >      >
> >      >     Colin Close
> >      >
> >      >
> >      >
> >      >     Ibrahim Shaame wrote:
> >      >     > Yes, my postgresql is not at a standard location. Now how
> >     can I
> >      >     tell
> >      >     > scons to go and find my postgresql libs and include files.
> I
> >      >     tried to
> >      >     > check the SConstruct file but could not get a clue.
> >      >     > Ibrahim
> >      >     >
> >      >     >
> >      >     > On 5/7/07, *Colin Close* < itchka at compuserve.com
> >     <mailto:itchka at compuserve.com>
> >      >     <mailto:itchka at compuserve.com <mailto:itchka at compuserve.com>>
> >      >     > <mailto:itchka at compuserve.com
> >     <mailto:itchka at compuserve.com> <mailto:itchka at compuserve.com
> >     <mailto:itchka at compuserve.com>>>>
> >      >     wrote:
> >      >     >
> >      >     >     Hi,
> >      >     >
> >      >     >     I had similar problems, you may find that your OS puts
> >     the psql
> >      >     >     includes
> >      >     >     in a different place that bond expects.  Mine is in two
> >      >     places on
> >      >     >     Mandriva /usr/include/pgsql/libpq which has a single
> >     include
> >      >     file and
> >      >     >     /usr/include/pgsql/server/libpq which contains the ones
> >      >     required to
> >      >     >     compile Bond.
> >      >     >     I patched the offending files but there are probably
> more
> >      >     elegant
> >      >     >     ways.
> >      >     >     Note that you will have the same problem with Papyrus.
> >      >     >
> >      >     >     Colin Close
> >      >     >     itchka at compuserve.com <mailto:itchka at compuserve.com>
> >     <mailto:itchka at compuserve.com <mailto:itchka at compuserve.com>>
> >      >     <mailto: itchka at compuserve.com <mailto:itchka at compuserve.com>
> >     <mailto:itchka at compuserve.com <mailto:itchka at compuserve.com>>>
> >      >     >
> >      >     >
> >      >     >
> >      >     >     jasen at tyreal.treshna.com
> >     <mailto:jasen at tyreal.treshna.com> <mailto:jasen at tyreal.treshna.com
> >     <mailto:jasen at tyreal.treshna.com>>
> >      >     <mailto: jasen at tyreal.treshna.com
> >     <mailto:jasen at tyreal.treshna.com>
> >      >     <mailto:jasen at tyreal.treshna.com
> >     <mailto:jasen at tyreal.treshna.com>>> wrote:
> >      >     >     >
> >      >     >     > On Mon, May 07, 2007 at 10:17:27PM +0200, Ibrahim
> Shaame
> >      >     wrote:
> >      >     >     >
> >      >     >     >> I have downgraded the scons and now I get a lot or
> error
> >      >     >     messages. The
> >      >     >     >> following is just a part of it. I guess  there is a
> >      >     problem of
> >      >     >     a header file
> >      >     >     >> not found, maybe?
> >      >     >     >>
> >      >     >     >
> >      >     >     > was there a warning before the errors ?
> >      >     >     >
> >      >     >     >
> >      >     >     >> pgsql/binding_pgsql.c: At top level:
> >      >     >     >> pgsql/binding_pgsql.c:659: error: syntax error
> >     before '*'
> >      >     token
> >      >     >     >> pgsql/binding_pgsql.c: In function
> >     `_db_cachedefaultvalue':
> >      >     >     >> pgsql/binding_pgsql.c:663: error: `l' undeclared
> (first
> >      >     use in this
> >      >     >     >> function)
> >      >     >     >>
> >      >     >     >
> >      >     >     > have you installed libpq-dev ?
> >      >     >     > (or if you don't want posgres support compile with
> scons
> >      >     >     POSTGRES=0 ... )
> >      >     >     >
> >      >     >     >
> >      >     >     >
> >      >     >     >
> >      >     >     > _______________________________________________
> >      >     >     > Bond-users mailing list
> >      >     >     > Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>
> >     <mailto:Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>>
> >      >     <mailto: Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>
> >     <mailto:Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>>>
> >      >     >     > http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
> >     <http://hcoop.net/cgi-bin/mailman/listinfo/bond-users>
> >      >     <http://hcoop.net/cgi-bin/mailman/listinfo/bond-users>
> >      >     >     >
> >      >     >     >
> >      >     >
> >      >     >
> >      >     >     _______________________________________________
> >      >     >     Bond-users mailing list
> >      >     >     Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>
> >     <mailto: Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>>
> >      >     <mailto:Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>
> >     <mailto:Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>>>
> >      >     >     http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
> >      >     >
> >      >     >
> >      >     >
> >      >
> >
> ------------------------------------------------------------------------
> >      >     >
> >      >     > _______________________________________________
> >      >     > Bond-users mailing list
> >      >     > Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>
> >     <mailto:Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>>
> >      >     > http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
> >      >     >
> >      >
> >      >
> >      >     _______________________________________________
> >      >     Bond-users mailing list
> >      >     Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>
> >     <mailto:Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>>
> >      >     http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
> >     <http://hcoop.net/cgi-bin/mailman/listinfo/bond-users>
> >      >
> >      >
> >      >
> >
> ------------------------------------------------------------------------
> >      >
> >      > _______________________________________________
> >      > Bond-users mailing list
> >      > Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>
> >      > http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
> >      >
> >
> >
> >     _______________________________________________
> >     Bond-users mailing list
> >     Bond-users at hcoop.net <mailto:Bond-users at hcoop.net>
> >     http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Bond-users mailing list
> > Bond-users at hcoop.net
> > http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>
>
> --
> Andrew Hill
> treshna Enterprises Ltd
> Tel: 03 366 3649
> Cel: 021 660 819
> Web: www.treshna.com
> IT Consultancy - Websites - Database development - Computer tech support
>
> _______________________________________________
> Bond-users mailing list
> Bond-users at hcoop.net
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://hcoop.net/pipermail/bond-users/attachments/20070510/75a10730/attachment.htm 


More information about the Bond-users mailing list