I've been trying to update my installed ports, but it keeps bombing out on sqlite3 and I can't figure out why. Included below is the full transcript (it's not too long). Any ideas? Thanks in advance, Garrett [myhost:~] garrett$ sudo port selfupdate MacPorts base version 1.600 installed Downloaded MacPorts base version 1.600 The MacPorts installation is not outdated and so was not updated selfupdate done! [myhost:~] garrett$ sudo port upgrade outdated ---> 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.5.4" && gnumake all " returned error 2 Command output: ./libtool --mode=compile --tag=CC /usr/bin/gcc-4.0 -O2 -I. -I./src -DNDEBUG -DSQLITE_THREADSAFE=1 - DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./ src/alter.c /usr/bin/gcc-4.0 -O2 -I. -I./src -DNDEBUG -DSQLITE_THREADSAFE=1 - DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./ src/alter.c -fno-common -DPIC -o .libs/alter.o ./src/alter.c: In function 'renameTableFunc': ./src/alter.c:77: error: 'TK_SPACE' undeclared (first use in this function) ./src/alter.c:77: error: (Each undeclared identifier is reported only once ./src/alter.c:77: error: for each function it appears in.) ./src/alter.c:79: error: 'TK_LP' undeclared (first use in this function) ./src/alter.c:79: error: 'TK_USING' undeclared (first use in this function) ./src/alter.c: In function 'renameTriggerFunc': ./src/alter.c:135: error: 'TK_SPACE' undeclared (first use in this function) ./src/alter.c:148: error: 'TK_DOT' undeclared (first use in this function) ./src/alter.c:148: error: 'TK_ON' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_WHEN' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_FOR' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_BEGIN' undeclared (first use in this function) ./src/alter.c: In function 'reloadTableSchema': ./src/alter.c:246: error: 'OP_DropTrigger' undeclared (first use in this function) ./src/alter.c:251: error: 'OP_DropTable' undeclared (first use in this function) ./src/alter.c:256: error: 'OP_ParseSchema' undeclared (first use in this function) ./src/alter.c: In function 'sqlite3AlterRenameTable': ./src/alter.c:365: error: 'OP_String8' undeclared (first use in this function) ./src/alter.c:366: error: 'OP_VRename' undeclared (first use in this function) ./src/alter.c: In function 'sqlite3AlterFinishAddColumn': ./src/alter.c:478: error: 'TK_NULL' undeclared (first use in this function) gnumake: *** [alter.lo] Error 1 Error: Unable to upgrade port: 1
On Jan 13, 2008, at 7:00 PM, Garrett Reid wrote:
I've been trying to update my installed ports, but it keeps bombing out on sqlite3 and I can't figure out why. Included below is the full transcript (it's not too long). Any ideas?
Try force removing sqlite3 and then installing it. sqllite seems very sensitive to prior versions in /opt/local.
j.
Thanks in advance, Garrett
[myhost:~] garrett$ sudo port selfupdate
MacPorts base version 1.600 installed
Downloaded MacPorts base version 1.600
The MacPorts installation is not outdated and so was not updated selfupdate done! [myhost:~] garrett$ sudo port upgrade outdated ---> 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.5.4" && gnumake all " returned error 2 Command output: ./libtool --mode=compile --tag=CC /usr/bin/gcc-4.0 - O2 -I. -I./src -DNDEBUG -DSQLITE_THREADSAFE=1 - DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./ src/alter.c /usr/bin/gcc-4.0 -O2 -I. -I./src -DNDEBUG -DSQLITE_THREADSAFE=1 - DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./ src/alter.c -fno-common -DPIC -o .libs/alter.o ./src/alter.c: In function 'renameTableFunc': ./src/alter.c:77: error: 'TK_SPACE' undeclared (first use in this function) ./src/alter.c:77: error: (Each undeclared identifier is reported only once ./src/alter.c:77: error: for each function it appears in.) ./src/alter.c:79: error: 'TK_LP' undeclared (first use in this function) ./src/alter.c:79: error: 'TK_USING' undeclared (first use in this function) ./src/alter.c: In function 'renameTriggerFunc': ./src/alter.c:135: error: 'TK_SPACE' undeclared (first use in this function) ./src/alter.c:148: error: 'TK_DOT' undeclared (first use in this function) ./src/alter.c:148: error: 'TK_ON' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_WHEN' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_FOR' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_BEGIN' undeclared (first use in this function) ./src/alter.c: In function 'reloadTableSchema': ./src/alter.c:246: error: 'OP_DropTrigger' undeclared (first use in this function) ./src/alter.c:251: error: 'OP_DropTable' undeclared (first use in this function) ./src/alter.c:256: error: 'OP_ParseSchema' undeclared (first use in this function) ./src/alter.c: In function 'sqlite3AlterRenameTable': ./src/alter.c:365: error: 'OP_String8' undeclared (first use in this function) ./src/alter.c:366: error: 'OP_VRename' undeclared (first use in this function) ./src/alter.c: In function 'sqlite3AlterFinishAddColumn': ./src/alter.c:478: error: 'TK_NULL' undeclared (first use in this function) gnumake: *** [alter.lo] Error 1
Error: Unable to upgrade port: 1 _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
Other ports seem to depend on it, do I need to delete them too?
[myhost:~] garrett$ sudo port uninstall sqlite3 ---> The following versions of sqlite3 are currently installed: ---> sqlite3 @3.3.15_0+darwin_8 ---> sqlite3 @3.3.16_0+darwin_8 ---> sqlite3 @3.3.17_0+darwin_8 ---> sqlite3 @3.4.1_0+darwin_8 ---> sqlite3 @3.5.1_0+darwin_8 ---> sqlite3 @3.5.2_0+darwin_8 ---> sqlite3 @3.5.3_1+darwin_8 (active) Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry. [myhost:~] garrett$ sudo port uninstall sqlite3 @3.5.3_1+darwin_8 ---> Unable to uninstall sqlite3 3.3.15_0+darwin_8, the following ports depend on it: ---> apr-util ---> apr-util ---> apr-util Error: port uninstall failed: Please uninstall the ports that depend on sqlite3 first.
Or am I going about this wrong? Sorry for being so helpless, I'll get macports figured eventually :P - Garrett On Jan 13, 2008, at 4:08 PM, Jay Sachs wrote:
On Jan 13, 2008, at 7:00 PM, Garrett Reid wrote:
I've been trying to update my installed ports, but it keeps bombing out on sqlite3 and I can't figure out why. Included below is the full transcript (it's not too long). Any ideas?
Try force removing sqlite3 and then installing it. sqllite seems very sensitive to prior versions in /opt/local.
j.
Thanks in advance, Garrett
[myhost:~] garrett$ sudo port selfupdate
MacPorts base version 1.600 installed
Downloaded MacPorts base version 1.600
The MacPorts installation is not outdated and so was not updated selfupdate done! [myhost:~] garrett$ sudo port upgrade outdated ---> 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.5.4" && gnumake all " returned error 2 Command output: ./libtool --mode=compile --tag=CC /usr/bin/gcc-4.0 - O2 -I. -I./src -DNDEBUG -DSQLITE_THREADSAFE=1 - DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./ src/alter.c /usr/bin/gcc-4.0 -O2 -I. -I./src -DNDEBUG -DSQLITE_THREADSAFE=1 - DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./ src/alter.c -fno-common -DPIC -o .libs/alter.o ./src/alter.c: In function 'renameTableFunc': ./src/alter.c:77: error: 'TK_SPACE' undeclared (first use in this function) ./src/alter.c:77: error: (Each undeclared identifier is reported only once ./src/alter.c:77: error: for each function it appears in.) ./src/alter.c:79: error: 'TK_LP' undeclared (first use in this function) ./src/alter.c:79: error: 'TK_USING' undeclared (first use in this function) ./src/alter.c: In function 'renameTriggerFunc': ./src/alter.c:135: error: 'TK_SPACE' undeclared (first use in this function) ./src/alter.c:148: error: 'TK_DOT' undeclared (first use in this function) ./src/alter.c:148: error: 'TK_ON' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_WHEN' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_FOR' undeclared (first use in this function) ./src/alter.c:151: error: 'TK_BEGIN' undeclared (first use in this function) ./src/alter.c: In function 'reloadTableSchema': ./src/alter.c:246: error: 'OP_DropTrigger' undeclared (first use in this function) ./src/alter.c:251: error: 'OP_DropTable' undeclared (first use in this function) ./src/alter.c:256: error: 'OP_ParseSchema' undeclared (first use in this function) ./src/alter.c: In function 'sqlite3AlterRenameTable': ./src/alter.c:365: error: 'OP_String8' undeclared (first use in this function) ./src/alter.c:366: error: 'OP_VRename' undeclared (first use in this function) ./src/alter.c: In function 'sqlite3AlterFinishAddColumn': ./src/alter.c:478: error: 'TK_NULL' undeclared (first use in this function) gnumake: *** [alter.lo] Error 1
Error: Unable to upgrade port: 1 _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
On Jan 13, 2008, at 7:11 PM, Garrett Reid wrote:
Other ports seem to depend on it, do I need to delete them too?
If you can afford the time, yes. Just to be clear, I haven't tested this, it's just something that worked in the past when I ran into problems upgrading sqlite3. I did just install it successfully, so I know it builds.
[myhost:~] garrett$ sudo port uninstall sqlite3 ---> The following versions of sqlite3 are currently installed: ---> sqlite3 @3.3.15_0+darwin_8 ---> sqlite3 @3.3.16_0+darwin_8 ---> sqlite3 @3.3.17_0+darwin_8 ---> sqlite3 @3.4.1_0+darwin_8 ---> sqlite3 @3.5.1_0+darwin_8 ---> sqlite3 @3.5.2_0+darwin_8 ---> sqlite3 @3.5.3_1+darwin_8 (active) Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry. [myhost:~] garrett$ sudo port uninstall sqlite3 @3.5.3_1+darwin_8 ---> Unable to uninstall sqlite3 3.3.15_0+darwin_8, the following ports depend on it: ---> apr-util ---> apr-util ---> apr-util Error: port uninstall failed: Please uninstall the ports that depend on sqlite3 first.
Or am I going about this wrong? Sorry for being so helpless, I'll get macports figured eventually :P
Just need to "force" the uninstall, with the "-f" flag. j.
On Jan 13, 2008, at 20:33, Jay Sachs wrote:
On Jan 13, 2008, at 7:11 PM, Garrett Reid wrote:
Other ports seem to depend on it, do I need to delete them too?
If you can afford the time, yes. Just to be clear, I haven't tested this, it's just something that worked in the past when I ran into problems upgrading sqlite3. I did just install it successfully, so I know it builds.
[myhost:~] garrett$ sudo port uninstall sqlite3 ---> The following versions of sqlite3 are currently installed: ---> sqlite3 @3.3.15_0+darwin_8 ---> sqlite3 @3.3.16_0+darwin_8 ---> sqlite3 @3.3.17_0+darwin_8 ---> sqlite3 @3.4.1_0+darwin_8 ---> sqlite3 @3.5.1_0+darwin_8 ---> sqlite3 @3.5.2_0+darwin_8 ---> sqlite3 @3.5.3_1+darwin_8 (active) Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry. [myhost:~] garrett$ sudo port uninstall sqlite3 @3.5.3_1+darwin_8 ---> Unable to uninstall sqlite3 3.3.15_0+darwin_8, the following ports depend on it: ---> apr-util ---> apr-util ---> apr-util Error: port uninstall failed: Please uninstall the ports that depend on sqlite3 first.
Or am I going about this wrong? Sorry for being so helpless, I'll get macports figured eventually :P
Just need to "force" the uninstall, with the "-f" flag.
To be more clear: Garret: No, you do not need to uninstall the ports that depend on sqlite3. You can, but you most likely don't have to. Just forcibly uninstall all versions of sqlite3. Then install sqlite3. Run these commands: sudo port -f uninstall sqlite3 @3.3.15_0+darwin_8 sudo port -f uninstall sqlite3 @3.3.16_0+darwin_8 sudo port -f uninstall sqlite3 @3.3.17_0+darwin_8 sudo port -f uninstall sqlite3 @3.4.1_0+darwin_8 sudo port -f uninstall sqlite3 @3.5.1_0+darwin_8 sudo port -f uninstall sqlite3 @3.5.2_0+darwin_8 sudo port -f uninstall sqlite3 @3.5.3_1+darwin_8 sudo port clean --work sqlite3 sudo port install sqlite3
I got things figured out from Jay's reply, thank you for the additional clarification though! (all that was needed was uninstalling the active one, installing new one, and cleaning.) Thanks! Garrett On Jan 13, 2008, at 10:15 PM, Ryan Schmidt wrote:
On Jan 13, 2008, at 20:33, Jay Sachs wrote:
On Jan 13, 2008, at 7:11 PM, Garrett Reid wrote:
Other ports seem to depend on it, do I need to delete them too?
If you can afford the time, yes. Just to be clear, I haven't tested this, it's just something that worked in the past when I ran into problems upgrading sqlite3. I did just install it successfully, so I know it builds.
[myhost:~] garrett$ sudo port uninstall sqlite3 .... Error: port uninstall failed: Please uninstall the ports that depend on sqlite3 first.
Or am I going about this wrong? Sorry for being so helpless, I'll get macports figured eventually :P
Just need to "force" the uninstall, with the "-f" flag.
To be more clear: Garret: No, you do not need to uninstall the ports that depend on sqlite3. You can, but you most likely don't have to. Just forcibly uninstall all versions of sqlite3. Then install sqlite3. Run these commands:
sudo port -f uninstall sqlite3 @3.3.15_0+darwin_8 sudo port -f uninstall sqlite3 @3.3.16_0+darwin_8 sudo port -f uninstall sqlite3 @3.3.17_0+darwin_8 sudo port -f uninstall sqlite3 @3.4.1_0+darwin_8 sudo port -f uninstall sqlite3 @3.5.1_0+darwin_8 sudo port -f uninstall sqlite3 @3.5.2_0+darwin_8 sudo port -f uninstall sqlite3 @3.5.3_1+darwin_8 sudo port clean --work sqlite3 sudo port install sqlite3
On Jan 14, 2008, at 12:15 AM, Ryan Schmidt wrote:
To be more clear: Garret: No, you do not need to uninstall the ports that depend on sqlite3. You can, but you most likely don't have to. Just forcibly uninstall all versions of sqlite3. Then install sqlite3. . . .
I was having similar trouble, and that worked for me. Thanks, SR
participants (4)
-
Garrett Reid
-
Jay Sachs
-
Ryan Schmidt
-
Steven Rogers