[Bond-users] Can't compile bonddb

docelic at mail.inet.hr docelic at mail.inet.hr
Thu May 10 03:38:35 EDT 2007


On Thu, May 10, 2007 at 12:47:13AM +0100, Colin Close wrote:
> Hi Ibrahim,
> 
> I had something similar but I can't for the life of me remember how I 
> fixed it.
> This could be a library path issue try running ldd 
> /usr/local/bin/bondfrontend.
> If it finds all the libraries then you'll have to try strace. It may be 
> necessary to add the locations of your libraries to /etc/ld.so.conf and 
> run ldconfig. After that I am afraid you are on your own> Bear in mind 
> that if you have downloaded from svn the build could be  broken at his time.

Yes, and you can also run  ldconfig /path/to/directory/lib  without
editing ld.so.conf.

Cya,
-doc
> 
> Best,
> 
> Colin Close
> 
> 
> 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
> >   
> 
> 
> _______________________________________________
> Bond-users mailing list
> Bond-users at hcoop.net
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users




More information about the Bond-users mailing list