Failure compiling MPL on Snow Leopard

I am trying to compile MPL on Snow Leopard without success. I have a
fairly fresh system (10.6.2) with python.org 2.6.4 installed. I have
downloaded the MPL trunk with svn. I had to make a small change to
the make.osx file because there are some extra ". However I still
can't get MPL to compile/install; it fails when compiling zlib. The
change I made in the make.osx file is on line 11. It used to be:

ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"

and is now:

ARCH_FLAGS=-arch i386 -arch ppc -arch x86_64

The error I get while compiling is copied below. Can anyone help me
figure out what is wrong?

Thanks,
Jeremy

x zlib-1.2.3/zutil.h
Checking for gcc...
Building static library libz.a version 1.2.3 with gcc.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2
-isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf
-DHAS_sprintf_void -DNO_ERRNO_H -c -o adler32.o adler32.c
gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2
-isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf
-DHAS_sprintf_void -DNO_ERRNO_H -c -o compress.o compress.c
gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2
-isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf
-DHAS_sprintf_void -DNO_ERRNO_H -c -o crc32.o crc32.c
In file included from crc32.c:29:
zutil.h:21:24: error: stddef.h: No such file or directory
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
crc32.c:36:24: error: limits.h: No such file or directory
In file included from crc32.c:29:
zutil.h:21:24: error: stddef.h: No such file or directory
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
crc32.c:36:24: error: limits.h: No such file or directory
In file included from crc32.c:29:
zutil.h:21:24: error: stddef.h: No such file or directory
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
crc32.c:36:24: error: limits.h: No such file or directory
gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2
-isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf
-DHAS_sprintf_void -DNO_ERRNO_H -c -o gzio.o gzio.c
lipo: can't figure out the architecture type of: /var/tmp//cc9xNLIP.out
make[1]: *** [crc32.o] Error 1
make[1]: *** Waiting for unfinished jobs....
gzio.c:10:19: error: stdio.h: No such file or directory

and more errors below.

Dear Jeremy,

I'm not sure but I think it may be the problem with ppc, cause this architecture was dropped for Snow Leopard as far as I remember.
So just delete "-arch ppc" and try again.

In general you may try to use this description:

http://blog.hyperjeff.net/?p=160

I've tested it and it works.

Cheers,

Jakub

···

On 03/09/2010 04:54 AM, Jeremy Conlin wrote:

I am trying to compile MPL on Snow Leopard without success. I have a
fairly fresh system (10.6.2) with python.org 2.6.4 installed. I have
downloaded the MPL trunk with svn. I had to make a small change to
the make.osx file because there are some extra ". However I still
can't get MPL to compile/install; it fails when compiling zlib. The
change I made in the make.osx file is on line 11. It used to be:

ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"

and is now:

ARCH_FLAGS=-arch i386 -arch ppc -arch x86_64

The error I get while compiling is copied below. Can anyone help me
figure out what is wrong?

Thanks,
Jeremy

x zlib-1.2.3/zutil.h
Checking for gcc...
Building static library libz.a version 1.2.3 with gcc.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
   WARNING: snprintf() not found, falling back to sprintf(). zlib
   can build but will be open to possible buffer-overflow security
   vulnerabilities.
Checking for return value of sprintf()... No.
   WARNING: apparently sprintf() does not return a value. zlib
   can build but will be open to possible string-format security
   vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2
-isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf
-DHAS_sprintf_void -DNO_ERRNO_H -c -o adler32.o adler32.c
gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2
-isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf
-DHAS_sprintf_void -DNO_ERRNO_H -c -o compress.o compress.c
gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2
-isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf
-DHAS_sprintf_void -DNO_ERRNO_H -c -o crc32.o crc32.c
In file included from crc32.c:29:
zutil.h:21:24: error: stddef.h: No such file or directory
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
crc32.c:36:24: error: limits.h: No such file or directory
In file included from crc32.c:29:
zutil.h:21:24: error: stddef.h: No such file or directory
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
crc32.c:36:24: error: limits.h: No such file or directory
In file included from crc32.c:29:
zutil.h:21:24: error: stddef.h: No such file or directory
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
crc32.c:36:24: error: limits.h: No such file or directory
gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2
-isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf
-DHAS_sprintf_void -DNO_ERRNO_H -c -o gzio.o gzio.c
lipo: can't figure out the architecture type of: /var/tmp//cc9xNLIP.out
make[1]: *** [crc32.o] Error 1
make[1]: *** Waiting for unfinished jobs....
gzio.c:10:19: error: stdio.h: No such file or directory

and more errors below.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options