Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#12438 closed defect (fixed)

BUG port install sqlite3 3.4.1 failed

Reported by: ebgssth@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ebgssth@…, mww@…
Port:

Description (last modified by jmroot (Joshua Root))

Installing sqlite3 failed (I'm using MacPorts 1.5.10 on OS X 10.3.9, Panther)

I've got the following error.

========================================
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:238: warning: assignment makes pointer from integer without a cast
gnumake: *** [sqlite3] Error 1
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.1"
&& gnumake all " returned error 2
========================================

I tried port clean and re-install readline ncurses but it didn't help.

To make it work, I modified the portfile

------------------------------------------------
-configure.cflags-append     -DSQLITE_ENABLE_LOCKING_STYLE=1 -I${prefix}/include
-configure.cppflags-append   -I${prefix}/include
+configure.cflags-append     -DSQLITE_ENABLE_LOCKING_STYLE=1
-I${prefix}/include/readline
+configure.cppflags-append   -I${prefix}/include/readline
------------------------------------------------

I don't know this is right way or not, but it worked for me.

Change History (7)

comment:1 Changed 17 years ago by nox@…

Cc: mww@… added
Milestone: Port Bugs
Summary: port install sqlite3.4.1 failedBUG port install sqlite3 3.4.1 failed
Version: 1.5.0

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ebgssth@… added

Is your readline port up to date? Try reinstalling it with "sudo port sync" and then "sudo port -ncuf upgrade readline".

If that doesn't help, do you have a rogue readline in /usr/local/{lib,include}? Please rename /usr/local to something else (such as /usr/local-off) and try again. This may reveal more problems caused by having a rogue readline. You may need to reinstall more ports or MacPorts itself. In the future, I recommend not installing anything in /usr/local. Install everything you need with MacPorts.

comment:3 Changed 17 years ago by ebgssth@…

missed this mail. sorry. The problem I reported seems to be gone now. I did nothing about it, though.

Anyway, Thank you for your time. Close this ticket please.

comment:4 Changed 17 years ago by mww@…

Resolution: fixed
Status: newclosed

version 3.4.1 revision 1 should have this bug corrected (though this update was just made minutes ago, so it didn;t solve your problem)

anyway, should be fixed on 10.3

comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: ticketformatting added

comment:6 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: ticketformatting removed

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.