#15982 closed defect (worksforme)
py25-sip: Install failure
Reported by: | tom.duck@… | Owned by: | erickt@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | py25-sip | Cc: | |
Port: |
Description
py25-sip fails to install on my 10.4 Tiger system. Here is the build output:
$ sudo port install py25-sip ---> Fetching py25-sip ---> Attempting to fetch sip-4.7.6.tar.gz from http://www.riverbankcomputing.com/static/Downloads/sip4/ ---> Verifying checksum(s) for py25-sip ---> Extracting py25-sip ---> Applying patches to py25-sip ---> Configuring py25-sip ---> Building py25-sip 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_python_py25-sip/work/sip-4.7.6" && make all " returned error 2 Command output: cc -c -pipe -Os -w -I. -o main.o main.c cc -c -pipe -Os -w -I. -o transform.o transform.c cc -c -pipe -Os -w -I. -o gencode.o gencode.c cc -c -pipe -Os -w -I. -o export.o export.c cc -c -pipe -Os -w -I. -o heap.o heap.c cc -c -pipe -Os -w -I. -o parser.o parser.c cc -c -pipe -Os -w -I. -o lexer.o lexer.c c++ -F/opt/local/Library/Frameworks -L/opt/local/lib -o sip main.o transform.o gencode.o export.o heap.o parser.o lexer.o cc -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o siplib.o siplib.c cc -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o qtlib.o qtlib.c cc -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o threads.o threads.c cc -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o objmap.o objmap.c c++ -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o bool.o bool.cpp c++ -F/opt/local/Library/Frameworks -L/opt/local/lib -bundle -framework Python -o sip.so siplib.o qtlib.o threads.o objmap.o bool.o /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: _PyInt_AsSsize_t _PyInt_FromSsize_t collect2: ld returned 1 exit status make[1]: *** [sip.so] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
Change History (12)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Cc: | saispo@… removed |
---|---|
Owner: | changed from macports-tickets@… to saispo@… |
comment:2 Changed 16 years ago by erickt@…
Owner: | changed from saispo@… to erickt@… |
---|
comment:3 Changed 16 years ago by tom.duck@…
Thanks for having a look at this, saispo. I had already run python_select, but did so again just in case. The same error resulted:
$ sudo python_select python25 Selecting version "python25" for python $ python --version Python 2.5.2 $ which python /opt/local/bin/python $ sudo port clean --all py25-sip ---> Cleaning py25-sip Warning: Distfiles directory '/opt/local/var/macports/distfiles/python' may contain distfiles needed for other ports, use the -f flag to force removal $ sudo port install py25-sip ---> Fetching py25-sip ---> Attempting to fetch sip-4.7.6.tar.gz from http://www.riverbankcomputing.com/static/Downloads/sip4/ ---> Verifying checksum(s) for py25-sip ---> Extracting py25-sip ---> Applying patches to py25-sip ---> Configuring py25-sip ---> Building py25-sip 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_python_py25-sip/work/sip-4.7.6" && make all " returned error 2 Command output: cc -c -pipe -Os -w -I. -o main.o main.c cc -c -pipe -Os -w -I. -o transform.o transform.c cc -c -pipe -Os -w -I. -o gencode.o gencode.c cc -c -pipe -Os -w -I. -o export.o export.c cc -c -pipe -Os -w -I. -o heap.o heap.c cc -c -pipe -Os -w -I. -o parser.o parser.c cc -c -pipe -Os -w -I. -o lexer.o lexer.c c++ -F/opt/local/Library/Frameworks -L/opt/local/lib -o sip main.o transform.o gencode.o export.o heap.o parser.o lexer.o cc -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o siplib.o siplib.c cc -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o qtlib.o qtlib.c cc -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o threads.o threads.c cc -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o objmap.o objmap.c c++ -c -pipe -fPIC -Os -w -I. -I/opt/local/include/python2.5 -o bool.o bool.cpp c++ -F/opt/local/Library/Frameworks -L/opt/local/lib -bundle -framework Python -o sip.so siplib.o qtlib.o threads.o objmap.o bool.o /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: _PyInt_AsSsize_t _PyInt_FromSsize_t collect2: ld returned 1 exit status make[1]: *** [sip.so] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
comment:5 Changed 16 years ago by blb@…
Odd, those symbols are in my python25 install. What's the output of
port installed python25
comment:6 Changed 16 years ago by tom.duck@…
port installed python25 The following ports are currently installed: python25 @2.5.2_3+darwin_8 (active)
comment:7 Changed 16 years ago by blb@…
You may need to upgrade that (2.5.2_5 is current) as looking at the changes between revs 3 and 5 show that some links were fixed within the framework.
comment:8 Changed 16 years ago by tom.duck@…
I upgraded this, and then did the same for all installed ports. Unfortunately, the same problem persists.
One weird thing did happen: I had to force the uninstall of the old (inactive) python25. That's never happened before, and I am not sure what it means.
comment:9 Changed 16 years ago by tom.duck@…
Just in case, I did a full delete/reinstall of MacPorts. I am still getting the same errors when installing py25-sip:
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: _PyInt_AsSsize_t _PyInt_FromSsize_t collect2: ld returned 1 exit status
comment:10 Changed 16 years ago by tom.duck@…
Gah. I forgot to install python_select after reinstalling MacPorts. With this, py25-sip now installs cleanly. So, it seems that my MacPorts installation was broken. I'm not sure what the reason for this was. Thanks for the help. Please go ahead and close this report.
comment:11 Changed 16 years ago by blb@…
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Unfortunately there have been a few instances where a clean install of MacPorts fixes an issue, but what that issue was has yet to be found...
It looks like python2.4 may be owning the /opt/local/Frameworks/Python.framework symlinks, which would give this error. It seems that running "python_select python25" will fix this.