niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
Newbie Question
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
dengyuan
*nix forums beginner


Joined: 23 Mar 2005
Posts: 4

PostPosted: Thu Mar 31, 2005 1:33 pm    Post subject: Re: Newbie Question Reply with quote

Hi George,

I modified the codes as you specified and it works perfectly without
the '--enable-java'. After I tried the '-p cygwin --enable-java', I got
the two problems. The first one is the CLASSPATH due to the difference
of the directory separator of ":" and ";". I also had the problem of
not locating the jni_md.h which I can resolve it by link the
win32/jni_md.h to the parent directory. Could you share with me how to
resolve the problem to let window's java.exe to know the directory
separator is ":" instead of ";" ?

TIA, Daniel Smile)

dengyuan wrote:
Quote:
George,

I will try it, thanx for quick response. Looks like, it's NOT apply
to
Linux since it's NOT WIN32, right ?

Another question is the '--enable-java', when I use 'sh buildall.sh
-p
cygwin --enable-java', I got the error of not locating the jni_md.h
included in jni.h. How do I point the
$JAVA_HOME/include/win32/jni_md.h. I bet the problem is the win32 and
cygwin.

TIA, daniel Smile)
Back to top
dengyuan
*nix forums beginner


Joined: 23 Mar 2005
Posts: 4

PostPosted: Fri Mar 25, 2005 2:13 pm    Post subject: Re: Newbie Question Reply with quote

George,

I will try it, thanx for quick response. Looks like, it's NOT apply to
Linux since it's NOT WIN32, right ?

Another question is the '--enable-java', when I use 'sh buildall.sh -p
cygwin --enable-java', I got the error of not locating the jni_md.h
included in jni.h. How do I point the
$JAVA_HOME/include/win32/jni_md.h. I bet the problem is the win32 and
cygwin.

TIA, daniel Smile)
Back to top
George
*nix forums Guru Wannabe


Joined: 26 Feb 2005
Posts: 198

PostPosted: Fri Mar 25, 2005 11:34 am    Post subject: Re: Newbie Question Reply with quote

Daniel,

BDB XML 2.0.9 has been built with cygwin, using a patch.
I do not have that patch available, separately, but I can describe the
changes,
which are simple.

Look in every file in the dbxml, pathan, and xquery-1.0.3
subdirectories (find is
your friend). Every occurrence of:
#ifdef WIN32
should be replaced by
#if defined(WIN32) && !defined(__CYGWIN__)

There are some #idef _WIN32 as well -- leave these alone.

This change has been made in release 2.1, which is coming out
in the next few weeks.

Regards,

George
Sleepycat Software
Back to top
dengyuan
*nix forums beginner


Joined: 23 Mar 2005
Posts: 4

PostPosted: Thu Mar 24, 2005 10:25 pm    Post subject: Re: Newbie Question Reply with quote

Hi Ron,

I'm using gcc 3.3.3 on Window XP, I ran 'sh buildall.sh -p cygwin'
otherwise the platform is unrecognized. I got the following error
messages while building pathan/src/lexer:

make[1]: Entering directory `/tools/dbxml-2.0.9/pathan/src/lexer'
In file included from /usr/include/c++/3.3.3/bits/locale_facets.tcc:43,
from /usr/include/c++/3.3.3/locale:47,
from /usr/include/c++/3.3.3/bits/ostream.tcc:37,
from /usr/include/c++/3.3.3/ostream:535,
from /usr/include/c++/3.3.3/iostream:45,
from XPath2Lexer.lex:8:
/usr/include/c++/3.3.3/limits:205:22: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:206:22: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:222:23: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:224:23: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:275:23: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:277:23: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:325:30: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:327:30: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:375:32: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:377:32: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:425:26: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:427:26: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:475:24: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:477:24: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:525:33: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:527:33: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:575:22: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:577:22: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:625:31: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:627:31: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:675:23: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:677:23: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:725:32: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:727:32: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:775:28: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:777:28: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:825:37: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:827:37: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:875:24: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:877:24: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:933:25: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:935:25: macro "max" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:991:30: macro "min" requires 2 arguments,
but only 1 given
/usr/include/c++/3.3.3/limits:993:30: macro "max" requires 2 arguments,
but only 1 given
In file included from /usr/include/c++/3.3.3/locale:47,
from /usr/include/c++/3.3.3/bits/ostream.tcc:37,
from /usr/include/c++/3.3.3/ostream:535,
from /usr/include/c++/3.3.3/iostream:45,
from XPath2Lexer.lex:8:
/usr/include/c++/3.3.3/bits/locale_facets.tcc:499:58: macro "max"
requires 2 arguments, but only 1 given
/usr/include/c++/3.3.3/bits/locale_facets.tcc:518:56: macro "max"
requires 2 arguments, but only 1 given
/usr/include/c++/3.3.3/bits/locale_facets.tcc:1713:59: macro "max"
requires 2 arguments, but only 1 given
In file included from /usr/include/c++/3.3.3/istream:768,
from /usr/include/c++/3.3.3/iostream:46,
from XPath2Lexer.lex:8:

TIA, daniel Smile)

Ron wrote:
Quote:
dengyuan wrote:
Hi,

I have downloaded the DB XML 2.0.9, do I need to build it before I
can
use it ? If not, where can I find the jar file for com.sleepycat.db
or
com.sleepycat.dbxml classes ?

TIA,

Daniel Smile)

Hi Daniel,

Yes you need to build it. The instructions are found here:

http://www.sleepycat.com/xmldocs/ref_xml/xml_unix/intro.html

Ron
Sleepycat Software
Back to top
Ron
*nix forums Guru Wannabe


Joined: 01 Apr 2005
Posts: 157

PostPosted: Thu Mar 24, 2005 1:15 am    Post subject: Re: Newbie Question Reply with quote

dengyuan wrote:
Quote:
Hi,

I have downloaded the DB XML 2.0.9, do I need to build it before I
can
use it ? If not, where can I find the jar file for com.sleepycat.db
or
com.sleepycat.dbxml classes ?

TIA,

Daniel Smile)

Hi Daniel,

Yes you need to build it. The instructions are found here:

http://www.sleepycat.com/xmldocs/ref_xml/xml_unix/intro.html

Ron
Sleepycat Software
Back to top
dengyuan
*nix forums beginner


Joined: 23 Mar 2005
Posts: 4

PostPosted: Wed Mar 23, 2005 7:58 pm    Post subject: Newbie Question Reply with quote

Hi,

I have downloaded the DB XML 2.0.9, do I need to build it before I can
use it ? If not, where can I find the jar file for com.sleepycat.db or
com.sleepycat.dbxml classes ?

TIA,

Daniel Smile)
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 5:05 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Newbie question: How to forward a domain to a mailbox? leei Postfix 0 Fri Aug 24, 2007 4:55 pm
No new posts configuration question for httpd Karl Wang Apache 1 Fri Jul 21, 2006 2:10 pm
No new posts nim problem/question Ron AIX 0 Fri Jul 21, 2006 1:57 pm
No new posts question for JAVA developer who r using postgres sql as b... deepak pal PostgreSQL 1 Fri Jul 21, 2006 9:00 am
No new posts Encryption Question dtuttle1@gmail.com Berkeley DB 2 Thu Jul 20, 2006 10:09 pm

Mortgage Calculator | Debt Consolidation | Webhosting catalogue | Loans | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2163s ][ Queries: 20 (0.1251s) ][ GZIP on - Debug on ]