From: Nigel P. <ni...@in...> - 2006-04-26 00:01:14
|
Trying to compile on OS X Intel, but I am getting lots of missing symbols from cpuemu.cpp: % cd src/MacOSX % sh 1_prepare_files.sh ... Basilisk II configuration summary: Multiple emulator windows .............. : no Enable video on SEGV signals ........... : yes mon debugger support ................... : no Running m68k code natively ............. : no Use JIT compiler ....................... : no JIT debug mode ......................... : no Floating-Point emulation core .......... : IEEE fpu core Assembly optimizations ................. : i386 Addressing mode ........................ : direct Bad memory access recovery type ........ : mach Mac OS X development environment ....... : xcodebuild Configuration done. Now type "make" (or "make ide"). % make gcc -I../include -I. -I../uae_cpu -DHAVE_CONFIG_H -DOS_darwin -DBSD_COMP -DDIRECT_ADDRESSING -DUNALIGNED_PROFITABLE -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DSAHF_SETO_PROFITABLE -DFPU_IEEE -D_REENTRANT -g -O2 -fomit-frame-pointer -mdynamic-no-pic ../uae_cpu/build68k.c -o build/build68k build/build68k < ../uae_cpu/table68k > cpudefs.cpp g++ -I../include -I. -I../uae_cpu -DHAVE_CONFIG_H -DOS_darwin -DBSD_COMP -DDIRECT_ADDRESSING -DUNALIGNED_PROFITABLE -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DSAHF_SETO_PROFITABLE -DFPU_IEEE -D_REENTRANT -g -O2 -fomit-frame-pointer -mdynamic-no-pic -g -O2 -fpermissive -fomit-frame-pointer -fno-exceptions -fno-merge-constants -fno-gcse-sm -mdynamic-no-pic cpudefs. cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp -o build/gencpu build/gencpu ... /usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -DAQUA -DHAVE_CONFIG_H -DHAVE_SLIRP -D_REENTRANT -DDATADIR= -fmessage-length=0 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-invalid-offsetof -I/Users/nigel/BasiliskII/src/MacOSX/build/BasiliskII.build/Deployment/ BasiliskII.build/BasiliskII.hmap -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -mdynamic-no-pic -F/Users/nigel/BasiliskII/src/MacOSX/build/Deployment -F/System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks -I/Users/nigel/BasiliskII/src/MacOSX/build/Deployment/include -I../include -I../uae_cpu -I../Unix -I../slirp -I/Users/nigel/BasiliskII/src/MacOSX/build/BasiliskII.build/Deployment/ BasiliskII.build/DerivedSources -c /Users/nigel/BasiliskII/src/MacOSX/cpuemu1.cpp -o /Users/nigel/BasiliskII/src/MacOSX/build/BasiliskII.build/Deployment/ BasiliskII.build/Objects-normal/i386/cpuemu1.o In file included from /Users/nigel/BasiliskII/src/MacOSX/sysdeps.h:31, from /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp:1, from /Users/nigel/BasiliskII/src/MacOSX/cpuemu1.cpp:2: /Users/nigel/BasiliskII/src/MacOSX/config.h:8:1: warning: "DATADIR" redefined <command line>:1:1: warning: this is the location of the previous definition /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp: In function 'void op_0_0_ff(uint32)': /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp:41: error: 'optflag_testb' was not declared in this scope /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp: In function 'void op_10_0_ff(uint32)': /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp:58: error: 'optflag_testb' was not declared in this scope /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp: In function 'void op_18_0_ff(uint32)': /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp:76: error: 'optflag_testb' was not declared in this scope /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp: In function 'void op_20_0_ff(uint32)': /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp:94: error: 'optflag_testb' was not declared in this scope /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp: In function 'void op_28_0_ff(uint32)': /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp:111: error: 'optflag_testb' was not declared in this scope ... /Users/nigel/BasiliskII/src/MacOSX/cpuemu.cpp:36630: error: 'optflag_testl' was not declared in this scope ../uae_cpu/fpu/core.h: At global scope: ../uae_cpu/fpu/core.h:230: warning: 'uint32 get_fpcr()' declared 'static' but never defined ../uae_cpu/fpu/core.h:231: warning: 'void set_fpcr(uint32)' declared 'static' but never defined ../uae_cpu/fpu/core.h:234: warning: 'uint32 get_fpsr()' declared 'static' but never defined ../uae_cpu/fpu/core.h:235: warning: 'void set_fpsr(uint32)' declared 'static' but never defined ../uae_cpu/fpu/core.h:238: warning: 'uint32 get_fpiar()' declared 'static' but never defined ../uae_cpu/fpu/core.h:239: warning: 'void set_fpiar(uint32)' declared 'static' but never defined so, I try a normal X86 Linux build to work out what is meant to happen with gencpu/cpuemu.cpp, but get autoconf/configure errors: % cd src/Unix % ./autogen.sh + Running aclocal: /usr/share/aclocal/progsreiserfs.m4:13: warning: underquoted definition of AC_CHECK_LIBREISERFS run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal /usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES /usr/share/aclocal/lirc.m4:15: warning: underquoted definition of AC_PATH_LIRC /usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME /usr/share/aclocal/libcdaudio.m4:10: warning: underquoted definition of AM_PATH_LIBCDAUDIO /usr/share/aclocal/libFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBFLAC /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB /usr/share/aclocal/aalib.m4:12: warning: underquoted definition of AM_PATH_AALIB aclocal:configure.ac:255: warning: macro `AM_PATH_GTK_2_0' not found in library aclocal:configure.ac:276: warning: macro `AM_PATH_GTK' not found in library done. + Running autoheader: done. + Running autoconf: configure.ac:1: error: possibly undefined macro: dnl If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:120: error: possibly undefined macro: AC_DEFINE configure.ac:132: error: possibly undefined macro: AC_MSG_WARN configure.ac:255: error: possibly undefined macro: AM_PATH_GTK_2_0 configure.ac:276: error: possibly undefined macro: AM_PATH_GTK configure.ac:284: error: possibly undefined macro: AM_GNU_GETTEXT done. + Running 'configure ': ... checking for pthread_mutexattr_setprotocol... no checking for pthread_mutexattr_settype... yes checking for pthread_mutexattr_setpshared... yes checking for sem_init... yes checking for XF86DGAQueryExtension in -lXxf86dga... no configure: WARNING: Could not find XFree86 DGA extension, ignoring --enable-xf86-dga. checking for XF86VidModeQueryExtension in -lXxf86vm... no configure: WARNING: Could not find XFree86 VidMode extension, ignoring --enable-xf86-vidmode. ./configure: line 6700: syntax error near unexpected token `1.3.15,' ./configure: line 6700: ` AM_PATH_GTK_2_0(1.3.15,' Am I missing something obvious here? Or is Linux autoconf broken? -- Nigel Pearson, ni...@in... | "Peacemaking is our profession" Telstra Net. Eng., Sydney, Australia | Motto of Burpelson Airforce Base Office: 9202 3900 Fax: ???? ???? | Commanded by Gen. Jack D. Ripper Mobile: 0408 664435 Home: 9792 6998 | Dr Strangelove |