Opened 17 years ago

Closed 17 years ago

#12615 closed defect (fixed)

dependency failure - sqlite3

Reported by: amgine@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: sqlite3 Cc: mww@…
Port:

Description

---> Building sqlite3 with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/work/sqlite-3.4.2" && gnumake all " returned error 2 Command output: ./libtool --mode=link gcc -O2 -DSQLITE_ENABLE_LOCKING_STYLE=1 -I/opt/local/include/readline -I. -I./src -DNDEBUG -DTHREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_ENABLE_LOCKING_STYLE=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -L/opt/local/lib -DHAVE_READLINE=1 -O2 -DSQLITE_ENABLE_LOCKING_STYLE=1 -I/opt/local/include/readline -lpthread \

-o sqlite3 ./src/shell.c libsqlite3.la \ -L/opt/local/lib -lreadline

gcc -O2 -DSQLITE_ENABLE_LOCKING_STYLE=1 -I/opt/local/include/readline -I. -I./src -DNDEBUG -DTHREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_ENABLE_LOCKING_STYLE=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DHAVE_READLINE=1 -O2 -DSQLITE_ENABLE_LOCKING_STYLE=1 -I/opt/local/include/readline -o .libs/sqlite3 ./src/shell.c -L/opt/local/lib ./.libs/libsqlite3.dylib -lpthread -lreadline src/shell.c:46:32: readline/readline.h: No such file or directory src/shell.c:47:31: readline/history.h: No such file or directory src/shell.c: In function `one_input_line': src/shell.c:242: warning: assignment makes pointer from integer without a cast gnumake: * [sqlite3] Error 1

Error: The following dependencies failed to build: sqlite3 Error: Status 1 encountered during processing.

Change History (2)

comment:1 Changed 17 years ago by sfiera@…

Cc: mww@… added
Keywords: sqlite3 added; s removed
Owner: changed from macports-dev@… to mww@…

Just worked through a problem a 10.3 user on irc was having with sqlite3. The problem appeared to be the lines introduced by r28410 which override the default configure.ldflags of /opt/local/lib.

The problem was resolved by changing configure.ldflags to configure.ldflags-append. He also had to add -I${prefix}/include to configure.{c,cpp}flags. I don't know why that should be necessary, but apparently it didn't work until he did.

comment:2 Changed 17 years ago by mww@…

Resolution: fixed
Status: newclosed

Seems like those changes made sqlite3 make use of libedit (part of 10.4) instead of libreadline (like it should);

3.4.2 revision 1 should fix this issue - at least it links against libreadline again on 10.4 (cannot test on 10.3)

If the problem persists though, please re-open this ticket!

Note: See TracTickets for help on using tickets.