Can't compile bonddb

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Can't compile bonddb

by Ibrahim Shaame :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am try to install bond, but when first installing bonddb scons gives 
me the following error message:
"gcc -o bondcommon/bc.os -c "-DUNIX " "-g -Wall -DMEM_TEST " -fPIC
-I/usr/include/glib- 2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c
cc1: error: unrecognised debug output level " -Wall -DMEM_TEST "
scons: *** [bondcommon/bc.os] Error 1
scons: building terminated because of errors."

Thanks for your help

NB:
My system is Slackware 10.2 (with upgraded libraries of Slackware 11)
GCC version is 3.4.6
Scons ver. 0.96.92
bond 2.2.5

_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Dru-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you have any idea why it is quoting everything? It should look like this
gcc -o bondcommon/bc.os -c -DUNIX -g -Wall -DMEM_TEST -fPIC
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c

What verison of python? I'm running 2.4.4

Ibrahim Shaame wrote:

> I am try to install bond, but when first installing bonddb scons gives
> me the following error message:
> "gcc -o bondcommon/bc.os -c "-DUNIX " "-g -Wall -DMEM_TEST " -fPIC
> -I/usr/include/glib-
> 2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c
> cc1: error: unrecognised debug output level " -Wall -DMEM_TEST "
> scons: *** [bondcommon/bc.os] Error 1
> scons: building terminated because of errors."
>
>
> Thanks for your help
>
> NB:
> My system is Slackware 10.2 (with upgraded libraries of Slackware 11)
> GCC  version is 3.4.6
> Scons ver. 0.96.92
> bond 2.2.5
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bond-users mailing list
> Bond-users@...
> 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@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Ibrahim Shaame :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No idea at all. I am using python 2.4.3. I have just tried to upgrade it to 2.5.1 but the result is the same.
Ibrahim

On 5/6/07, Dru <dru@...> wrote:
Do you have any idea why it is quoting everything? It should look like this
gcc -o bondcommon/bc.os -c -DUNIX -g -Wall -DMEM_TEST -fPIC
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c

What verison of python? I'm running 2.4.4

Ibrahim Shaame wrote:

> I am try to install bond, but when first installing bonddb scons gives
> me the following error message:
> "gcc -o bondcommon/bc.os -c "-DUNIX " "-g -Wall -DMEM_TEST " -fPIC
> -I/usr/include/glib-
> 2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c
> cc1: error: unrecognised debug output level " -Wall -DMEM_TEST "
> scons: *** [bondcommon/bc.os] Error 1
> scons: building terminated because of errors."
>
>
> Thanks for your help
>
> NB:
> My system is Slackware 10.2 (with upgraded libraries of Slackware 11)
> GCC  version is 3.4.6
> Scons ver. 0.96.92
> bond 2.2.5
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bond-users mailing list
> Bond-users@...
> 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@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Ibrahim Shaame :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Infact after installation of python-2.5.1 this is what I get as messages:

Traceback (most recent call last):
  File "/usr/bin/scons", line 160, in <module>
    import SCons.Script
  File "/usr/lib/scons-0.96.92/SCons/Script/__init__.py", line 73, in <module>
    import SCons.Builder
  File "/usr/lib/scons-0.96.92/SCons/Builder.py", line 130, in <module>
    import SCons.Node.FS
  File "/usr/lib/scons-0.96.92/SCons/Node/FS.py", line 51, in <module>
    import SCons.Sig.MD5
  File "/usr/lib/scons-0.96.92/SCons/Sig/MD5.py", line 41, in <module>
    md5 = imp.load_module('md5', file, name, desc)
  File "/usr/lib/python2.5/md5.py", line 6, in <module>
    from hashlib import md5
  File "/usr/lib/python2.5/hashlib.py", line 133, in <module>
    md5 = __get_builtin_constructor('md5')
  File "/usr/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
    import _md5
ImportError: No module named _md5

Thanks
Ibrahim


On 5/6/07, Ibrahim Shaame <ishaame@...> wrote:
No idea at all. I am using python 2.4.3. I have just tried to upgrade it to 2.5.1 but the result is the same.
Ibrahim


On 5/6/07, Dru <dru@...> wrote:
Do you have any idea why it is quoting everything? It should look like this
gcc -o bondcommon/bc.os -c -DUNIX -g -Wall -DMEM_TEST -fPIC
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c

What verison of python? I'm running 2.4.4

Ibrahim Shaame wrote:

> I am try to install bond, but when first installing bonddb scons gives
> me the following error message:
> "gcc -o bondcommon/bc.os -c "-DUNIX " "-g -Wall -DMEM_TEST " -fPIC
> -I/usr/include/glib-
> 2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c
> cc1: error: unrecognised debug output level " -Wall -DMEM_TEST "
> scons: *** [bondcommon/bc.os] Error 1
> scons: building terminated because of errors."
>
>
> Thanks for your help
>
> NB:
> My system is Slackware 10.2 (with upgraded libraries of Slackware 11)
> GCC  version is 3.4.6
> Scons ver. 0.96.92
> bond 2.2.5
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bond-users mailing list
> Bond-users@...
> 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@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users



_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by jasen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, May 05, 2007 at 11:43:54PM +0200, Ibrahim Shaame wrote:
> I am try to install bond, but when first installing bonddb scons gives
> me the following error message:
> "gcc -o bondcommon/bc.os -c "-DUNIX " "-g -Wall -DMEM_TEST " -fPIC
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c
> cc1: error: unrecognised debug output level " -Wall -DMEM_TEST "
> scons: *** [bondcommon/bc.os] Error 1
> scons: building terminated because of errors."

I fixed that bug some months ago... you can either use an older scons, or a
newer bond, or fix the bug by doing this:

 Edit the SConsstruct where is says  "-g -Wall -DMEM_TEST " to say
 ['-g','-Wall','-DMEM_TEST'] instead.


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Ibrahim Shaame :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks. I will try this evening and will let you know of the results.
Ibrahim

 
On 5/6/07, jasen@... <jasen@...> wrote:
On Sat, May 05, 2007 at 11:43:54PM +0200, Ibrahim Shaame wrote:
> I am try to install bond, but when first installing bonddb scons gives
> me the following error message:
> "gcc -o bondcommon/bc.os -c "-DUNIX " "-g -Wall -DMEM_TEST " -fPIC
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c
> cc1: error: unrecognised debug output level " -Wall -DMEM_TEST "
> scons: *** [bondcommon/bc.os] Error 1
> scons: building terminated because of errors."

I fixed that bug some months ago... you can either use an older scons, or a
newer bond, or fix the bug by doing this:

Edit the SConsstruct where is says  "-g -Wall -DMEM_TEST " to say
['-g','-Wall','-DMEM_TEST'] instead.


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Ibrahim Shaame :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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?

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)
pgsql/binding_pgsql.c:666: error: `value' undeclared (first use in this function)
pgsql/binding_pgsql.c:667: error: `func' undeclared (first use in this function)
pgsql/binding_pgsql.c:674: error: `key' undeclared (first use in this function)
pgsql/binding_pgsql.c: At top level
...........................................................
...............................................................
pgsql/binding_pgsql.c:1012: error: syntax error before '*' token
pgsql/binding_pgsql.c: In function `_db_findreference':
pgsql/binding_pgsql.c:1016: error: `l' undeclared (first use in this function)
pgsql/binding_pgsql.c:1017: error: `conn' undeclared (first use in this function)
pgsql/binding_pgsql.c:1025: error: `tablename' undeclared (first use in this function)
scons: *** [pgsql/binding_pgsql.os] Error 1
scons: building terminated because of errors.



Thanks
Ibrahim

On 5/7/07, Ibrahim Shaame <ishaame@...> wrote:
Thanks. I will try this evening and will let you know of the results.
Ibrahim

 
On 5/6/07, jasen@... < jasen@...> wrote:
On Sat, May 05, 2007 at 11:43:54PM +0200, Ibrahim Shaame wrote:
> I am try to install bond, but when first installing bonddb scons gives
> me the following error message:
> "gcc -o bondcommon/bc.os -c "-DUNIX " "-g -Wall -DMEM_TEST " -fPIC
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include bondcommon/bc.c
> cc1: error: unrecognised debug output level " -Wall -DMEM_TEST "
> scons: *** [bondcommon/bc.os] Error 1
> scons: building terminated because of errors."

I fixed that bug some months ago... you can either use an older scons, or a
newer bond, or fix the bug by doing this:

Edit the SConsstruct where is says  "-g -Wall -DMEM_TEST " to say
['-g','-Wall','-DMEM_TEST'] instead.


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users



_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by jasen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Colin Close :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...



jasen@... 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@...
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>
>  


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Dru-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You need to install flex and bison.  They create some of the C files
dynamically.



jasen@... 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@...
> 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@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Ibrahim Shaame :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...



jasen@... 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@...
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>
>


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Ibrahim Shaame :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, there were some warnings. The list was very long.. As for libpq-dev, I have not checked, but I suppose they are present, because I compiled postgresql myself. And of course I cannot exclude POSTRGRES, and that's the backend I am going to use.
 
Thanks
Ibrahim

 


jasen@... 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@...
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>
>


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Colin Close :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> <mailto:itchka@...>> 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@... <mailto:itchka@...>
>
>
>
>     jasen@... <mailto:jasen@...> 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@... <mailto:Bond-users@...>
>     > http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>     >
>     >
>
>
>     _______________________________________________
>     Bond-users mailing list
>     Bond-users@... <mailto:Bond-users@...>
>     http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bond-users mailing list
> Bond-users@...
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>  


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Ibrahim Shaame :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...
> <mailto:itchka@...>> 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@... <mailto:itchka@...>
>
>
>
>     jasen@... <mailto:jasen@...> 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@... <mailto:Bond-users@...>
>     > http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>     >
>     >
>
>
>     _______________________________________________
>     Bond-users mailing list
>     Bond-users@... <mailto:Bond-users@...>
>     http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bond-users mailing list
> Bond-users@...
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
>


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users


_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Can't compile bonddb

by Dru-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Can you run bondfrontend ?
It should be in /usr/local/bin

And it would give you an error when you run it about missing .conf file.
Look at one of the examples, edit and move the .conf file. Then run
bondfrontend from within the example directory

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@...
> <mailto:itchka@...>> 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 tri