can't build/install sqlite3
Ryan Schmidt
ryandesign at macports.org
Thu Jun 14 14:22:45 PDT 2007
On Jun 14, 2007, at 15:47, Troy Telford wrote:
> For the past few months, I haven't been able to build sqlite3:
>
> I've already tried rebuilding readline (since the link issue seems
> to be
> something with readline), but it doesn't seem to have any effect. Any
> ideas?!?
>
> ---> Building sqlite3 with target all
> Error: Target com.apple.build returned: shell command "
> cd "/opt/local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.macports.org_dpupdate_dpo
> rts_databases_sqlite3/work/sqlite-3.3.17"
> && gnumake all " returned error 2
> Command
> output: ./libtool --mode=link /usr/bin/gcc-4.0 -O2 -I. -I./src -
> DNDEBUG -DTHREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -
> DSQLITE_ENABLE_LOCKING_STYLE=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -
> DHAVE_READLINE=1 -I/opt/local/include/ -
> DSQLITE_ENABLE_LOCKING_STYLE=1 -lpthread
> \
> -o sqlite3 ./src/shell.c libsqlite3.la \
> -L/opt/local/lib -lreadline
> /usr/bin/gcc-4.0 -O2 -I. -I./src -DNDEBUG -DTHREADSAFE=1 -
> DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_ENABLE_LOCKING_STYLE=1 -
> DSQLITE_OMIT_LOAD_EXTENSION=1 -DHAVE_READLINE=1 -I/opt/local/
> include/ -DSQLITE_ENABLE_LOCKING_STYLE=1 -o .libs/sqlite3 ./src/
> shell.c ./.libs/libsqlite3.dylib -lpthread -L/opt/local/lib -
> lreadline
> /usr/bin/ld: warning prebinding disabled because dependent
> library: /opt/local/lib/libsqlite3.0.dylib is not prebound
> /usr/bin/ld: warning can't open dynamic
> library: /opt/local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_devel_ncurses/work/destroot/opt/local/lib/libncurses.5.dylib
> referenced from: /opt/local/lib/libreadline.dylib (checking for
> undefined
> symbols may be affected) (No such file or directory, errno = 2)
> /usr/bin/ld: Undefined symbols:
> _tgetent referenced from libreadline expected to be defined
> in /opt/local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_devel_ncurses/work/destroot/opt/local/lib/libncurses.5.dylib
> _tgetflag referenced from libreadline expected to be defined
> in /opt/local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_devel_ncurses/work/destroot/opt/local/lib/libncurses.5.dylib
> _tgetnum referenced from libreadline expected to be defined
> in /opt/local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_devel_ncurses/work/destroot/opt/local/lib/libncurses.5.dylib
> _tgetstr referenced from libreadline expected to be defined
> in /opt/local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_devel_ncurses/work/destroot/opt/local/lib/libncurses.5.dylib
> _tputs referenced from libreadline expected to be defined
> in /opt/local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_devel_ncurses/work/destroot/opt/local/lib/libncurses.5.dylib
> _tgoto referenced from libreadline expected to be defined
> in /opt/local/var/db/dports/build/
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_
> dports_devel_ncurses/work/destroot/opt/local/lib/libncurses.5.dylib
> collect2: ld returned 1 exit status
Do you have a non-MacPorts copy of readline elsewhere, such as /usr/
local/lib? If so, remove it, then do your thing with MacPorts, then
put the /usr/local/lib readline back if you must, but note that it
will probably continue to interfere with MacPorts for as long as you
keep it there.
More information about the macports-users
mailing list