[MacPorts] #12438: BUG port install sqlite3 3.4.1 failed

MacPorts noreply at macports.org
Fri Sep 19 05:45:50 PDT 2008


#12438: BUG port install sqlite3 3.4.1 failed
--------------------------------+-------------------------------------------
  Reporter:  ebgssth at gmail.com  |       Owner:  macports-tickets at lists.macosforge.org
      Type:  defect             |      Status:  closed                               
  Priority:  Normal             |   Milestone:  Port Bugs                            
 Component:  ports              |     Version:                                       
Resolution:  fixed              |    Keywords:                                       
      Port:                     |  
--------------------------------+-------------------------------------------
Changes (by jmr at macports.org):

  * keywords:  ticketformatting =>


Old description:

> 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.

New description:

 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.

--

-- 
Ticket URL: <http://trac.macports.org/ticket/12438#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list