still probs to compile python-ldap on macosx

Michael Engelhart mengelhart at katahdinsoftware.com
Tue Nov 5 14:55:04 CET 2002


Just curious, does this now build without any errors on the python2.2  
that is installed by the developer tools?

I'm one of the ones who was able to build the library with my stock 
10.2 OS X and Dev Tools.  It errored out during the build phase but 
build install still installed the library and it works fine.

Mike
On Tuesday, November 5, 2002, at 04:55  AM, Steven Graham wrote:

>
>
> ld -R/filename does error out also, and after finding what was wrong 
> it only
> issued a warning as Jens said earlier.
>
> For some reason gcc doesn't like the space in the filename when 
> linking.
> This might not be gcc, it could be the shell that gcc is calling to 
> exec ld.
> In any case I modified util.py in the distutils package to strip  out 
> spaces
> in the machine name ('Power Macintosh-2.2') when the osname is 
> 'darwin'.
>
> The patch is as follows:
> --- util.py     Tue Nov  5 01:29:27 2002
> +++ util.py.osx Tue Nov  5 01:26:22 2002
> @@ -67,6 +67,8 @@
>          m = rel_re.match(release)
>          if m:
>              release = m.group()
> +    elif osname[:6] == "darwin":
> +       machine = machine.replace(' ','')
>
>      return "%s-%s-%s" % (osname, release, machine)
> ----end patch (don't include this in file)----
>
> You can patch util.py (after making a backup) like so:
>
> # cd /path/to/python/lib/distutils/
> # cp util.py util.py.orig
> # patch -u -p0 < patch_filename
>
> Where patch_filename is the file you save the patch into.
> If you don't want to use patch you can add the two line fix by hand :)
>
> This will cause the output_dir variable to be set to
> 'build/temp.darwin-6.1-PowerMacintosh-2.2/'
>
> I'm sure there is an easier way to set the build directory through 
> options
> in either setup.py or through the command line but I can't find any. 
> This
> fix seemed to work for me.
>
> -Steve
>
> Note: I have python2.2 installed on my system but it was showing the 
> same
> problems.






More information about the python-ldap mailing list