Recent

Author Topic: SQLite3 on mac os x  (Read 6665 times)

wotanica

  • Guest
SQLite3 on mac os x
« on: September 16, 2010, 09:59:10 am »
I really want to get databased working under os-x. I went into the package manager and added the sqlite package, but it fails to recompile the system. The errors are linking errors which i presume is for the sqlite3 object files - which are missing.

Does anyone have the missing files that can be used on the mac?
I realize that some object files are cross-platform (i used the libjpg/tiff .o files from my pc - and they worked fine on my mac, which was a big surprise).

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946

wotanica

  • Guest
Re: SQLite3 on mac os x
« Reply #2 on: September 16, 2010, 10:22:22 am »
That doesnt really help :)
Ok, so SQLite should be preinstalled on my mac?
That makes sense, but that means that there are some C-like procedures that dont have an implementation somewhere in the code?
I would expect the errors below to stem from the same callback system that libJPG uses (where the host application must provide the implementation for various methods). Either way it results in a linking error.

Undefined symbols:
  "_sqlite_freemem", referenced from: _SQLITEDS_TSQLITEDATASET_$__INTERNALGETHANDLE$$POINTER in sqliteds.o
  "sqlite_libversion", referenced from: _SQLITEDS_TSQLITEDATASET_$__GETSQLITEVERSION$$ANSISTRING in sqliteds.o
  "sqlite_libencoding", referenced from: _SQLITEDS_TSQLITEDATASET_$__GETSQLITEENCODING$$ANSISTRING in sqliteds.o
  "_sqlite_error_string", referenced from: _SQLITEDS_TSQLITEDATASET_$__RETURNSTRING$$ANSISTRING in sqliteds.o
  "_sqlite_close", referenced from: _SQLITEDS_TSQLITEDATASET_$__INTERNALCLOSEHANDLE in sqliteds.o
  "_sqlite_changes", referenced from: _SQLITEDS_TSQLITEDATASET_$__GETROWSAFFECTED$$LONGINT in sqliteds.o
  "_sqlite_finalize", referenced from: _SQLITEDS_TSQLITEDATASET_$__INTERNALINITFIELDDEFS in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__EXECUTEDIRECT$ANSISTRING in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__BUILDLINKEDLIST in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__QUICKQUERY$ANSISTRING$TSTRINGS$BOOLEAN$$ANSISTRING in sqliteds.o
  "_sqlite_exec", referenced from: _SQLITEDS_TSQLITEDATASET_$__SQLITEEXEC$PCHAR$TSQLITECDECLCALLBACK$POINTER$$LONGINT in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__BUILDLINKEDLIST in sqliteds.o
  "_sqlite_open", referenced from: _SQLITEDS_TSQLITEDATASET_$__INTERNALGETHANDLE$$POINTER in sqliteds.o
  "_sqlite_step", referenced from: _SQLITEDS_TSQLITEDATASET_$__INTERNALINITFIELDDEFS in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__EXECUTEDIRECT$ANSISTRING in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__BUILDLINKEDLIST in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__BUILDLINKEDLIST in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__QUICKQUERY$ANSISTRING$TSTRINGS$BOOLEAN$$ANSISTRING in sqliteds.o _SQLITEDS_TSQLITEDATASET_$_QUICKQUERY$crc9A533FFC_FILLSTRINGSANDOBJECTS in sqliteds.o _SQLITEDS_TSQLITEDATASET_$_QUICKQUERY$crc9A533FFC_FILLSTRINGS in sqliteds.o
  "_sqlite_compile", referenced from: _SQLITEDS_TSQLITEDATASET_$__INTERNALINITFIELDDEFS in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__EXECUTEDIRECT$ANSISTRING in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__BUILDLINKEDLIST in sqliteds.o _SQLITEDS_TSQLITEDATASET_$__QUICKQUERY$ANSISTRING$TSTRINGS$BOOLEAN$$ANSISTRING in sqliteds.o
ld: symbol(s) not found
Error: Error while linking


No wait that cant be right.
I did a quick search on my mac for sqlite and found hundreds of sqlite files. Loads of .O files, some of them in the lazarus folders to.
Hm......
« Last Edit: September 16, 2010, 11:09:53 am by wotanica »

wotanica

  • Guest
Re: SQLite3 on mac os x
« Reply #3 on: September 16, 2010, 01:31:18 pm »
Lazarus report a linking error, which i guess is completely right.
It would only generate above errors if some symbols are missing from the .o files.
I conclude that this is a classic case of version mixup.
Either the object files are to old/new for the wrapper unit.

 

TinyPortal © 2005-2018