Hi, rdf_storage_test also tries to create a sqlite storage with similar parameters. If it was consistently failing, you'd get a similar warning from it too.
One idea what might be wrong: your Redland is built with modular storages (default) and it couldn't load the sqlite storage module dynamically. This may be case if you haven't installed Redland before "make check" and haven't specified another path (such as .libs) using the REDLAND_MODULE_PATH env variable (or DYLD_LIBRARY_PATH). Storage modules are loaded and registered in librdf_storage_load_all_modules() when Redland is initialized through librdf_world_open(). There's very little else that can go wrong when creating a storage. More things can go wrong when opening the storage, but in this case it fails before librdf_storage_open(). If this doesn't help solve the warning, I suggest you run rdf_model_test in gdb and see why exactly why librdf_new_storage() returns NULL for sqlite storage. Note that in your environment, src/rdf_model_test is just a wrapper script that sets environment variables and such and then runs the binary in src/.libs. For debugging you want the binary, not the script. Lauri On Wed, Aug 11, 2010 at 10:01 AM, Stephan Drescher <[email protected]> wrote: > redland-1.0.10 (librdf) compiled on a 10.6.4 OSX platform to i386 > > --with-included-ltdl \ > --with-bdb="${lib_path_binary}/db-5.0.26" \ > --with-bdb-lib="${lib_path_binary}/db-5.0.26/lib" \ > --with-bdb-include="${lib_path_binary}/db-5.0.26/include" \ > --with-xml-parser="libxml" \ > --with-virtuoso="no" \ > --with-sqlite="${lib_path_binary}/sqlite-3.6.19" \ > --with-sqlite-version="3" \ > --with-datadirect="." \ > > make check returns: > > rdf_model_test: Creating new sqlite storage > rdf_model_test: WARNING: Failed to create new sqlite storage name test with > options new='yes' > PASS: rdf_model_test > > ( rdf_serializer_test: Serialising stream to file handle returned file > 'test.rdf' of size 0 bytes, expected 668 > FAIL: rdf_serializer_test ) > > 1 of 18 tests failed > Please report to http://bugs.librdf.org/ > > Iam rather interested in the WARNING. Because i like to be able to create a > sqlite database with the new='yes' option. > Does Redland uses the sqlite version that's included in the BerkeleyDB > (non-default compile opt inside BDB) source or another external SQLite > library? > i tested both BDB with/without the sql enabled interface. > BDB working (when running BDB examples), > SQLite lib working, > > > Anybody, who can shed light on this? > stephan > > > > > > _______________________________________________ > redland-dev mailing list > [email protected] > http://lists.librdf.org/mailman/listinfo/redland-dev > _______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
