Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#15638 closed defect (invalid)

py25-sip fails to build

Reported by: themolok@… Owned by: erickt@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: py25-sip

Description

Here it is the log:

$> port install py25-sip
--->  Fetching py25-sip
--->  sip-4.7.6.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/python
--->  Attempting to fetch sip-4.7.6.tar.gz from http://www.riverbankcomputing.com/static/Downloads/sip4/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  453k  100  453k    0     0   105k      0  0:00:04  0:00:04 --:--:--  169k
--->  Verifying checksum(s) for py25-sip
--->  Checksumming sip-4.7.6.tar.gz
--->  Extracting py25-sip
--->  Extracting sip-4.7.6.tar.gz
--->  Applying patches to py25-sip
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py25-sip/files/patch-siputils.py.diff
patching file siputils.py
Hunk #1 succeeded at 1367 (offset 65 lines).
--->  Configuring py25-sip
This is SIP 4.7.6 for Python 2.5.2 on darwin.
The SIP code generator will be installed in /opt/local/bin.
The SIP module will be installed in /opt/local/lib/python2.5/site-packages.
The SIP header file will be installed in /opt/local/include/python2.5.
The default directory to install .sip files in is /opt/local/share/sip.
The platform/compiler configuration is macx-g++.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
--->  Building py25-sip with target all
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
Undefined symbols:
  "_PyInt_FromSsize_t", referenced from:
      _sipVoidPtr_getsize in siplib.o
      _sipWrapper_sq_ass_item in siplib.o
      _sipWrapper_sq_item in siplib.o
  "_PyInt_AsSsize_t", referenced from:
      _sipVoidPtr_setsize in siplib.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [sip.so] Error 1
make: *** [all] Error 2
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
Undefined symbols:
  "_PyInt_FromSsize_t", referenced from:
      _sipVoidPtr_getsize in siplib.o
      _sipWrapper_sq_ass_item in siplib.o
      _sipWrapper_sq_item in siplib.o
  "_PyInt_AsSsize_t", referenced from:
      _sipVoidPtr_setsize in siplib.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [sip.so] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for py25-sip): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (8)

comment:1 Changed 16 years ago by rhwood@…

Owner: changed from macports-tickets@… to saispo@…

Assign to maintainer

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

Milestone: Port Bugs
Priority: HighNormal

comment:3 Changed 16 years ago by erickt@…

Owner: changed from saispo@… to erickt@…

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.

comment:4 Changed 16 years ago by gjznituv@…

I get a similar error.

What do you mean by "python_select python25" ? Where do I issue this command?

--->  Fetching py25-sip
--->  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 
Undefined symbols:
  "_PyInt_FromSsize_t", referenced from:
      _sipVoidPtr_getsize in siplib.o
      _sipWrapper_sq_ass_item in siplib.o
      _sipWrapper_sq_item in siplib.o
  "_PyInt_AsSsize_t", referenced from:
      _sipVoidPtr_setsize in siplib.o
ld: symbol(s) not found
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@…

Looks a lot like #15982, so make sure your python25 is up to date, then install the python_select port (sudo port install python_select) and run sudo python_select python25.

comment:6 Changed 15 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

Closing due to lack of response by the reporter.

comment:7 Changed 15 years ago by mf2k (Frank Schima)

Port: py25-sip added

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.