103 ~/Temp/metapost/metapost-1.002: cd /Users/hans/Temp/metapost/metapost-1.002 104 ~/Temp/metapost/metapost-1.002: sh build .sh sh: build: No such file or directory 105 ~/Temp/metapost/metapost-1.002: sh build.sh Your make is a GNU-make; I will use that creating cache ./config.cache checking whether make sets ${MAKE}... yes checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking host system type... powerpc-apple-darwin9.1.0 checking target system type... powerpc-apple-darwin9.1.0 checking build system type... powerpc-apple-darwin9.1.0 checking whether to define additional compiler specific flags... checking for sys/wait.h that is POSIX.1 compatible... yes checking for a BSD compatible install... /usr/bin/install -c -p checking whether make sets ${MAKE}... (cached) yes checking whether ln -s works... yes checking how to run the C preprocessor... gcc -E checking for working alloca.h... yes checking for alloca... yes checking for ranlib... ranlib checking for X... no checking whether to enable maintainer-specific portions of Makefiles... no checking for loader (symbol LD)... ld checking for archiver (symbol AR)... ar checking for archiver options (symbol ARFLAGS)... rc checking where the main texmf tree is located... /usr/local/texlive/2007/texmf checking for connect... yes updating cache ./config.cache creating ./config.status creating Makefile configuring in texk running /bin/sh ../../src/texk/configure --datadir=/usr/local/texlive/2007 --without-bibtex8 --without-cjkutils --without-detex --without-dialog --without-dtl --without-dvi2tty --without-dvidvi --without-dviljk --without-dvipdfm --without-dvipsk --without-eomega --without-etex --without-gsftopk --without-lacheck --without-makeindexk --without-musixflx --without-odvipsk --without-omega --without-oxdvik --without-ps2pkm --without-seetexk --without-t1utils --without-tetex --without-tex4htk --without-texinfo --without-texlive --without-ttf2pk --without-tth --without-xdvik --bindir=${exec_prefix}/bin/powerpc-apple-darwin9.1.0 --prefix=/usr/local/teTeX --srcdir=../../src/texk creating cache ./config.cache checking whether make sets ${MAKE}... yes checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for POSIXized ISC... no checking whether ln -s works... yes checking for a BSD compatible install... /usr/bin/install -c -p checking whether to enable maintainer-specific portions of Makefiles... no checking for loader (symbol LD)... ld checking for archiver (symbol AR)... ar checking for archiver options (symbol ARFLAGS)... rc checking where the main texmf tree is located... /usr/local/texlive/2007/texmf checking for connect... yes checking for Cygwin environment... no checking for mingw32 environment... no checking how to run the C preprocessor... gcc -E checking host system type... powerpc-apple-darwin9.1.0 checking build system type... powerpc-apple-darwin9.1.0 checking for ld used by GCC... ld checking if the linker (ld) is GNU ld... no checking for ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking for a sed that does not truncate output... /usr/bin/sed checking how to recognise dependent libraries... file_magic Mach-O dynamically linked shared library checking for object suffix... o checking for executable suffix... rm: conftest.dSYM: is a directory .dSYM checking command to parse /usr/bin/nm -p output... rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory failed checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (ld) supports shared libraries... yes checking how to hardcode library paths into programs... unsupported checking whether stripping libraries is possible... no checking dynamic linker characteristics... darwin9.1.0 dyld checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes creating libtool updating cache ./config.cache creating ./config.status creating Makefile configuring in kpathsea running /bin/sh ../../../src/texk/kpathsea/configure --datadir=/usr/local/texlive/2007 --without-bibtex8 --without-cjkutils --without-detex --without-dialog --without-dtl --without-dvi2tty --without-dvidvi --without-dviljk --without-dvipdfm --without-dvipsk --without-eomega --without-etex --without-gsftopk --without-lacheck --without-makeindexk --without-musixflx --without-odvipsk --without-omega --without-oxdvik --without-ps2pkm --without-seetexk --without-t1utils --without-tetex --without-tex4htk --without-texinfo --without-texlive --without-ttf2pk --without-tth --without-xdvik '--bindir=${prefix}/bin/powerpc-apple-darwin9.1.0' --prefix=/usr/local/teTeX --cache-file=.././config.cache --srcdir=../../../src/texk/kpathsea loading cache .././config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for a BSD compatible install... /usr/bin/install -c -p checking whether ln -s works... (cached) yes checking whether make sets ${MAKE}... (cached) yes checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking how to run the C preprocessor... (cached) gcc -E checking host system type... powerpc-apple-darwin9.1.0 checking build system type... powerpc-apple-darwin9.1.0 checking for ld used by GCC... (cached) ld checking if the linker (ld) is GNU ld... (cached) no checking for ld option to reload object files... (cached) -r checking for BSD-compatible nm... (cached) /usr/bin/nm -p checking for a sed that does not truncate output... (cached) /usr/bin/sed checking how to recognise dependent libraries... (cached) file_magic Mach-O dynamically linked shared library checking for object suffix... (cached) o checking for executable suffix... (cached) .dSYM checking command to parse /usr/bin/nm -p output... (cached) failed checking for dlfcn.h... (cached) yes checking for ranlib... (cached) ranlib checking for strip... (cached) strip checking for objdir... .libs checking for gcc option to produce PIC... (cached) -fno-common checking if gcc PIC flag -fno-common works... (cached) yes checking if gcc static flag works... (cached) no checking if gcc supports -c -o file.o... (cached) yes checking if gcc supports -c -o file.lo... (cached) yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (ld) supports shared libraries... yes checking how to hardcode library paths into programs... unsupported checking whether stripping libraries is possible... no checking dynamic linker characteristics... darwin9.1.0 dyld checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes creating libtool checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for ANSI C header files... no checking whether closedir returns void... yes checking for assert.h... yes checking for float.h... yes checking for limits.h... yes checking for memory.h... yes checking for pwd.h... yes checking for stdlib.h... yes checking for string.h... yes checking for strings.h... yes checking for sys/param.h... yes checking for unistd.h... yes checking for putenv... no checking for strcasecmp... no checking for strtol... no checking for strstr... no checking for bcmp... no checking for bcopy... no checking for bzero... no checking for getcwd... no checking for getwd... no checking for index... no checking for memcmp... no checking for memcpy... no checking for rindex... no checking for strchr... no checking for strrchr... no checking for working const... yes checking for st_mtim in struct stat... no checking whether the compiler accepts prototypes... yes checking whether program_invocation_name is predefined... no checking whether to enable maintainer-specific portions of Makefiles... no checking for loader (symbol LD)... (cached) ld checking for archiver (symbol AR)... (cached) ar checking for archiver options (symbol ARFLAGS)... (cached) rc checking where the main texmf tree is located... /usr/local/texlive/2007/texmf checking for main in -lm... no updating cache .././config.cache creating ./config.status creating Makefile creating c-auto.h configuring in web2c running /bin/sh ../../../src/texk/web2c/configure --datadir=/usr/local/texlive/2007 --without-bibtex8 --without-cjkutils --without-detex --without-dialog --without-dtl --without-dvi2tty --without-dvidvi --without-dviljk --without-dvipdfm --without-dvipsk --without-eomega --without-etex --without-gsftopk --without-lacheck --without-makeindexk --without-musixflx --without-odvipsk --without-omega --without-oxdvik --without-ps2pkm --without-seetexk --without-t1utils --without-tetex --without-tex4htk --without-texinfo --without-texlive --without-ttf2pk --without-tth --without-xdvik '--bindir=${prefix}/bin/powerpc-apple-darwin9.1.0' --prefix=/usr/local/teTeX --cache-file=.././config.cache --srcdir=../../../src/texk/web2c loading cache .././config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for a BSD compatible install... /usr/bin/install -c -p checking whether ln -s works... (cached) yes checking whether make sets ${MAKE}... (cached) yes checking for bison... bison -y checking for flex... flex checking for yywrap in -lfl... yes checking for ranlib... (cached) ranlib checking how to run the C preprocessor... (cached) gcc -E checking for sys/time.h... yes checking for sys/timeb.h... yes checking for strerror... yes checking for gettimeofday... yes checking for ftime... yes checking for mkstemp... yes checking for mktemp... yes checking return type of signal handlers... void checking lex output file root... lex.yy checking whether yytext is a pointer... no checking whether yytext is an array of char... yes checking whether gcc asm needs underscore... no checking for inline... inline checking for loader (symbol LD)... (cached) ld checking for archiver (symbol AR)... (cached) ar checking for archiver options (symbol ARFLAGS)... (cached) rc checking whether char is unsigned... no checking whether byte ordering is bigendian... yes checking size of long... 4 checking for connect... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... no checking for loader (symbol LD)... (cached) ld checking for archiver (symbol AR)... (cached) ar checking for archiver options (symbol ARFLAGS)... (cached) rc checking where the main texmf tree is located... /usr/local/texlive/2007/texmf checking for Apple Carbon framework... yes checking for X... disabled checking for main in -lm... (cached) no updating cache .././config.cache creating ./config.status creating Makefile creating doc/Makefile creating lib/Makefile creating man/Makefile creating mpware/Makefile creating mpdir/Makefile creating web2c/Makefile creating window/Makefile cat: ../../../src/texk/web2c/window/Makefile.in: No such file or directory creating fmtutil.cnf creating c-auto.h gcc -DHAVE_CONFIG_H -I. -I../../../../src/texk/web2c/web2c -I../.. -I../../../../src/texk/web2c/.. -I.. -I../../../../src/texk/web2c/web2c/.. -g -O2 -c ../../../../src/texk/web2c/web2c/kps.c In file included from ../../../../src/texk/web2c/../kpathsea/config.h:82, from ../../../../src/texk/web2c/web2c/../config.h:44, from ../../../../src/texk/web2c/web2c/web2c.h:3, from ../../../../src/texk/web2c/web2c/kps.c:26: ../../../../src/texk/web2c/../kpathsea/c-std.h:60: error: conflicting types for ‘calloc’ ../../../../src/texk/web2c/../kpathsea/c-std.h:60: error: conflicting types for ‘malloc’ ../../../../src/texk/web2c/../kpathsea/c-std.h:60: error: conflicting types for ‘realloc’ /usr/include/stdlib.h:176: error: previous declaration of ‘realloc’ was here make: *** [kps.o] Error 1 106 ~/Temp/metapost/metapost-1.002: