rothgar / gosqlite

Automatically exported from code.google.com/p/gosqlite
0 stars 0 forks source link

Unable to install from goinstall #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $ goinstall gosqlite.googlecode.com/hg

What is the expected output? What do you see instead?
goinstall returns: goinstall: gosqlite.googlecode.com/hg: package has no files

What version of the product are you using? On what operating system?
goinstall from latest Go Release (release.2011-02-01.1)

Please provide any additional information below.
If done manually, works fine

Original issue reported on code.google.com by alo...@gmail.com on 8 Feb 2011 at 10:47

GoogleCodeExporter commented 8 years ago
Same on MacOS 10.6

$ goinstall gosqlite.googlecode.com/hg/sqlite
goinstall: === cd /Users/krolaw/go/src/pkg/gosqlite.googlecode.com/hg/sqlite; 
gomake -f- install
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o sqlite.cgo2.o _cgo_export.o  
Undefined symbols:
  "_sqlite3_reset", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_reset in sqlite.cgo2.o
  "_sqlite3_bind_blob", referenced from:
      __cgo_e3c199f441af_Cfunc_my_bind_blob in sqlite.cgo2.o
  "_sqlite3_prepare_v2", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_prepare_v2 in sqlite.cgo2.o
  "_sqlite3_backup_step", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_backup_step in sqlite.cgo2.o
  "_sqlite3_open_v2", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_open_v2 in sqlite.cgo2.o
  "_sqlite3_bind_text", referenced from:
      __cgo_e3c199f441af_Cfunc_my_bind_text in sqlite.cgo2.o
  "_sqlite3_busy_timeout", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_busy_timeout in sqlite.cgo2.o
  "_sqlite3_step", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_step in sqlite.cgo2.o
  "_sqlite3_threadsafe", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_threadsafe in sqlite.cgo2.o
  "_sqlite3_column_blob", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_column_blob in sqlite.cgo2.o
  "_sqlite3_finalize", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_finalize in sqlite.cgo2.o
  "_sqlite3_column_bytes", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_column_bytes in sqlite.cgo2.o
  "_sqlite3_bind_parameter_count", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_bind_parameter_count in sqlite.cgo2.o
  "_sqlite3_column_count", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_column_count in sqlite.cgo2.o
  "_sqlite3_backup_pagecount", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_backup_pagecount in sqlite.cgo2.o
  "_sqlite3_errmsg", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_errmsg in sqlite.cgo2.o
  "_sqlite3_libversion", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_libversion in sqlite.cgo2.o
  "_sqlite3_errcode", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_errcode in sqlite.cgo2.o
  "_sqlite3_close", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_close in sqlite.cgo2.o
  "_sqlite3_backup_finish", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_backup_finish in sqlite.cgo2.o
  "_sqlite3_backup_remaining", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_backup_remaining in sqlite.cgo2.o
  "_sqlite3_backup_init", referenced from:
      __cgo_e3c199f441af_Cfunc_sqlite3_backup_init in sqlite.cgo2.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [_cgo1_.o] Error 1
--- exit status 2
goinstall: installing gosqlite.googlecode.com/hg/sqlite: running gomake: exit 
status 2

Fortunately manual install appeared to work.

Original comment by kro...@gmail.com on 22 Jun 2011 at 2:44

GoogleCodeExporter commented 8 years ago
Similar issue though errors slightly different. Using go r58 on x86.

Original comment by rthornto...@gmail.com on 9 Jul 2011 at 3:50

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Looks like on darwin you need:
export CGO_LDFLAGS=/usr/lib/libsqlite3.0.dylib

before:
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o sqlite.cgo2.o _cgo_export.o

Original comment by kro...@gmail.com on 11 Aug 2011 at 5:01