Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#13305 closed defect (duplicate)

sqlite3 fails to build on Mac OS X 10.5 Leopard

Reported by: designbot@… Owned by: mww@…
Priority: High Milestone:
Component: ports Version: 1.5.0
Keywords: sqlite subversion leopard install Cc: nox@…
Port:

Description

When I try to run the command:

sudo port install subversion

I get the following error:

--->  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.2" && gnumake all " returned error 2
Command output: ./libtool --mode=compile --tag=CC gcc -O2 -I. -I./src -DNDEBUG   -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./src/alter.c
 gcc -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:358: error: 'OP_String8' undeclared (first use in this function)
./src/alter.c:359: error: 'OP_VRename' undeclared (first use in this function)
./src/alter.c: In function 'sqlite3AlterFinishAddColumn':
./src/alter.c:471: error: 'TK_NULL' undeclared (first use in this function)
gnumake: *** [alter.lo] Error 1

Error: The following dependencies failed to build: apr-util sqlite3 neon openssl zlib
Error: Status 1 encountered during processing.

I'm running the latest version of MacPorts under Mac OS X 10.5.

Attachments (3)

logfile.txt (2.0 KB) - added by kreatix@… 17 years ago.
output from sudo port -dt build sqlite3
macports_sqlite3_error_20080306.rtf (6.4 KB) - added by noamt1@… 17 years ago.
Error from rex gibson - terminal results
sqlite3-debuglog.txt (29.1 KB) - added by spambox@… 16 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 17 years ago by afb@…

Summary: Subversion won't build on Mac OS X 10.5Subversion won't build on Mac OS X 10.5 (sqlite3)

comment:2 Changed 17 years ago by nox@…

Cc: mww@… nox@… added
Owner: changed from macports-dev@… to mww@…
Summary: Subversion won't build on Mac OS X 10.5 (sqlite3)sqlite3 fails to build on Mac OS X 10.5 Leopard

comment:3 Changed 17 years ago by mww@…

I need a full trace:

sudo port clean
sudo port -dt build sqlite3 2>&1 | tee logfile.txt

please attach logfile.txt!

comment:4 Changed 17 years ago by jnovak@…

I can't even fetch sqlite3, which is apparently a dependency of apache2:

0 [18:28] ~/tmp% sudo port -dt install apache2 |& tee port-install-apr-utils.log
[snip]
DEBUG: Skipping completed org.macports.main (sqlite3)
--->  Fetching sqlite3
DEBUG: Executing org.macports.fetch (sqlite3)
--->  sqlite-3.5.1.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/sqlite3
--->  Attempting to fetch sqlite-3.5.1.tar.gz from http://www.sqlite.org/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
DEBUG: Fetching failed:: HTTP response code said error
--->  Attempting to fetch sqlite-3.5.1.tar.gz from http://svn.macports.org/repository/macports/distfiles/sqlite3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
DEBUG: Fetching failed:: HTTP response code said error
--->  Attempting to fetch sqlite-3.5.1.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
DEBUG: Fetching failed:: HTTP response code said error
--->  Attempting to fetch sqlite-3.5.1.tar.gz from http://svn.macports.org/repository/macports/downloads/sqlite3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
DEBUG: Fetching failed:: HTTP response code said error
Error: Target org.macports.fetch returned: fetch failed
Warning: the following items did not execute (for sqlite3): org.macports.activate org.macports.fetch org.macports.extract org.macports.checksum org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: apr-util sqlite3 pcre

comment:5 in reply to:  4 Changed 17 years ago by mww@…

Keywords: sqlite added

Replying to jnovak@alumni.cmu.edu:

I can't even fetch sqlite3, which is apparently a dependency of apache2:

Please update -- 3.5.2 is already in the tree since 2007-11-06 (and 3.5.1 has been put on macports.org just now)

Changed 17 years ago by kreatix@…

Attachment: logfile.txt added

output from sudo port -dt build sqlite3

comment:6 Changed 17 years ago by avsmith@…

I am having this same problem. Nothing specific to add, as my observations are exactly the same.

comment:7 in reply to:  6 Changed 17 years ago by mww@…

Replying to avsmith@gmail.com:

I am having this same problem. Nothing specific to add, as my observations are exactly the same.

If you get the extract failure (like in the attached logfile.txt) - this seems to be a weird problem with gzip;

please attach a _full_ log that actually contains the initial error! (port clean sqlite3; port -dt destroot sqlite3)

comment:8 Changed 17 years ago by mww@…

Resolution: worksforme
Status: newclosed

If this still happens with 3.5.3, please re-open -- though I suspect this to be a problem with gzip, not sqlite3.

comment:9 Changed 17 years ago by noamt1@…

I'm having same problem. I am up-to-date with macports. will attach output from terminal. I ran install a couple times error is different in subsequent installs.

Changed 17 years ago by noamt1@…

Error from rex gibson - terminal results

comment:10 Changed 16 years ago by spambox@…

Resolution: worksforme
Status: closedreopened

The same thing happens to me with sqlite 3.5.9. I ran 'port selfupdate' just before retrying to build subversion and it failed both before and after I ran selfupdate.

On running 'port clean sqlite3; port -dt destroot sqlite3' there was no error that I saw, and sqlite3 installed fine, but there IS a problem building sqlite3 on Leopard in some cases. My machine is a MacBook with a fairly fresh (about 1 month) install of Leopard.

Here's my failure output:

$ sudo port install subversion
Portfile changed since last build; discarding previous state.
--->  Fetching db46
--->  Attempting to fetch patch.4.6.21.1 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch db-4.6.21.tar.gz from http://download-west.oracle.com/berkeley-db/
--->  Verifying checksum(s) for db46
--->  Extracting db46
--->  Applying patches to db46
--->  Configuring db46
--->  Building db46 with target all
--->  Staging db46 into destroot
--->  Installing db46 4.6.21_1
--->  Activating db46 4.6.21_1
--->  Cleaning db46
--->  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.9" && gnumake all " returned error 2
Command output: sqlite3.c:75960: error: 'TK_GE' undeclared (first use in this function)
sqlite3.c:75963: error: 'TK_RSHIFT' undeclared (first use in this function)
sqlite3.c:75966: error: 'TK_GT' undeclared (first use in this function)
sqlite3.c:75972: error: 'TK_ILLEGAL' undeclared (first use in this function)
sqlite3.c:75981: error: 'TK_BITOR' undeclared (first use in this function)
sqlite3.c:75984: error: 'TK_CONCAT' undeclared (first use in this function)
sqlite3.c:75989: error: 'TK_COMMA' undeclared (first use in this function)
sqlite3.c:75993: error: 'TK_BITAND' undeclared (first use in this function)
sqlite3.c:75997: error: 'TK_BITNOT' undeclared (first use in this function)
sqlite3.c:76014: error: 'TK_STRING' undeclared (first use in this function)
sqlite3.c:76026: error: 'TK_DOT' undeclared (first use in this function)
sqlite3.c:76034: error: 'TK_INTEGER' undeclared (first use in this function)
sqlite3.c:76040: error: 'TK_FLOAT' undeclared (first use in this function)
sqlite3.c:76060: error: 'TK_ID' undeclared (first use in this function)
sqlite3.c:76060: warning: assignment makes integer from pointer without a cast
sqlite3.c:76064: error: 'TK_VARIABLE' undeclared (first use in this function)
sqlite3.c:76073: error: 'TK_REGISTER' undeclared (first use in this function)
sqlite3.c:76113: error: 'TK_BLOB' undeclared (first use in this function)
sqlite3.c: In function 'sqlite3RunParser':
sqlite3.c:76184: error: 'TK_SPACE' undeclared (first use in this function)
sqlite3.c:76184: warning: case label value exceeds maximum value for type
sqlite3.c:76185: error: 'TK_COMMENT' undeclared (first use in this function)
sqlite3.c:76185: warning: case label value exceeds maximum value for type
sqlite3.c:76193: error: 'TK_ILLEGAL' undeclared (first use in this function)
sqlite3.c:76193: warning: case label value exceeds maximum value for type
sqlite3.c:76202: error: 'TK_SEMI' undeclared (first use in this function)
sqlite3.c:76202: warning: case label value exceeds maximum value for type
sqlite3.c:76218: warning: comparison between pointer and integer
sqlite3.c:76219: warning: passing argument 2 of 'sqlite3Parser' makes integer from pointer without a cast
gnumake: *** [sqlite3.lo] Error 1

Error: The following dependencies failed to build: apr-util sqlite3 neon
Error: Status 1 encountered during processing.

Will attach the -dt output I copy-pasted from Terminal separately.

Changed 16 years ago by spambox@…

Attachment: sqlite3-debuglog.txt added

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

Cc: mww@… removed
Resolution: duplicate
Status: reopenedclosed

Duplicate of #13953. II'm marking this ticket as the duplicate even though it's older, because the other one has more output that fully illustrates how the failure happens.

comment:12 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.