Open GoogleCodeExporter opened 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
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:
[deleted comment]
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
Original issue reported on code.google.com by
alo...@gmail.com
on 8 Feb 2011 at 10:47