On 6/8/07, Alexander K. Hansen <[EMAIL PROTECTED]> wrote:
> Alexander Hansen wrote:
> > I'm trying to update pyqt-py* to a version that will build with
> > gcc-4.0.1, so that it will (hopefully) build on Intel boxes.  That way
> > treeline package that I recently added to Fink can use that and it can
> > also work on Macintels.
> >
> > Unfortunately, updating pyqt-py* also requires updating sip-py*, and I
> > can't get the updated version of that to build.
> >
> > The build log and my package descriptions are linked at
> > http://akhmac.blogdns.net/~hansen/finklogs/archives/2007-06.html#e2007-06-08T07_24_11.txt
> >
> > Thanks in advance for any insight!
> >
> >
> OK--the link should work now (learning nuances of nanoblogger).
>
> The relevant line seems to be:
>
> ...
> c++ -headerpad_max_install_names -bundle -o sip.so siplib.o qtlib.o
> threads.o objmap.o bool.o
>
> /usr/bin/ld: Undefined symbols:
> _PyArg_ParseTuple
> _PyBaseObject_Type

I am no expert on the "right" way to fix this, but it looks like these
symbols are defined here:

/sw/lib/python2.5/config/libpython2.5.a

In distutils there is supposed to be a function that gets directories
and library names, but it does not seem consistent across the various
platforms supported by Python (or maybe it has something to do with
the directories passed to Python's configure script).

Here's how it's done in libhid (with help from the autoconf macro archive):

http://boxster.ghz.cc/projects/libhid/browser/trunk/m4/ac_python_devel.m4#L169

IIRC it works correctly on OS X, but fails on some Linux
distributions. (Failing on Linux doesn't really affect Fink; however,
I suspect this method may have problems in the future.)

-- 
- Charles Lepple

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to