#12862 closed defect (fixed)
py25-sqlite3 fails to build
Reported by: | brianjlandau@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.2 |
Keywords: | Cc: | mww@… | |
Port: |
Description
py25-sqlite fails to build on a xserve with a PowerPC G4 and running Mac OS X 10.3.9 (Darwin 7.9.0)
Using gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671) from Xcode 1.5
I'm running MacPorts 1.5.2
The output is as follows:
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-sqlite3/work/Python-2.5.1/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1 Command output: _sqlite/connection.c:1199: error: initializer element is not constant _sqlite/connection.c:1199: error: (near initialization for `connection_members[6]') _sqlite/connection.c:1200: error: parse error before ')' token _sqlite/connection.c:1200: error: initializer element is not constant _sqlite/connection.c:1200: error: (near initialization for `connection_members[7].offset') _sqlite/connection.c:1200: error: initializer element is not constant _sqlite/connection.c:1200: error: (near initialization for `connection_members[7]') _sqlite/connection.c:1201: error: parse error before ')' token _sqlite/connection.c:1201: error: initializer element is not constant _sqlite/connection.c:1201: error: (near initialization for `connection_members[8].offset') _sqlite/connection.c:1201: error: initializer element is not constant _sqlite/connection.c:1201: error: (near initialization for `connection_members[8]') _sqlite/connection.c:1202: error: parse error before ')' token _sqlite/connection.c:1202: error: initializer element is not constant _sqlite/connection.c:1202: error: (near initialization for `connection_members[9].offset') _sqlite/connection.c:1202: error: initializer element is not constant _sqlite/connection.c:1202: error: (near initialization for `connection_members[9]') _sqlite/connection.c:1203: error: parse error before ')' token _sqlite/connection.c:1203: error: initializer element is not constant _sqlite/connection.c:1203: error: (near initialization for `connection_members[10].offset') _sqlite/connection.c:1203: error: initializer element is not constant _sqlite/connection.c:1203: error: (near initialization for `connection_members[10]') _sqlite/connection.c:1204: error: parse error before ')' token _sqlite/connection.c:1204: error: initializer element is not constant _sqlite/connection.c:1204: error: (near initialization for `connection_members[11].offset') _sqlite/connection.c:1204: error: initializer element is not constant _sqlite/connection.c:1204: error: (near initialization for `connection_members[11]') _sqlite/connection.c:1205: error: initializer element is not constant _sqlite/connection.c:1205: error: (near initialization for `connection_members[12]') error: command 'gcc' failed with exit status 1
Attachments (1)
Change History (7)
comment:1 Changed 17 years ago by mww@…
Status: | new → assigned |
---|
comment:2 Changed 17 years ago by eejd
I am having the same problem, 10.3.9 Server, gcc version 3.3 20030304 (Apple Computer, Inc. build 1666) I am attaching the trace you wanted.
Changed 17 years ago by eejd
Attachment: | LogFile.txt added |
---|
comment:3 follow-up: 4 Changed 17 years ago by ebgssth@…
Try this.
Index: setup.py =================================================================== --- setup.py (revision 31432) +++ setup.py (working copy) @@ -27,7 +27,7 @@ ext_modules = [Extension('_sqlite3', sqlite_srcs, define_macros=sqlite_defines, - include_dirs = ["_sqlite", inc_dirs], + include_dirs = ["_sqlite"] + inc_dirs, libraries = ["sqlite3"], library_dirs = lib_dirs)]
comment:4 Changed 17 years ago by eejd
Replying to ebgssth@gmail.com:
Try this.
Index: setup.py =================================================================== --- setup.py (revision 31432) +++ setup.py (working copy) @@ -27,7 +27,7 @@ ext_modules = [Extension('_sqlite3', sqlite_srcs, define_macros=sqlite_defines, - include_dirs = ["_sqlite", inc_dirs], + include_dirs = ["_sqlite"] + inc_dirs, libraries = ["sqlite3"], library_dirs = lib_dirs)]
I actually worked on this last night and used a (less elegant) fix that was almost the same. This should be patched in.
comment:5 Changed 17 years ago by mww@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
o.k. - the include-dir was not set correctly; this made the build choke on 10.3 and incorrectly work with the headers on 10.4 and 10.5; fixed in r31466
Note: See
TracTickets for help on using
tickets.
I need a full trace (as I do not have a working 10.3 system):
Please attach the "logfile.txt"!