Re: [OpenWrt-Devel] Berekely DB porting

2008-05-01 Thread Zintis
Thanks for response.

 

It seems that in my case MIPS/gcc-assembly solved the problem. I have to
test the programm more carefully, bit it seemst that we have dctc package
for openwrt;)

 

MoD

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Boreham
Sent: Thursday, May 01, 2008 2:33 AM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] Berekely DB porting

 

Zintis wrote: 

 

I'm trying to port Direct Connect Text Client for Broadcom 2.4 kernel. It
needs Berkeley DB. Although there is a package in repository, it doesn't
work - I'm getting error: unable to initialize mutex: Function not
implemented

This might imply that the package was configured in a different environment
than you are running. Did you build the package yourself ?
At configure time, the bdb build detects what mutex
implementation is available. If it is built somewhere where it finds for
example
pthread mutexes, but those are not available at runtime, you will get this
error.
The same error also happens if you configure on a machine with linuxthreads,
but run on one with ntpl (not saying that this is your problem, but I've
seen 
this specific bdb error many times in my travels).



 

Berkeley homepage
http://www.oracle.com/technology/products/berkeley-db/faq/db_faq.html#12
says: To avoid this error, explicitly specify the mutex implementation DB
should use, with the --with-mutex=MUTEX configuration flag 

 

Does anybody can give a hint what I should write there? While googling, I
found (http://fs-prisms.blogspot.com/2007/08/dtn-additional-notes.html) that
for DTN it is possible to use --with-mutex=ARM/gcc-assembly

 

I'd recommend that you build the bdb package and examine the output from
configure when it's run. Feel free to post it here. I wrote some of the bdb
mutex
implementations way back, so I'm reasonably familiar with the space.









___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Berekely DB porting

2008-05-01 Thread Zintis
I was more like surprised that bdb package is in repository but doesnt
works

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Boreham
Sent: Thursday, May 01, 2008 2:33 AM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] Berekely DB porting

 

Zintis wrote: 

 

I'm trying to port Direct Connect Text Client for Broadcom 2.4 kernel. It
needs Berkeley DB. Although there is a package in repository, it doesn't
work - I'm getting error: unable to initialize mutex: Function not
implemented

This might imply that the package was configured in a different environment
than you are running. Did you build the package yourself ?
At configure time, the bdb build detects what mutex
implementation is available. If it is built somewhere where it finds for
example
pthread mutexes, but those are not available at runtime, you will get this
error.
The same error also happens if you configure on a machine with linuxthreads,
but run on one with ntpl (not saying that this is your problem, but I've
seen 
this specific bdb error many times in my travels).



 

Berkeley homepage
http://www.oracle.com/technology/products/berkeley-db/faq/db_faq.html#12
says: To avoid this error, explicitly specify the mutex implementation DB
should use, with the --with-mutex=MUTEX configuration flag 

 

Does anybody can give a hint what I should write there? While googling, I
found (http://fs-prisms.blogspot.com/2007/08/dtn-additional-notes.html) that
for DTN it is possible to use --with-mutex=ARM/gcc-assembly

 

I'd recommend that you build the bdb package and examine the output from
configure when it's run. Feel free to post it here. I wrote some of the bdb
mutex
implementations way back, so I'm reasonably familiar with the space.









___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Berekely DB porting

2008-05-01 Thread David Boreham

Zintis wrote:


I was more like surprised that bdb package is in repository but doesnt 
works



Welcome to the world of open source :)



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Berekely DB porting

2008-04-30 Thread David Boreham

Zintis wrote:


 

I'm trying to port Direct Connect Text Client for Broadcom 2.4 kernel. 
It needs Berkeley DB. Although there is a package in repository, it 
doesn't work -- I'm getting error: unable to initialize mutex: 
Function not implemented



This might imply that the package was configured in a different environment
than you are running. Did you build the package yourself ?
At configure time, the bdb build detects what mutex
implementation is available. If it is built somewhere where it finds for 
example
pthread mutexes, but those are not available at runtime, you will get 
this error.

The same error also happens if you configure on a machine with linuxthreads,
but run on one with ntpl (not saying that this is your problem, but I've 
seen

this specific bdb error many times in my travels).


 

Berkeley homepage 
http://www.oracle.com/technology/products/berkeley-db/faq/db_faq.html#12 
says: To avoid this error, explicitly specify the mutex 
implementation DB should use, with the --with-mutex=MUTEX 
configuration flag


 

Does anybody can give a hint what I should write there? While 
googling, I found 
(http://fs-prisms.blogspot.com/2007/08/dtn-additional-notes.html) that 
for DTN it is possible to use --with-mutex=ARM/gcc-assembly


 


I'd recommend that you build the bdb package and examine the output from
configure when it's run. Feel free to post it here. I wrote some of the 
bdb mutex

implementations way back, so I'm reasonably familiar with the space.








___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel