mac os x build anyone?

Hi Amaya,

Just tried to compile amaya 5.3 under Mac OS X 10.1.1 with their
(actually GNU's) compilers and the fink gtk-1.2, after configuring
with host "powerpc-apple-freebsd", and it failed due to some type
clashes with the libraries (transcript below).

Any advice?
--
Timothy F. Havel
MIT (NW14-2218)
150 Albany St.
Cambridge, MA 02139
617/253-8309 (-5405 FAX)
tfhavel@mit.edu

>[mrix0:amaya-src-5.3/Amaya/MacOSX] tfhavel% ../configure --with-gtk powerpc-apple-freebsd
>loading cache ./config.cache
>checking host system type... powerpc-apple-freebsd
>checking target system type... powerpc-apple-freebsd
>checking build system type... powerpc-apple-freebsd
>checking whether make sets ${MAKE}... yes
>checking for bison... bison -y
>checking for gcc... no
>checking for cc... cc
>checking whether the C compiler (cc  ) works... yes
>checking whether the C compiler (cc  ) is a cross-compiler... no
>checking whether we are using GNU C... yes
>checking whether cc accepts -g... yes
>checking how to run the C preprocessor... cc -E -traditional-cpp
>checking for flex... flex
>checking for yywrap in -lfl... no
>checking for mawk... no
>checking for gawk... no
>checking for nawk... no
>checking for awk... awk
>checking for a BSD compatible install... /usr/bin/install -c
>checking whether ln -s works... yes
>checking whether make sets ${MAKE}... (cached) yes
>checking for ranlib... ranlib
>checking for cp... /bin/cp
>checking for mv... /bin/mv
>checking for rm... /bin/rm
>checking for mkdir... /bin/mkdir
>checking for echo... /bin/echo
>checking for cat... /bin/cat
>checking for chmod... /bin/chmod
>checking for sed... /usr/bin/sed
>checking for ar... /usr/bin/ar
>checking for diff... /usr/bin/diff
>checking for socket in -lsocket... no
>checking for connect in -linet... no
>checking for t_accept in -lnsl... no
>checking for dlopen in -ldl... no
>checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
>checking for dnet_ntoa in -ldnet... no
>checking for dnet_ntoa in -ldnet_stub... no
>checking for gethostbyname... yes
>checking for connect... yes
>checking for remove... yes
>checking for shmat... yes
>checking for IceConnectionNumber in -lICE... yes
>\nfound libXp.a\n
>checking for dirent.h that defines DIR... yes
>checking for opendir in -ldir... no
>checking for ANSI C header files... yes
>checking for sys/wait.h that is POSIX.1 compatible... yes
>checking for stdio.h... yes
>checking for sys/types.h... yes
>checking for types.h... no
>checking for sys/unistd.h... yes
>checking for unistd.h... yes
>checking for sys/fcntl.h... yes
>checking for fcntl.h... yes
>checking for sys/limits.h... no
>checking for limits.h... yes
>checking for sys/stat.h... yes
>checking for stat.h... no
>checking for sys/file.h... yes
>checking for sys/ioctl.h... yes
>checking for sys/time.h... yes
>checking for time.h... yes
>checking for sys/systeminfo.h... no
>checking for sys/string.h... no
>checking for strings.h... yes
>checking for sys/syslog.h... yes
>checking for syslog.h... yes
>checking for sys/socket.h... yes
>checking for socket.h... no
>checking for appkit/appkit.h... yes
>checking for appkit.h... no
>checking for apppkit/apppkit.h... no
>checking for apppkit.h... no
>checking for netinet/in.h... yes
>checking for in.h... no
>checking for dn.h... no
>checking for sys/ipc.h... yes
>checking for net/errno.h... no
>checking for sys/errno.h... yes
>checking for errno.h... yes
>checking for pwd.h... yes
>checking for grp.h... yes
>checking for arpa/inet.h... yes
>checking for inet.h... no
>checking for netdb.h... yes
>checking for manifest.h... no
>checking for bsdtypes.h... no
>checking for stdefs.h... no
>checking for bsdtime.h... no
>checking for sys/select.h... yes
>checking for select.h... no
>checking for dnetdb.h... no
>checking for libc.h... yes
>checking for stdlib.h... yes
>checking for malloc.h... no
>checking for memory.h... yes
>checking for unixlib.h... no
>checking for ctype.h... yes
>checking for cursesX.h... no
>checking for curses.h... yes
>checking for sys/resource.h... yes
>checking for resource.h... no
>checking for dirent.h that defines DIR... (cached) yes
>checking for opendir in -ldir... (cached) no
>checking for dir.h... no
>checking for direct.h... no
>checking for ANSI C header files... (cached) yes
>checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
>checking whether time.h and sys/time.h may both be included... yes
>checking whether stat file-mode macros are broken... no
>checking for working const... yes
>checking for inline... inline
>checking for mode_t... yes
>checking for off_t... yes
>checking for size_t... yes
>checking whether time.h and sys/time.h may both be included... (cached) yes
>checking whether struct tm is in sys/time.h or time.h... time.h
>checking for tm_zone in struct tm... yes
>checking for uid_t in sys/types.h... yes
>checking for working alloca.h... no
>checking for alloca... yes
>checking type of array argument to getgroups... gid_t
>checking whether cc needs -traditional... no
>checking for 8-bit clean memcmp... yes
>checking for unistd.h... (cached) yes
>checking for getpagesize... yes
>checking for working mmap... no
>checking return type of signal handlers... void
>checking for vprintf... yes
>checking for getcwd... yes
>checking for gethostname... yes
>checking for gettimeofday... yes
>checking for getwd... yes
>checking for mkdir... yes
>checking for mktime... yes
>checking for putenv... yes
>checking for select... yes
>checking for socket... yes
>checking for strdup... yes
>checking for strerror... yes
>checking for strftime... yes
>checking for strstr... yes
>checking for strtod... yes
>checking for strtol... yes
>checking for uname... yes
>checking for lstat... yes
>checking for strcasecmp... yes
>checking for strncasecmp... yes
>checking for strchr... yes
>checking for memcpy... yes
>updating cache ./config.cache
>creating ./config.status
>creating Makefile
>creating Options.orig
>creating tools/Makefile
>creating libjpeg/Makefile
>creating libpng/Makefile
>creating libpng/zlib/Makefile
>creating tools/mkdep/Makefile
>creating tools/cextract-1.7/Makefile
>creating thotlib/Makefile
>creating thotlib/include/Makefile
>creating batch/Makefile
>creating tablelib/Makefile
>creating amaya/Makefile
>creating pluginlib/Makefile
>creating annotlib/Makefile
>creating config.h
>Amaya configured with libWWW
>Amaya configured with SVG support
>Amaya configured with Annotations support
>Amaya configured with Annotation threads support
>Amaya configured with generic XML suppport
>Amaya configured with GTK
>Now type "make all" (GNU make preferably) to build the binaries
>[mrix0:amaya-src-5.3/Amaya/MacOSX] tfhavel% make all
>Makefile:11: Options: No such file or directory
>/bin/cp Options.orig Options
>cc -O -I../../ -c ../../../tools/mkdep/mkdep.c -o mkdep.o
>cc  -o mkdep mkdep.o
>make[2]: Nothing to be done for `all'.
>Makefile:41: .depends: No such file or directory
>../../tools/mkdep/mkdep -relative -vpath ../../../tools/cextract-1.7  ../../../tools/cextract-1.7/*.c  > .depends
>cc '-DCPP="'"cc -E -traditional-cpp -x c"'"' -O -c ../../../tools/cextract-1.7/parse.c -o parse.o
>cc '-DCPP="'"cc -E -traditional-cpp -x c"'"' -O -c ../../../tools/cextract-1.7/main.c -o main.o
>cc '-DCPP="'"cc -E -traditional-cpp -x c"'"' -O -c ../../../tools/cextract-1.7/io.c -o io.o
>cc  -o ../../bin/cextract parse.o main.o io.o -lm
>Makefile:65: .depends: No such file or directory
>../tools/mkdep/mkdep -relative -vpath ../../thotlib -DHAVE_CONFIG_H -I.. -I../../amaya/xpm -I../../tablelib/f -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg -I../../libpng -I../../libpng/zlib  -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include ../../thotlib/*/*.c  > .depends
>cc -O2 -D_GTK  -DHAVE_CONFIG_H -I.. -I../../amaya/xpm -I../../tablelib/f -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg -I../../libpng -I../../libpng/zlib  -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include -c ../../thotlib/base/fileaccess.c -o base/fileaccess.o
>../../thotlib/include/thot_gui.h:171: header file 'gdk_imlib.h' not found
>cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
>make[1]: *** [base/fileaccess.o] Error 1
>Makefile:35: .depends: No such file or directory
>../tools/mkdep/mkdep -relative -vpath ../../tablelib -DHAVE_CONFIG_H -I.. -I../../tablelib/f -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg -I../../libpng -I../../libpng/zlib  -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include ../../tablelib/*.c  > .depends
>cc -O2 -D_GTK  -DHAVE_CONFIG_H -I.. -I../../tablelib/f -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg -I../../libpng -I../../libpng/zlib  -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include -c ../../tablelib/table.c -o table.o
>../../thotlib/include/thot_gui.h:171: header file 'gdk_imlib.h' not found
>cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
>make[1]: *** [table.o] Error 1
>Makefile:204: .depends: No such file or directory
>../tools/mkdep/mkdep -relative -vpath ../../batch -DHAVE_CONFIG_H -I.. -I../../batch/f -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg -I../../libpng -I../../libpng/zlib  -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include ../../batch/*.c  > .depends
>cc '-DCPP="'"cc -E -traditional-cpp -x c"'"' -O2 -DHAVE_CONFIG_H -I.. -I../../batch/f -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg -I../../libpng -I../../libpng/zlib  -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include -c ../../batch/../thotlib/base/compilmsg.c -o ../thotlib/base/compilmsg.o
>In file included from /usr/X11R6/include/X11/Xlib.h:51,
>                 from /usr/X11R6/include/X11/Intrinsic.h:52,
>                 from /usr/X11R6/include/X11/IntrinsicP.h:49,
>                 from ../../thotlib/include/thot_gui.h:116,
>                 from ../../thotlib/include/interface.h:11,
>                 from ../../thotlib/include/appstruct.h:14,
>                 from ../../thotlib/internals/h/typestr.h:30,
>                 from ../../thotlib/internals/h/typeint.h:19,
>                 from ../../thotlib/internals/h/typemedia.h:18,
>                 from ../../batch/../thotlib/base/compilmsg.c:22:
>/usr/X11R6/include/X11/X.h:104: conflicting types for `Cursor'
>/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:271: previous declaration of `Cursor'
>In file included from /usr/X11R6/include/X11/IntrinsicP.h:49,
>                 from ../../thotlib/include/thot_gui.h:116,
>                 from ../../thotlib/include/interface.h:11,
>                 from ../../thotlib/include/appstruct.h:14,
>                 from ../../thotlib/internals/h/typestr.h:30,
>                 from ../../thotlib/internals/h/typeint.h:19,
>                 from ../../thotlib/internals/h/typemedia.h:18,
>                 from ../../batch/../thotlib/base/compilmsg.c:22:
>/usr/X11R6/include/X11/Intrinsic.h:168: conflicting types for `Boolean'
>/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:278: previous declaration of `Boolean'
>In file included from /usr/X11R6/include/Xm/MwmUtil.h:45,
>                 from ../../thotlib/include/thot_gui.h:127,
>                 from ../../thotlib/include/interface.h:11,
>                 from ../../thotlib/include/appstruct.h:14,
>                 from ../../thotlib/internals/h/typestr.h:30,
>                 from ../../thotlib/internals/h/typeint.h:19,
>                 from ../../thotlib/internals/h/typemedia.h:18,
>                 from ../../batch/../thotlib/base/compilmsg.c:22:
>/usr/X11R6/include/X11/Xmd.h:153: conflicting types for `BOOL'
>/usr/include/objc/objc.h:42: previous declaration of `BOOL'
>In file included from ../../batch/../thotlib/base/compilmsg.c:22:
>../../thotlib/internals/h/typemedia.h:124: `Line' redeclared as different kind of symbol
>/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:2186: previous declaration of `Line'
>In file included from ../../batch/../thotlib/base/compilmsg.c:25:
>../../thotlib/internals/var/compil_tv.h:14: `STR' redeclared as different kind of symbol
>/usr/include/objc/objc.h:58: previous declaration of `STR'
>make[1]: *** [../thotlib/base/compilmsg.o] Error 1
>Makefile:50: .depends: No such file or directory
>../tools/mkdep/mkdep -relative -vpath ../../annotlib -DHAVE_CONFIG_H -DANNOTATIONS -I.. -I../amaya  -I../../annotlib/f -I../../amaya -I../../amaya/f -I../libwww -I../../../libwww/Library/src -I../../../libwww/modules/expat/xmlparse -I../../../libwww/modules/expat/xmltok -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg -I../../libpng -I../../libpng/zlib  -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include ../../annotlib/*.c  > .depends
>zsh: no such file or directory: /usr/local/src/amaya-src-5.3/Amaya/MacOSX/annotlib/../bin/str
>make[1]: *** [Annot.STR] Error 1
>Makefile:64: .depends: No such file or directory
>../tools/mkdep/mkdep -relative -vpath ../../amaya -DHAVE_CONFIG_H -I. -I.. -I../../thotlib/include -I../../amaya -I../../amaya/f -I../../amaya/xpm -I../../libpng/zlib  -I../libwww -I../../../libwww/Library/src -I../..../libwww/modules/md5 -I../..../libwww/modules/expat/xmlparse -I../..../libwww/modules/expat/xmltok   -I../../annotlib -I../../annotlib/f    -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include ../../amaya/*.c  > .depends
>cc '-DCPP="'"cc -E -traditional-cpp -x c"'"' -O2 -DHAVE_CONFIG_H -I.. -I../../batch/f -I../../thotlib/include -I../../thotlib/internals/var -I../../thotlib/internals/h -I../../thotlib/internals/f -I../../libjpeg -I../../libpng -I../../libpng/zlib  -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include  -I/usr/X11R6/include -c ../../batch/../thotlib/base/compilmsg.c -o ../thotlib/base/compilmsg.o
>In file included from /usr/X11R6/include/X11/Xlib.h:51,
>                 from /usr/X11R6/include/X11/Intrinsic.h:52,
>                 from /usr/X11R6/include/X11/IntrinsicP.h:49,
>                 from ../../thotlib/include/thot_gui.h:116,
>                 from ../../thotlib/include/interface.h:11,
>                 from ../../thotlib/include/appstruct.h:14,
>                 from ../../thotlib/internals/h/typestr.h:30,
>                 from ../../thotlib/internals/h/typeint.h:19,
>                 from ../../thotlib/internals/h/typemedia.h:18,
>                 from ../../batch/../thotlib/base/compilmsg.c:22:
>/usr/X11R6/include/X11/X.h:104: conflicting types for `Cursor'
>/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:271: previous declaration of `Cursor'
>In file included from /usr/X11R6/include/X11/IntrinsicP.h:49,
>                 from ../../thotlib/include/thot_gui.h:116,
>                 from ../../thotlib/include/interface.h:11,
>                 from ../../thotlib/include/appstruct.h:14,
>                 from ../../thotlib/internals/h/typestr.h:30,
>                 from ../../thotlib/internals/h/typeint.h:19,
>                 from ../../thotlib/internals/h/typemedia.h:18,
>                 from ../../batch/../thotlib/base/compilmsg.c:22:
>/usr/X11R6/include/X11/Intrinsic.h:168: conflicting types for `Boolean'
>/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:278: previous declaration of `Boolean'
>In file included from /usr/X11R6/include/Xm/MwmUtil.h:45,
>                 from ../../thotlib/include/thot_gui.h:127,
>                 from ../../thotlib/include/interface.h:11,
>                 from ../../thotlib/include/appstruct.h:14,
>                 from ../../thotlib/internals/h/typestr.h:30,
>                 from ../../thotlib/internals/h/typeint.h:19,
>                 from ../../thotlib/internals/h/typemedia.h:18,
>                 from ../../batch/../thotlib/base/compilmsg.c:22:
>/usr/X11R6/include/X11/Xmd.h:153: conflicting types for `BOOL'
>/usr/include/objc/objc.h:42: previous declaration of `BOOL'
>In file included from ../../batch/../thotlib/base/compilmsg.c:22:
>../../thotlib/internals/h/typemedia.h:124: `Line' redeclared as different kind of symbol
>/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:2186: previous declaration of `Line'
>In file included from ../../batch/../thotlib/base/compilmsg.c:25:
>../../thotlib/internals/var/compil_tv.h:14: `STR' redeclared as different kind of symbol
>/usr/include/objc/objc.h:58: previous declaration of `STR'
>make[2]: *** [../thotlib/base/compilmsg.o] Error 1
>make[1]: *** [../bin/str] Error 2
>[mrix0:amaya-src-5.3/Amaya/MacOSX] tfhavel% vi Op
>Options       Options.orig 
>[mrix0:amaya-src-5.3/Amaya/MacOSX] tfhavel% vi Options
>
>AR      = /usr/bin/ar rc
>RANLIB  = ranlib
>DIFF    = /usr/bin/diff
>INSTALL = /usr/bin/install -c
>
>INSTALL_DATA= $(INSTALL) -m 444
>INSTALL_BIN= $(INSTALL) -m 755
>
>CEXTRACT_FLAGS=+O
>
>THOT_OPTIONS=-D_GTK
>AMAYA_OPTIONS=  -D_GTK -DXML_GENERIC  -DANNOT_ON_ANNOT
>PLUGIN_OPTIONS=
>AMAYA_ANNOT_OPTIONS=-DANNOT_ON_ANNOT
>
>IMGLIBS=-ljpeg -lpng -lz
>EXTRA_LIBS=
>
>MOTIF_INCLUDES=
>MOTIF_LIBRARIES=
>
>EXPAT_INCLUDES=
>EXPAT_LIBRARIES=
>EXPAT_OPTIONS=-DXML_DTD -DXML_NS
>
>GTK_INCLUDES=-I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include
> -I/usr/X11R6/include
>GTK_LIBRARIES=-L/sw/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -ldl -lint
>l -lXext -lX11 -lm -lgdk_imlib -ltiff -lgif
>
>X_FLAGS=$(MOTIF_INCLUDES) $(GTK_INCLUDES)  -I/usr/X11R6/include
>X_EXTRA_LIBS=
>X_PRE_LIBS=-lXp  -lSM -lICE
>X_LIBS= -L/usr/X11R6/lib
>
>LIBWWW=libwww
>

Received on Monday, 7 January 2002 03:32:06 UTC