XQilla 2.2.0
Hello,
Will the next version of BDB XML use XQilla 2.2.0 ? If so, does this mean that we'll have XSLT support in the database ?
Thanks,
Fabrice
Hi Fabrice,
The next version of DB XML will use XQilla 2.2.0 or a later version. However XSLT 2.0 support in XQilla 2.2.0 is still incomplete, and support for it in DB XML is a little way off as yet.
John
Similar Messages
-
XQilla problem while building dbxml for Visual Studio 6
I am simply trying to build dbxml 2.4.16 in Visual Studio 6 on XP Pro. I am following the instructions. It fails to to link when it gets to xqilla. It seems to compiile ok then fails while linking saying it cannot open file xqilla21d.lib.
The only departure from the instructions was after it says the XercesLib.dsp makefile could not be generated by developer Studio and wraps the makefile for XercesLib.dsp and I save that as XercesLib1.dsp. The instructions say to build the XercesLib now, but the next thing that happens after I save XercesLib1.dsp is that it says it couldn't generate the makefile for xqillla and it asks about wrapping the xqulla makefile. The instructions didn't say anything about that. I said yes and it saved xqilla1.dsp then brings up all the classes in the classview. I can build the XercesLib1.exe fine. But then as I go to build all it eventually chokes giving the link error.
Can anyone offer any help?
Thanks,
CurtGeorge,
Thanks for taking the time to reply, though it was pretty discouraging. We have a legacy application that would cost too much to move out of Visual Studio 6. The compile and link process was almost at the end and it seemed only xqilla remained. We only need use dbxml under Visual Studio 6 in order to put xml documents into a database, but we have a stiff requirement for speed so we cant' afford the speed penalty that would come from including a layer like .NET or something. If you think that it won't build under VS 6 anymore I'll try to deal with that. If you think that there is a way to get it to build and then do the minimal function of putting documents into a database, from Visual C++ I'd appreciate to hear any thing else you may have to say.
Otherwise I'll just see if I can install VS 2003 .NET but not use the .NET and try that, or try Visual Studio 2005, again not using .NET.
Thanks,
Curt -
Berkeley DB XML crashing on Vista (entry point not found in Xqilla.dll)
Hello,
I'm trying to run Berkely DB XML on Windows Vista but it countinues crashing and I cannot find the reason. I downloaded the Berkeley DB XML source project and compiled it in Visual Studio 2005, following the compiling instructions.
If I compile everything in debug mode all the sample apps and the dbxml.exe work correctly. The problem arises when I compile everything in release mode and I try to run dbxml.exe or any aother sample app.
Debugging the helloWorld application I get the following error, even before entering the main() function:
Entry Point not Found - The procedure entry point ?allocateTempVarName@XQDynamicContextImpl@@UAEPB_WXZ could not be located in the dynamic link library xqilla21.dll
Anyone ever encountered this problem ?
Thanks
Regards
MatteoMatteo,
Have you tried just compiling and running the xqilla.exe command-line program to see if that works?
Regards,
George -
Using XQilla XQuery Extension Functions in BDBXML
Hello
How i can use xqilla:parse-json function in BDBXML?
http://xqilla.sourceforge.net/ExtensionFunctions
Thx,
VitaliyVitaliy,
Because it's in XQilla you can just use it. If there are issues it is not available for Oracle-based support but those working on XQilla will likely investigate.
Here's an example that just returns the XML mapping of some simple JSON:
dbxml> query xqilla:parse-json('{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
1 objects returned for eager expression 'xqilla:parse-json('{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
dbxml> print
<json type="object"><pair name="menu" type="object"><pair name="id" type="string">file</pair><pair name="value" type="string">File</pair><pair name="popup" type="object"><pair name="menuitem" type="array"><item type="object"><pair name="value" type="string">New</pair><pair name="onclick" type="string">CreateNewDoc()</pair></item><item type="object"><pair name="value" type="string">Open</pair><pair name="onclick" type="string">OpenDoc()</pair></item><item type="object"><pair name="value" type="string">Close</pair><pair name="onclick" type="string">CloseDoc()</pair></item></pair></pair></pair></json>
Here's an example that queries the parsed JSON:
dbxml> query xqilla:parse-json('{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
}}')//pair[.="CreateNewDoc()"]
1 objects returned for eager expression 'xqilla:parse-json('{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
}}')//pair[.="CreateNewDoc()"]'
dbxml> print
<pair name="onclick" type="string">CreateNewDoc()</pair>
Have fun -- it's quite experimental at this stage.
Regards,
George -
Bdbxml2.5.16(xqilla 2.2) cannot work with vs2010 STL correctly
When I run the gettingStarted examples using the binaries built from vs2010, the process that involves a query operation, say, dbxml_example_queryWithDocumentNames.exe, ends up with an unhandled exception 0xC0000005 in STL. The stack looks like this:
msvcp100d.dll!std::_Container_base12::_Orphan_all() line 202 + 0x5 bytes
xqilla22d.dll!std::vector<Collation *,XQillaAllocator<Collation *> >::reserve(unsigned int _Count) line 768 + 0xb bytes
xqilla22d.dll!std::vector<Collation *,XQillaAllocator<Collation *> >::_Reserve(unsigned int _Count) line 1298
8b520851() The function back trace before entering STL is:
xqilla22d.dll!XQContextImpl::addCollation(Collation * collation) line 667
xqilla22d.dll!XQContextImpl::XQContextImpl(XQillaConfiguration * conf, XQilla::Language language, xercesc_3_0::MemoryManager * memMgr) line 126
xqilla22d.dll!XQilla::createContext(XQilla::Language language, XQillaConfiguration * conf, xercesc_3_0::MemoryManager * memMgr) line 196 + 0x3f bytes
libdbxml25d.dll!DbXml::QueryExpression::QueryExpression(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & query, DbXml::XmlQueryContext & context, DbXml::Transaction * txn, bool debug) line 48 + 0x116 bytes
libdbxml25d.dll!DbXml::XmlManager::prepare(DbXml::XmlTransaction & txn, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & xquery, DbXml::XmlQueryContext & context) line 671 + 0x38 bytes
libdbxml25d.dll!DbXml::XmlManager::query(DbXml::XmlTransaction & txn, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & xquery, DbXml::XmlQueryContext & context, unsigned int flags) line 689 + 0x28 bytes
dbxml_example_queryWithDocumentNames.exe!doContextQuery(DbXml::XmlTransaction & txn, DbXml::XmlManager & mgr, std::basic_string<char,std::char_traits<char>,std::allocator<char> > cname, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & query, DbXml::XmlQueryContext & context) line 70 + 0x20 bytes
dbxml_example_queryWithDocumentNames.exe!main(int argc, char * * argv) line 184 + 0x61 bytes
dbxml_example_queryWithDocumentNames.exe!__tmainCRTStartup() line 555 + 0x19 bytes
dbxml_example_queryWithDocumentNames.exe!mainCRTStartup() line 371Does anyone have a solution?
Thanks in advance.Thanks for your reply.
I built all the projects, such as xereces, xqilla, db, dbxml... from the scratch in vs2010. so there were no older library linked.
But i found a way to make everything ok. i.e. delete the
if (_n == 1) return _singleton;
in XQillaAllocator::allocate().
But i'm not sure if there are any potential issues. -
Xquery update transaction (xqilla)
Hi,
it seems that when performing an xquery update such as 'insert node' that a transaction is allocated for this query, so that (using the Java API) there is no need to explicitly create a transaction - is this true?
If it is, then just using xquery gets rid of a transaction management problem and the try/finally.
thanks,
NormanAn updating query is auto-transacted if a transaction is not provided. However, auto-transacted methods still need to catch deadlock exceptions and retry.
John -
"Would you like to install a Java SE 6 runtime now?" NO!!!
Every 30 minutes or so, the message, To open “java,” you need a Java SE 6 runtime. Would you like to install one now? pops on my screen no matter what software I am using. I disabled anything Java in my web browsers, looking at the log in the Console, etc. To no avail. Needless to say, I am greatly disinclined to install an application that Apple decided to drop after experts warned about its security, but how can I stop this pesky message?
Step 1
com.sophos.kext.sav (8.0.4)
Step 2
com.sophos.notification
com.sophos.intercheck
com.sophos.autoupdate
com.google.keystone.daemon
com.adobe.fpsaud
Step 3
com.evernote.EvernoteHelper
com.sophos.uiserver
com.intego.commonservices.statusitem
com.google.keystone.system.agent
com.Livestation
com.facebook.videochat.[anonymized].updater
com.divx.agent.postinstall
Step 4
/Library/Components:
XiphQT (decoders).component
/Library/Extensions:
/Library/Frameworks:
AECore.framework
AEProfiling.framework
AERegistration.framework
AudioMixEngine.framework
Compressor.framework
DivX Toolkit.framework
HPDeviceModel.framework
HPPml.framework
HPServicesInterface.framework
HPSmartPrint.framework
LabVIEW 8.5 Runtime.framework
MediaServerAPI.framework
Motion.framework
NyxAudioAnalysis.framework
PluginManager.framework
Qmaster.framework
SAVI.framework
SUMScanKit.framework
Senteo.framework
StuffIt.framework
StuffItSupport.framework
TSLicense.framework
WebInterface.framework
XThinkGrammar.framework
com.smarttech.3rdparty.UnitTest++.framework
com.smarttech.3rdparty.boost.framework
com.smarttech.3rdparty.cairo.framework
com.smarttech.3rdparty.icu.framework
com.smarttech.3rdparty.redland.framework
com.smarttech.3rdparty.spidermonkey.framework
com.smarttech.3rdparty.xalan.framework
com.smarttech.3rdparty.xerces.framework
com.smarttech.3rdparty.xqilla.framework
com.smarttech.3rdparty.ziparchive.framework
iMoviePluginAPI.framework
iTunesLibrary.framework
libLogger.framework
xtGradingEngine.framework
/Library/Input Methods:
/Library/Internet Plug-Ins:
AdobePDFViewer.plugin
DRM Plugin.bundle
DivXBrowserPlugin.plugin
Flash Player.plugin
Flip4Mac WMV Plugin.plugin
JavaAppletPlugin.plugin
NPSVG3.zip
NPSVG3Carbon
NPSVG3ReadMe.html
OfficeLiveBrowserPlugin.plugin
Quartz Composer.webplugin
QuickTime Plugin.plugin
RealPlayer Plugin.plugin
Silverlight.plugin
Unity Web Player.plugin
Unused
VLC Plugin.plugin
Windows Media Plugin
Yahoo! Installer 3.plugin
ebrary Reader
ebrary Reader.plugin
flashplayer.xpt
googletalkbrowserplugin.plugin
iPhotoPhotocast.plugin
iPrint.plugin
npgtpo3dautoplugin.plugin
nsIQTScriptablePlugin.xpt
/Library/Keyboard Layouts:
/Library/LaunchAgents:
com.google.keystone.agent.plist
com.intego.commonservices.statusitem.plist
com.sophos.uiserver.plist
/Library/LaunchDaemons:
com.adobe.fpsaud.plist
com.google.keystone.daemon.plist
com.sophos.autoupdate.plist
com.sophos.intercheck.plist
com.sophos.notification.plist
/Library/PreferencePanes:
Box Sync.prefPane
DivX.prefPane
Flash Player.prefPane
Flip4Mac WMV.prefPane
SMART Board.prefPane
/Library/PrivilegedHelperTools:
Google Drive Icon Helper
/Library/QuickLook:
GBQLGenerator.qlgenerator
iBooksAuthor.qlgenerator
iWork.qlgenerator
/Library/QuickTime:
AppleIntermediateCodec.component
AppleMPEG2Codec.component
CanonMJPEGAVI.component
CanonMJPEGAVIDec.component
CanonText.component
DVCPROHDCodec.component
DivX Decoder.component
DivX Encoder.component
FCP Uncompressed 422.component
Flip4Mac WMV Advanced.component
Flip4Mac WMV Export.component
Flip4Mac WMV Import.component
LiveType.component
Motion.component
/Library/ScriptingAdditions:
Adobe Unit Types
/Library/Spotlight:
GBSpotlightImporter.mdimporter
Microsoft Entourage.mdimporter
Microsoft Office.mdimporter
iBooksAuthor.mdimporter
iWork.mdimporter
/Library/StartupItems:
Qmaster
/etc/mach_init.d:
/etc/mach_init_per_login_session.d:
/etc/mach_init_per_user.d:
Library/Address Book Plug-Ins:
AdiumAddressBookAction_AIM.scpt
AdiumAddressBookAction_ICQ.scpt
AdiumAddressBookAction_Jabber.scpt
AdiumAddressBookAction_MSN.scpt
AdiumAddressBookAction_SMS.scpt
AdiumAddressBookAction_Yahoo.scpt
SkypeABDialer.bundle
SkypeABSMS.bundle
YMsgrCallABPlugin.bundle
YMsgrMsnABPlugin.bundle
YMsgrSmsABPlugin.bundle
YMsgrYimABPlugin.bundle
Library/Addresses:
.DS_Store
Address Book.addressbook
Addresses.addressBook
Library/Fonts:
.DS_Store
18thCentury.ttf
ACaslonPro-Regular.otf
Anyong__.ttf
Athenian2004.1.suit
Brush Script
Jokerman LET Fonts
Myriad
MyriadPro-Semibold.otf
Palatino
Stone Sans ITC TT
encodings.dir
fonts.dir
fonts.list
fonts.scale
wyld.TTF
wyldi.TTF
Library/Indexes:
FindByContent
Library/InputManagers:
Inquisitor
Smart Crash Reports
Library/Internet Plug-Ins:
.DS_Store
FacebookVideoCalling.bundle
Macromedia
Picasa.plugin
WebEx.plugin
fbplugin_1_0_1.plugin
fbplugin_1_0_3.plugin
Library/Internet Search Sites:
Library/Keyboard Layouts:
Library/LaunchAgents:
com.Livestation.plist
com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.E4E96D58-ECCE-483C-931F-50F 0606A7C44.plist
com.divx.agent.postinstall.plist
com.facebook.videochat.[anonymized].plist
Library/PreferencePanes:
ClipTwin.prefPane
Opera Preferences
Perian.prefPane
Library/QuicKeys:
Clips
Global Variables
PlugIns
Shortcuts
Toolbars
Library/QuickTime:
AC3MovieImport.component
Perian.component
Library/Services:
GraphicConverter.service
Step 5
nothing--blank line -
Can't install bdbxml on Fedora? and have it work?
Hi,
This is following on from this: Error trying to import python dbxml package
And there is a similar thread here: Linking Problem
System: fedora15 x86_64
Initially I had everything working and it was going great. The python bindings even looked to be working. However, I then logged out of my root shell session and it all started going wrong:
1. The python bindings no longer worked
2. I could no longer start dbxml through /install/bin/dbxml even as the root user.
3. the whole thing stopped worked and put out lots of errors referring to the xerces .so object.
So I then tried to completely uninstall and reinstall again -- because obviously somtehing was not happy -- and I've got this error during the build process:
..../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `u_toupper_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `uset_serialize_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `uset_setSerializedToOne_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `u_charType_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `uset_getSerializedRangeCount_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_close_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_fromUChars_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_toUnicode_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `u_init_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_fromUnicode_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `u_foldCase_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `u_tolower_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `UCNV_FROM_U_CALLBACK_STOP_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `uset_close_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_getMinCharSize_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `uset_getSerializedSet_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `UCNV_FROM_U_CALLBACK_SUBSTITUTE_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_open_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_setFromUCallBack_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_openU_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `uset_openPatternOptions_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_getMaxCharSize_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `uset_getSerializedRange_48'
.../dbxml-2.5.16/install/lib/libxerces-c.so: undefined reference to `ucnv_toUChars_48'
collect2: ld returned 1 exit status
make[1]: *** [dbxml] Error 1
make[1]: Leaving directory `/var/tmp/dbxml-2.5.16/dbxml/build_unix'
make: *** [all] Error 2
So now it simply won't build!
Also trying to use the non-default (upgraded) versions of xerces or xqilla simply doesn't work because they don't have a particular function in them or something
Edited by: LondonAli on 30-Nov-2011 11:33Hello,
It sounds like running buildall.sh did not resolve the unresolved symbols.
Could something have gone wrong with the definition of
LD_LIBRARY_PATH or equivalent environment variable used
on the OS which the linker uses to resolve library dependencies?
If you run:
nm dbxml-2.5.16/install/lib/libxerces-c.so
and grep for the unreferenced symbols it should give a clue as
to which library contains which symbols and you can verify if that
is in your library path.
Let me know if that does not help.
Thanks,
Sandra -
The FAQ states that XSLT is not implemented in the product, but "it's easy to integrate" with a third party engine. No further mention of XSLT integration is given anywhere in the Oracle literature. I am hoping the integration is easy, but I am still searching for more information.
True indeed it is that any application that utilizes the API can also utilize a transformation engine, but I require a way to perform a transformation that uses a document in the database as the source. In this way structured data in the database will be transformed into XHTML documents. XPath expressions in the template must be executed by the database, because extracting the database first into memory would clearly defeat the purpose of the database, which is to store and query massive XML documents.
Can anyone help me achieve this goal?
I am using a C++ application because Java will be too expensive in load time and memory footprint.XSLT isn't an inherent feature of bdbxml; the integrated XQilla library has limited XSLT support.
I suggest you try one of the following:
- Try leveraging the XQuery language to create the transformation you're looking for. The XQuery language is very powerful and flexible, and depending on your situation it should prove quite useful
- link to an XSLT library and integrate some combination of XQuery-generated output as the input into your XSL template
Those are your best two options.
Hope this helps,
Lucas -
Undefined symbols into libdbxml-2.3.so
Hi all,
I've built the berkeley dbxml in the linux x86 environment using the buildall.sh script from the distribution.
When I execute the command 'ldd -d' on the libdbxml-2.3.so library I get the following output:
dhazin@softaria-local:~/distrib/berkeleydbxml/dbxml-2.3.10/install/lib$ ldd -d ./libdbxml-2.3.so
linux-gate.so.1 => (0xffffe000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7c05000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7be0000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7a95000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7a8a000)
/lib/ld-linux.so.2 (0x80000000)
undefined symbol: ZNK11xercesc2_78PSVIItem14getActualValueEv (./libdbxml-2.3.so)
undefined symbol: ZNK11xercesc2_713DTDEntityDecl14isSerializableEv (./libdbxml-2.3.so)
undefined symbol: ZN11xercesc2_713DTDEntityDecl9serializeERNS_16XSerializeEngineE (./libdbxml-2.3.so)
undefined symbol: ZNK11xercesc2_713DTDEntityDecl12getProtoTypeEv (./libdbxml-2.3.so)
undefined symbol: ZNK11xercesc2_713XMLAttDefList14isSerializableEv (./libdbxml-2.3.so)
undefined symbol: ZN11xercesc2_713XMLAttDefList9serializeERNS_16XSerializeEngineE
(many more undefined symbols go here)
My question is: is it ok that there are some undefined symbols in this library, and do you also get them with your system? If not, could anyone please make the correct libraries available for download or send them to the [email protected] ?
Thanks in advance,
DmitryHi Dmitry,
The undefined symbols are provided by the other libraries that DB XML needs - Berkeley DB, Xerces-C and XQilla. That's to be expected.
John -
Problem compiling 2.3.10 in Ubuntu Dapper on 64bit
I'm trying to compile DBXML 2.3.10 in Ubuntu Dapper on 64bit machine.
I've compiled and installed BDB 4.6.18, xqilla builds without problem, but when compiling dbxml I get this error
g++ -o .libs/dbxml_dump .libs/dbxml_dump.o .libs/util_sig.o .libs/Timer.o .libs/SigBlock.o ./.libs/libdbxml-2.3.so /usr/lib/libdb_cxx-4.6.so -L/nlp/projekty/deb2/packages32/dbxml-2.3.10/xqilla/build /nlp/projekty/deb2/packages32/dbxml-2.3.10/xqilla/build/.libs/libxqilla.so -L/usr/lib -lnsl -lpthread -lxerces-c -Wl,--rpath -Wl,/usr/lib
.libs/Timer.o: In function `DbXml::Timer::stop()':/nlp/projekty/deb2/packages32/dbxml-2.3.10/dbxml/src/common/Timer.cpp:42: undefined reference to `__os_clock'
.libs/Timer.o: In function `DbXml::Timer::start()':/nlp/projekty/deb2/packages32/dbxml-2.3.10/dbxml/src/common/Timer.cpp:36: undefined reference to `__os_clock'
collect2: ld returned 1 exit status
make: *** [dbxml_dump] Error 1
build command is
./buildall.sh prefix=/usr -b 64 build-one=dbxml with-berkeleydb=/usr with-xerces=/usr --with-xqilla-prefix=`pwd`/xqilla/build/
what can cause this error? is it safe to use db4.6 with dbxml2.3?Bas,
This isn't precisely the way it's fixed in our code base, and it isn't a patch, but this is simpler... Wherever you see references to __os_clock() (there are 3 in the source base), just implement the function instead. You can use this implementation (Warning -- I don't have a simple way to test this today, so you need to test it -- if it compiles, it'll work):
typedef struct
time_t tv_sec;
long tv_nsec;
} db_timespec;
extern "C" int __os_gettime(DB_ENV*, db_timespec*);
void __os_clock(DbEnv dbenv, u_int32_t secsp, u_int32_t *usecsp)
db_timespec ts;
__os_gettime(NULL, &ts);
*secsp = (u_int32_t)ts.tv_sec;
*usecsp = ts.tv_nsec/1000;
}There are 3 references to __os_clock:
src/common/Timer.cpp -- you'll need to replace this
Replace only one of these:
src/dbxml/HighResTimer.cpp
src/dbxml/QueryContext.cpp -
BDB XML2.3.10 install problem
I'm trying to to install DBXML on windowsXP. I have download the BDBXML2.3.10.
when I build all with Microsoft Visual C++ 6.0 ,the error as follows.
Am I missing something in the server config??
--------------------Configuration: xqilla - Win32 Debug--------------------
Compiling...
XPath2ResultImpl.cpp
F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\dom-api\impl\XPath2ResultImpl.cpp(287) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
PrintAST.cpp
F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(132) : error C2371: 'it' : redefinition; different basic types
F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(109) : see declaration of 'it'
F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(133) : error C2446: '!=' : no conversion from 'class XQGlobalVariable const ' to 'class XQQuery const '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(133) : error C2230: '!=' : indirection to different types
F:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(134) : error C2664: 'printGlobal' : cannot convert parameter 1 from 'class XQQuery const ' to 'const class XQGlobalVariable '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
All - 5 error(s), 0 warning(s)Thanks for your helf ,but I can't solve it.
I compiled it with VS.net , and succed.
And I make a application in VC6 with the file follow.
#include <dbxml/DbXml.hpp>
using namespace DbXml;
int
main(int argc, char **argv)
// This program uses a named container, which will apear
// on disk
std::string containerName = "people.dbxml";
std::string content = "<people><person><name>joe</name></person><person><name>mary</name></person></people>";
std::string docName = "people";
// Note that the query uses a variable, which must be set
// in the query context
std::string queryString =
"collection('people.dbxml')/people/person[name=$name]";
try {
// All BDB XML programs require an XmlManager instance
XmlManager mgr;
// Because the container will exist on disk, remove it
// first if it exists
if (mgr.existsContainer(containerName))
mgr.removeContainer(containerName);
// Now it is safe to create the container
XmlContainer cont = mgr.createContainer(containerName);
// All Container modification operations need XmlUpdateContext
XmlUpdateContext uc = mgr.createUpdateContext();
cont.putDocument(docName, content, uc);
// Querying requires an XmlQueryContext
XmlQueryContext qc = mgr.createQueryContext();
// Add a variable to the query context, used by the query
qc.setVariableValue("name", "mary");
// Note: these two calls could be replaced by a shortcut
// mgr.query(queryString, qc), but under the covers,
// this is what is happening.
XmlQueryExpression expr = mgr.prepare(queryString, qc);
XmlResults res = expr.execute(qc);
// Note use of XmlQueryExpression::getQuery() and
// XmlResults::size()
std::cout << "The query, '" << expr.getQuery() << "' returned " <<
res.size() << " result(s)" << std::endl;
// Process results -- just print them
XmlValue value;
std::cout << "Result: " << std::endl;
while (res.next(value)) {
std::cout << "\t" << value.asString() << std::endl;
// In C++, resources are released as objects go out
// of scope.
} catch (XmlException &xe) {
std::cout << "XmlException: " << xe.what() << std::endl;
return 0;
I added .lib and .dll files to the application followed the introduction.
compile is succeed.
but when run to “XmlContainer cont = mgr.createContainer(containerName);”
error as follow.
Unhandled exception in query.exe(MSVCR71D.DLL):0xC0000005:Access voilation
please help me!!!!!! Thanks!!!!!
Message was edited by:
user577888 -
Error Building DBXML-2.5.16 in Solaris 10 (SPARC)
Hi all,
I'm trying to build dbxml-2.4.16 from source in my Solaris 10 machine. Compilation starts well and goes on, but Berkeley-DB build fails with the following error
make: *** [libdb-4.6.la] Error 1
Here is my setup details.
bash-3.00# uname -a
SunOS WBTURGO02 5.10 Generic_137137-09 sun4v sparc SUNW,Netra-T5220
bash-3.00# gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure with-as=/usr/ccs/bin/as with-ld=/usr/ccs/bin/ld enable-shared enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
bash-3.00# g++ -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure with-as=/usr/ccs/bin/as with-ld=/usr/ccs/bin/ld enable-shared enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
bash-3.00# make -v
GNU Make 3.82
Built for sparc-sun-solaris2.10
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
And, the command that I used to trigger the build is
bash-3.00# cd /export/home/kaja/BDB/dbxml-2.4.16
bash-3.00# ./buildall.sh -p solaris -c gcc -x g++ -m make prefix=/export/home/kaja/BDB/Install-2.4.16 enable-java with-dbxml=/export/home/kaja/BDB/dbxml-2.4.16/dbxml with-berkeleydb=/export/home/kaja/BDB/dbxml-2.4.16/db-4.6.21 with-xerces=/export/home/kaja/BDB/dbxml-2.4.16/xerces-c-src with-xqilla=/export/home/kaja/BDB/dbxml-2.4.16/xqilla
Is there anything I'm missing or I have gone wrong? Please help me. I want to build bdb-xml with Java support.
Thanks in advance,
With regards,
R Kaja Mohideen
Edited by: mail4kaja on Sep 1, 2010 8:07 PM - Modified Title to DBXML-2.5.16Hi all,
I have tried using that -xarch=v9 in my build. But, that didn't help me. So, I just though of using the latest BDBXML hoping that it will support me.
I want to build BDBXML-2.5.16 that will be used my two applications (C++ & Java).
C++ Application will create environment, containers and put documents in the containers.
Java Application will read/query the document contents.
My machine details.
uname -a
SunOS ltesol1 5.10 Generic_137111-03 sun4u sparc SUNW,Sun-Fire-480R
cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-09 2008/11/25
CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-05 2008/06/03
make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.9
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Report bugs to <[email protected]>.
Following are the commands I have used to trigger my BDBXML-2.5.16 build.
export CFLAGS="-I/usr/jdk/instances/jdk1.5.0/include -I/usr/jdk/instances/jdk1.5.0/include/solaris"
export CXXFLAGS="-library=stlport4 -library=Crun -I/usr/jdk/instances/jdk1.5.0/include -I/usr/jdk/instances/jdk1.5.0/include/solaris"
./buildall.sh prefix=/var/tmp/a22189/kaja/Install-2.5.16 -c cc -x CC enable-java with-dbxml=/var/tmp/a22189/kaja/dbxml-2.5.16/dbxml with-berkeleydb=/var/tmp/a22189/kaja/dbxml-2.5.16/db-4.8.26 with-berkeleydb-conf="enable-posixmutexes with-mutex=POSIX/pthreads" with-xerces=/var/tmp/a22189/kaja/dbxml-2.5.16/xerces-c-src --with-xqilla=/var/tmp/a22189/kaja/dbxml-2.5.16/xqilla
And, I'm getting the following xerces linking issue
Undefined first referenced
symbol in file
bool xercesc_3_0::DOMLSSerializerImpl::canSetParameter(const unsigned short*,bool)const .libs/XPath2NodeSerializer.o
bool xercesc_3_0::DOMLSSerializerImpl::canSetParameter(const unsigned short*,const void*)const .libs/XPath2NodeSerializer.o
void xercesc_3_0::DOMLSSerializerImpl::setParameter(const unsigned short*,bool) .libs/XPath2NodeSerializer.o
void xercesc_3_0::DOMLSSerializerImpl::setParameter(const unsigned short*,const void*) .libs/XPath2NodeSerializer.o
const void*xercesc_3_0::DOMLSSerializerImpl::getParameter(const unsigned short*)const .libs/XPath2NodeSerializer.o
ld: fatal: Symbol referencing errors. No output written to .libs/libxqilla.so.5.0.2
make[1]: *** [libxqilla.la] Error 1
make[1]: Leaving directory `/var/tmp/a22189/kaja/dbxml-2.5.16/xqilla/build'
make: *** [all-recursive] Error 1
Please help me resolve this build issue.
Thanks & regards,
R Kaja Mohideen -
Segmentation fault with xqillia when using purifyplus
Hi friends,
I am using BDB , xqilla /xerces interface to perform an xquery.The program works fine,but after building the program along with purifyplus,if i try to run the program a segmentation fault is raised.
attached are the code,command used to build the program and the stack trace.
here is some specifications-
Rational Purifyplus 7.0
gcc version 3.4.6
OS-Linux(redhat);Linux 3 2.6.9-89.ELsmp
dbxml-2.4.16
CODE:
#include "DbXml.hpp"
#include <iostream>
using namespace DbXml;
using namespace std;
int putxml(string filename,string docname2)
XmlManager myManager;
XmlContainer myContainer;
try
if (!myManager.existsContainer("Container.bdbxml"))
myContainer =myManager.createContainer("Container.bdbxml");
myContainer = myManager.openContainer("Container.bdbxml");
XmlUpdateContext theContext = myManager.createUpdateContext();
XmlInputStream *theStream =myManager.createLocalFileInputStream(filename);
myContainer.putDocument(docname2,theStream,theContext,0);
catch(XmlException &e)
cout<<e.what()<<endl;
/* function to get the xml file and display output */
void getxml(string docname3)
string query_result;
try
XmlManager myManager;
XmlContainer myContainer = myManager.openContainer("Container.bdbxml");
XmlQueryContext myContext = myManager.createQueryContext();
myContext.setDefaultCollection("./Container.bdbxml");
cout<<"docname3 is "<<docname3<<endl;
std::string myQuery="for $i in doc('dbxml:/Container.bdbxml/docname') return ($i)";
XmlQueryExpression qe = myManager.prepare(myQuery, myContext);
XmlResults results = qe.execute(myContext);
XmlValue my_value;
while (results.next(my_value))
query_result += my_value.asString(); //xml file data come in query_result
}catch(XmlException &e){
cout<<e.what()<<endl;
cout<<query_result<<endl;
/* main function */
int main()
string filename("XYZ.xml"),docname1("docname");
putxml(filename,docname1);
getxml(docname1);
Command used:
purify -always-use-cache-dir=yes -cache-dir=/tmp/3rdPArty/RT -chain-length=10 -static-checking=no -thread_stack_change=0x4000 -fds=57 -thread-stack-change=0x4000 -best-effort g++ -g final.cpp -I /tmp/3rdPArty/dbxml-2.4.16/dbxml/include/dbxml -L /tmp/3rdPArty/dbxml-2.4.16/install/lib/ -ldbxml -ldbxml-2.4 -lxqilla -lxerces-c -ldb -ldb_cxx
Stack Trace:
#0 0x01205131 in m_apm_is_integer ()
at /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_construct.h:134
#1 0x009d9794 in std::vector<ASTNode*, XQillaAllocator<ASTNode*> >::_M_insert_aux (this=dwarf2_read_address: Corrupted DWARF expression.
at /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/vector.tcc:229
#2 0x00d94dea in std::vector<ASTNode*, XQillaAllocator<ASTNode*> >::push_back (this=Could not find the frame base for "std::vector<ASTNode*, XQillaAllocator<ASTNode*> >::push_back(ASTNode* const&)".
at /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_vector.h:564
*#3 0x01195bca in XQParser::yyparse (qp=Could not find the frame base for "*XQParser::yyparse(void*)"*.*
*) at /tmp/3rdPArty/dbxml-2.4.16/xqilla/build/../src/parser/XQParser.y:2266*
#4 0x00eb1c4a in XQilla::parse () at /tmp/3rdPArty/dbxml-2.4.16/xqilla/build/../include/xqilla/ast/LocationInfo.hpp:63
#5 0x006a266a in QueryExpression (this=Not enough elements for DW_OP_rot. Need 3, have 0
) at QueryExpression.hpp:42
#6 0x007d819c in DbXml::XmlManager::prepare (this=Could not find the frame base for "DbXml::XmlManager::prepare(std::string const&, DbXml::XmlQueryContext&)".
) at XmlManager.cpp:551
#7 0x08086a0d in getxml (docname3=
{static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, Mp = 0x80be6e4 "docname"}}) at final.cpp:56
#8 0x08087dae in main () at final.cpp:81
As per my understanding my program is crashing in XQParser::yyparse(void*) which is in YACC. is there any known issue regarding compatibility between YACC and Purifyplus ?
Kindly help me out
Thanks.
Edited by: user8114111 on Jul 22, 2009 11:10 PM
Edited by: user8114111 on Jul 22, 2009 11:15 PMHi. This question is better suited for the BDB XML forum, which is here:
Berkeley DB XML
Ben Schmeckpeper -
Problems compiling 2.3.10 on Solaris 10
I have a Solaris 10 box that I'm trying to get DBXML 2.3.10 compiled on (I had 2.3.8 working at one point). My buildall line looks like this:
./buildall.sh -m gmake -c /opt/csw/gcc4/bin/gcc -x /opt/csw/gcc4/bin/g++ --prefix=/opt/csw/dbxml
I'm using the blastwave GCC 4.0.2 binaries (although I've tried the Sun compilers as well) and the compile is failing with this message:
ld: fatal: relocation error: file: SOLARIS/CharacterDataImpl.o section: .rel.eh_frame symbol: .LFB94: relocation against a discarded symbol,
symbol is part of discarded section: .gnu.linkonce.t._ZN11xercesc_2_730ArrayIndexOutOfBoundsExceptionD1Ev
collect2: ld returned 1 exit status
Which results in this error as well:
...[snip]...
mpl.o SOLARIS/ParentNode.o SOLARIS/ProcessingInstructionImpl.o SOLARIS/RangeImpl.o SOLARIS/RefCountedImpl.o SOLARIS/TextImpl.o SOLARIS/TreeWalkerImpl.o SOLARIS/XMLDeclImpl.o -lpthread -lnsl -lsocket -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -lm -lgen -L/root/src/dbxml-2.3.10/xerces-c-src/lib -lxerces-c
ld: fatal: library -lxerces-c: not found
ld: fatal: File processing errors. No output written to /root/src/dbxml-2.3.10/xerces-c-src/lib/libxerces-depdom.so.27.0
collect2: ld returned 1 exit status
Has anyone got 2.3.10 to compile on Solaris? If so, what compilers and options did you use?
Thanks!
Jon Brisbin
NPC International, Inc.I deleted the directory and started from scratch, this time with the Sun compilers. New buildall line:
./buildall.sh -p solaris -c cc -x CC -m gmake --prefix=/opt/csw/dbxml
I tried several different switches (haven't tried enable-debug yet) and I got a different error now:
r.o .libs/TestSuiteResultListener.o .libs/TestSuiteRunner.o -R/root/src/dbxml-2.3.10/xerces-c-src/lib -L/root/src/dbxml-2.3.10/xerces-c-src/lib -lxerces-c -lnsl -lsocket -lpthread -lCstd -lCrun -lc
Undefined first referenced
symbol in file
acos .libs/mapmgues.o
asin .libs/mapmgues.o
__sincos .libs/mapm_fft.o
ld: fatal: Symbol referencing errors. No output written to .libs/libxqilla.so.1.0.0
gmake[1]: *** [libxqilla.la] Error 1
gmake[1]: Leaving directory `/root/src/dbxml-2.3.10/xqilla/build'
gmake: *** [all-recursive] Error 1
It's obviously a link error, and I must just be missing something, I'm just not sure what.
I'm using the CFLAGS=-fast option (-xarch=amd64 doesn't work for me on the big box, either, because the -b 64 option adds some weird xarch flag that makes my compiler puke, so I'm just trying the 32-bit one).
I'll delete and start again, this time using GCC 3.4 from /usr/sfw
Jon Brisbin
Portal Webmaster
NPC International, Inc.
Maybe you are looking for
-
original PC out of action and cannot access or use at all . Downloaded I Tunes on new PC using ID and Password . It appeared with 3 songs I never heard of and never purchased . Where is my library of songs majority purchased from I Tunes . Library
-
Please explain ....
Verizon Wireless More Everything Plan was a "Mistake", literally! "Wow, you guys were screwed" said the Verizon representative at the store we went to visit. Dear Verizon Wireless, My wife and I have been loyal (paying) customers for over a decade.
-
Error message when installing Flash Player
Help - anyone know why I am getting the MSIMG32.dill is either not designed to run on Windows or it contains an error. Any help would greatly apprecated.
-
Insufficient bandwidth error help
Just in this last week I have been unable to video chat or audio chat because I keep getting the insufficient bandwidth message. Keep in mind that I had been doing both types of chats fine until this past week, even 4 way video was very clear. I have
-
How di i retrieve previously used id/password used to update apps. used by same computer
When i'm advised that there are xxxx amount of apps. to update, I'm advised that the apps. updates require the ORIGINAL id/passord used when intirtially obtaing them. However, I have forgotten that they were now. Woulkd be grateful for any suggestion