From: Brian L. <br...@ma...> - 2002-10-01 08:28:03
|
The autoconf (2.52) which comes with Jaguar is broken on BSDish=20 systems. Either install the autoconf from Fink, or install the latest=20= version from GNU (2.54+). An alternative which may work is to edit=20 line 7294 of your /usr/share/autoconf.autoconf.m4f like so: exit (setpgrp (1,1) =3D=3D -1 ? 0 : 1);])] On Tuesday, October 1, 2002, at 12:32 AM, Gerhard H=E4ring wrote: > (Cc-ing the Python-Mac SIG's list, in the hope that this message=20 > reaches > it and that somebody there can make any sense of the strange linker > error.) Could you please Cc Don? > > * Don Robertson <dcr...@pa...> [2002-10-01 17:45 = +1200]: >> Greetings, >> >> I have looked through the archive but it has truncated the posts, and=20= >> the attached >> setup.py is not attached. >> >> So apologies if you have seen all this before. >> >> I am trying to install on Mac OS 10.2, and have tried the fix=20 >> suggested: >> >> The lib paths were >> include_dirs =3D [ "/usr/local/pgsql/include" ] >> library_dirs =3D [ "/usr/local/pgsql/lib" ] >> >> This line had to be removed from the setup section >> runtime_library_dirs =3D pypgsql_rt_dirs, >> >> My system seems pretty much the same as described. >> >> However, I am still unable to get it to work. >> >> When I build, I get a load of errors, and I get : >> >> Python 2.2 (#1, 07/14/02, 23:25:09) >> [GCC Apple cpp-precomp 6.14] on darwin >> Type "help", "copyright", "credits" or "license" for more = information. >>>>> from pyPgSQL import PgSQL >> Traceback (most recent call last): >> File "<stdin>", line 1, in ? >> File "/usr/lib/python2.2/site-packages/pyPgSQL/PgSQL.py", line 356,=20= >> in ? >> from libpq import * >> File "/usr/lib/python2.2/site-packages/pyPgSQL/libpq/__init__.py",=20= >> line 23, in ? >> from libpq import * >> ImportError: Failure linking new module >>>>> >> >> My build and install output is at: >> http://homepages.paradise.net.nz/dcrober1/4suite/pypgsql_build.html > > ... which reads: > > [...] > gcc -arch i386 -arch ppc -bundle -flat_namespace -undefined suppress=20= > build/temp.darwin-6.1-Power Macintosh-2.2/libpqmodule.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pgboolean.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pgint2object.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pgint8object.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pgversion.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pglargeobject.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pgnotify.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pgconnection.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pgresult.o=20 > build/temp.darwin-6.1-Power Macintosh-2.2/pymemstrdup.o=20 > -L/usr/local/pgsql/lib -lpq -o build/lib.darwin-6.1-Power=20 > Macintosh-2.2/pyPgSQL/libpq/libpqmodule.so > ld: for architecture i386 > ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not=20= > match cputype (7) for specified -arch flag: i386 (file not loaded) > [...] > > I have no idea why gcc picks up "-arch i386" _and_ "-arch ppc" options=20= > when you > use distutils. That's certainly the cause of pyPgSQL not working for=20= > you, but > I have no idea /why/ distutils behaves like this. Perhaps your Python > installation on MacOS X is borked? > > -- Gerhard > > _______________________________________________ > Pythonmac-SIG maillist - Pyt...@py... > http://mail.python.org/mailman/listinfo/pythonmac-sig > |