It looks like I just need to upgrade my compiler version. See http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13876484&cat=72&thread=124105&treeDisplayType=threadmode1&forum=905#13876484 for more information.
Justin Johnson wrote: > Hello, > > I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler > (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run > configure and make, but makes fails with undefined symbols. See the > output from configure and make below. > > svnadm /svn/build/python-2.5.0>env CC=cc CXX=xlC ./configure > --prefix=$base_dir \ > > --disable-ipv6 \ > > --enable-shared=yes \ > > --enable-static=no > checking MACHDEP... aix5 > checking EXTRAPLATDIR... > checking for --without-gcc... > checking for gcc... cc_r > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... no > checking whether cc_r accepts -g... yes > checking for cc_r option to accept ANSI C... none needed > checking for --with-cxx-main=<compiler>... no > checking how to run the C preprocessor... cc_r -E > checking for egrep... grep -E > checking for AIX... yes > checking for --with-suffix... > checking for case-insensitive build directory... no > checking LIBRARY... libpython$(VERSION).a > checking LINKCC... $(srcdir)/Modules/makexp_aix Modules/python.exp . > $(LIBRARY); $(PURIFY) $(MAINCC) > checking for --enable-shared... yes > checking for --enable-profiling... > checking LDLIBRARY... libpython$(VERSION).a > checking for ranlib... ranlib > checking for ar... ar > checking for svnversion... found > checking for a BSD-compatible install... ./install-sh -c > checking for --with-pydebug... no > checking whether cc_r accepts -OPT:Olimit=0... no > checking whether cc_r accepts -Olimit 1500... no > checking whether pthreads are available without options... yes > checking whether xlC also accepts flags for thread support... no > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking asm/types.h usability... no > checking asm/types.h presence... no > checking for asm/types.h... no > checking conio.h usability... no > checking conio.h presence... no > checking for conio.h... no > checking curses.h usability... yes > checking curses.h presence... yes > checking for curses.h... yes > checking direct.h usability... no > checking direct.h presence... no > checking for direct.h... no > checking dlfcn.h usability... yes > checking dlfcn.h presence... yes > checking for dlfcn.h... yes > checking errno.h usability... yes > checking errno.h presence... yes > checking for errno.h... yes > checking fcntl.h usability... yes > checking fcntl.h presence... yes > checking for fcntl.h... yes > checking grp.h usability... yes > checking grp.h presence... yes > checking for grp.h... yes > checking shadow.h usability... no > checking shadow.h presence... no > checking for shadow.h... no > checking io.h usability... no > checking io.h presence... no > checking for io.h... no > checking langinfo.h usability... yes > checking langinfo.h presence... yes > checking for langinfo.h... yes > checking libintl.h usability... no > checking libintl.h presence... no > checking for libintl.h... no > checking ncurses.h usability... no > checking ncurses.h presence... no > checking for ncurses.h... no > checking poll.h usability... yes > checking poll.h presence... yes > checking for poll.h... yes > checking process.h usability... no > checking process.h presence... no > checking for process.h... no > checking pthread.h usability... yes > checking pthread.h presence... yes > checking for pthread.h... yes > checking signal.h usability... yes > checking signal.h presence... yes > checking for signal.h... yes > checking stropts.h usability... yes > checking stropts.h presence... yes > checking for stropts.h... yes > checking termios.h usability... yes > checking termios.h presence... yes > checking for termios.h... yes > checking thread.h usability... yes > checking thread.h presence... yes > checking for thread.h... yes > checking for unistd.h... (cached) yes > checking utime.h usability... yes > checking utime.h presence... yes > checking for utime.h... yes > checking sys/audioio.h usability... no > checking sys/audioio.h presence... no > checking for sys/audioio.h... no > checking sys/bsdtty.h usability... no > checking sys/bsdtty.h presence... no > checking for sys/bsdtty.h... no > checking sys/file.h usability... yes > checking sys/file.h presence... yes > checking for sys/file.h... yes > checking sys/loadavg.h usability... no > checking sys/loadavg.h presence... no > checking for sys/loadavg.h... no > checking sys/lock.h usability... yes > checking sys/lock.h presence... yes > checking for sys/lock.h... yes > checking sys/mkdev.h usability... no > checking sys/mkdev.h presence... no > checking for sys/mkdev.h... no > checking sys/modem.h usability... no > checking sys/modem.h presence... no > checking for sys/modem.h... no > checking sys/param.h usability... yes > checking sys/param.h presence... yes > checking for sys/param.h... yes > checking sys/poll.h usability... yes > checking sys/poll.h presence... yes > checking for sys/poll.h... yes > checking sys/select.h usability... yes > checking sys/select.h presence... yes > checking for sys/select.h... yes > checking sys/socket.h usability... yes > checking sys/socket.h presence... yes > checking for sys/socket.h... yes > checking sys/statvfs.h usability... yes > checking sys/statvfs.h presence... yes > checking for sys/statvfs.h... yes > checking for sys/stat.h... (cached) yes > checking sys/time.h usability... yes > checking sys/time.h presence... yes > checking for sys/time.h... yes > checking sys/times.h usability... yes > checking sys/times.h presence... yes > checking for sys/times.h... yes > checking for sys/types.h... (cached) yes > checking sys/un.h usability... yes > checking sys/un.h presence... yes > checking for sys/un.h... yes > checking sys/utsname.h usability... yes > checking sys/utsname.h presence... yes > checking for sys/utsname.h... yes > checking sys/wait.h usability... yes > checking sys/wait.h presence... yes > checking for sys/wait.h... yes > checking pty.h usability... no > checking pty.h presence... no > checking for pty.h... no > checking libutil.h usability... no > checking libutil.h presence... no > checking for libutil.h... no > checking sys/resource.h usability... yes > checking sys/resource.h presence... yes > checking for sys/resource.h... yes > checking netpacket/packet.h usability... no > checking netpacket/packet.h presence... no > checking for netpacket/packet.h... no > checking sysexits.h usability... yes > checking sysexits.h presence... yes > checking for sysexits.h... yes > checking bluetooth.h usability... no > checking bluetooth.h presence... no > checking for bluetooth.h... no > checking bluetooth/bluetooth.h usability... no > checking bluetooth/bluetooth.h presence... no > checking for bluetooth/bluetooth.h... no > checking for dirent.h that defines DIR... yes > checking for library containing opendir... none required > checking whether sys/types.h defines makedev... no > checking for sys/mkdev.h... (cached) no > checking sys/sysmacros.h usability... yes > checking sys/sysmacros.h presence... yes > checking for sys/sysmacros.h... yes > checking for term.h... yes > checking for linux/netlink.h... no > checking for clock_t in time.h... yes > checking for makedev... no > checking Solaris LFS bug... no > checking for mode_t... yes > checking for off_t... yes > checking for pid_t... yes > checking return type of signal handlers... void > checking for size_t... yes > checking for uid_t in sys/types.h... yes > checking for ssize_t... yes > checking for int... yes > checking size of int... 4 > checking for long... yes > checking size of long... 4 > checking for void *... yes > checking size of void *... 4 > checking for short... yes > checking size of short... 2 > checking for float... yes > checking size of float... 4 > checking for double... yes > checking size of double... 8 > checking for fpos_t... yes > checking size of fpos_t... 4 > checking for size_t... (cached) yes > checking size of size_t... 4 > checking for long long support... yes > checking for long long... yes > checking size of long long... 8 > checking for uintptr_t support... no > checking size of off_t... 4 > checking whether to enable large file support... no > checking size of time_t... 4 > checking for pthread_t... yes > checking size of pthread_t... 4 > checking for --enable-toolbox-glue... no > checking for --enable-framework... no > checking for dyld... no > checking SO... .so > checking LDSHARED... $(BINLIBDEST)/config/ld_so_aix $(CC) > -bI:$(BINLIBDEST)/config/python.exp > checking CCSHARED... > checking LINKFORSHARED... -Wl,-bE:Modules/python.exp -lld > checking CFLAGSFORSHARED... > checking SHLIBS... $(LIBS) > checking for dlopen in -ldl... yes > checking for shl_load in -ldld... no > checking for library containing sem_init... none required > checking for textdomain in -lintl... yes > checking for genuine AIX C++ extensions support... no > checking for t_open in -lnsl... no > checking for socket in -lsocket... no > checking for --with-libs... no > checking for --with-system-ffi... no > checking for --with-signal-module... yes > checking for --with-dec-threads... no > checking for --with-threads... yes > checking if PTHREAD_SCOPE_SYSTEM is supported... yes > checking for pthread_sigmask... yes > checking if --enable-ipv6 is specified... no > checking for --with-doc-strings... yes > checking for --with-tsc... no > checking for --with-pymalloc... yes > checking for --with-wctype-functions... no > checking for dlopen... yes > checking DYNLOADFILE... dynload_shlib.o > checking MACHDEP_OBJS... MACHDEP_OBJS > checking for alarm... yes > checking for bind_textdomain_codeset... no > checking for chown... yes > checking for clock... yes > checking for confstr... yes > checking for ctermid... yes > checking for execv... yes > checking for fork... yes > checking for fpathconf... yes > checking for ftime... yes > checking for ftruncate... yes > checking for gai_strerror... yes > checking for getgroups... yes > checking for getlogin... yes > checking for getloadavg... no > checking for getpeername... yes > checking for getpgid... yes > checking for getpid... yes > checking for getpriority... yes > checking for getpwent... yes > checking for getspnam... no > checking for getspent... no > checking for getsid... yes > checking for getwd... yes > checking for kill... yes > checking for killpg... yes > checking for lchown... yes > checking for lstat... yes > checking for mkfifo... yes > checking for mknod... yes > checking for mktime... yes > checking for mremap... no > checking for nice... yes > checking for pathconf... yes > checking for pause... yes > checking for plock... yes > checking for poll... yes > checking for pthread_init... yes > checking for putenv... yes > checking for readlink... yes > checking for realpath... yes > checking for select... yes > checking for setegid... yes > checking for seteuid... yes > checking for setgid... yes > checking for setlocale... yes > checking for setregid... yes > checking for setreuid... yes > checking for setsid... yes > checking for setpgid... yes > checking for setpgrp... yes > checking for setuid... yes > checking for setvbuf... yes > checking for snprintf... yes > checking for sigaction... yes > checking for siginterrupt... yes > checking for sigrelse... yes > checking for strftime... yes > checking for sysconf... yes > checking for tcgetpgrp... yes > checking for tcsetpgrp... yes > checking for tempnam... yes > checking for timegm... no > checking for times... yes > checking for tmpfile... yes > checking for tmpnam... yes > checking for tmpnam_r... no > checking for truncate... yes > checking for uname... yes > checking for unsetenv... yes > checking for utimes... yes > checking for waitpid... yes > checking for wait3... yes > checking for wait4... yes > checking for wcscoll... yes > checking for _getpty... no > checking for chroot... yes > checking for link... yes > checking for symlink... yes > checking for fchdir... yes > checking for fsync... yes > checking for fdatasync... yes > checking for ctermid_r... no > checking for flock... no > checking for getpagesize... yes > checking for true... true > checking for inet_aton in -lc... yes > checking for inflateCopy in -lz... yes > checking for hstrerror... no > checking for inet_aton... yes > checking for inet_pton... yes > checking for setgroups... yes > checking for openpty... no > checking for openpty in -lutil... no > checking for openpty in -lbsd... no > checking for forkpty... no > checking for forkpty in -lutil... no > checking for forkpty in -lbsd... no > checking for fseek64... no > checking for fseeko... yes > checking for fstatvfs... yes > checking for ftell64... no > checking for ftello... yes > checking for statvfs... yes > checking for dup2... yes > checking for getcwd... yes > checking for strdup... yes > checking for strerror... yes > checking for memmove... yes > checking for getpgrp... yes > checking for setpgrp... (cached) yes > checking for gettimeofday... yes > checking for major... yes > checking for getaddrinfo... yes > checking getaddrinfo bug... buggy > checking for getnameinfo... yes > checking whether time.h and sys/time.h may both be included... yes > checking whether struct tm is in sys/time.h or time.h... time.h > checking for struct tm.tm_zone... no > checking for tzname... yes > checking for struct stat.st_rdev... yes > checking for struct stat.st_blksize... yes > checking for struct stat.st_flags... no > checking for struct stat.st_gen... yes > checking for struct stat.st_birthtime... no > checking for struct stat.st_blocks... yes > checking for time.h that defines altzone... no > checking whether sys/select.h and sys/time.h may both be included... > yes > checking for addrinfo... yes > checking for sockaddr_storage... yes > checking whether char is unsigned... yes > checking for an ANSI C-conforming const... yes > checking for working volatile... yes > checking for working signed char... yes > checking for prototypes... yes > checking for variable length prototypes and stdarg.h... yes > checking for socketpair... yes > checking if sockaddr has sa_len member... yes > checking whether va_list is an array... no > checking for gethostbyname_r... yes > checking gethostbyname_r with 6 args... no > checking gethostbyname_r with 5 args... no > checking gethostbyname_r with 3 args... yes > checking for __fpu_control... no > checking for __fpu_control in -lieee... no > checking for --with-fpectl... no > checking for --with-libm=STRING... default LIBM="-lm" > checking for --with-libc=STRING... default LIBC="" > checking for hypot... yes > checking wchar.h usability... yes > checking wchar.h presence... yes > checking for wchar.h... yes > checking for wchar_t... yes > checking size of wchar_t... 2 > checking for UCS-4 tcl... no > checking whether wchar_t is signed... no > checking what type to use for unicode... wchar_t > checking whether byte ordering is bigendian... yes > checking whether right shift extends the sign bit... yes > checking for getc_unlocked() and friends... yes > checking for readline in -lreadline... yes > checking for rl_callback_handler_install in -lreadline... yes > checking for rl_pre_input_hook in -lreadline... no > checking for rl_completion_matches in -lreadline... yes > checking for broken nice()... no > checking for broken poll()... no > checking for struct tm.tm_zone... (cached) no > checking for tzname... (cached) yes > checking for working tzset()... yes > checking for tv_nsec in struct stat... no > checking for tv_nsec2 in struct stat... no > checking whether mvwdelch is an expression... yes > checking whether WINDOW has _flags... yes > checking for is_term_resized... no > checking for resize_term... no > checking for resizeterm... no > checking for /dev/ptmx... no > checking for /dev/ptc... yes > checking for %zd printf() format support... yes > checking for socklen_t... yes > checking for build directories... done > configure: creating ./config.status > config.status: creating Makefile.pre > config.status: creating Modules/Setup.config > config.status: creating pyconfig.h > config.status: pyconfig.h is unchanged > creating Modules/Setup > creating Modules/Setup.local > creating Makefile > svnadm /svn/build/python-2.5.0>make > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Modules/python.o ./Modules/python.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Modules/_typesmodule.o Modules/_typesmodule.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/acceler.o Parser/acceler.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/grammar1.o Parser/grammar1.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/listnode.o Parser/listnode.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/node.o Parser/node.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/parser.o Parser/parser.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/parsetok.o Parser/parsetok.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/bitset.o Parser/bitset.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/metagrammar.o Parser/metagrammar.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/firstsets.o Parser/firstsets.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/grammar.o Parser/grammar.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/pgen.o Parser/pgen.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/myreadline.o Parser/myreadline.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/tokenizer.o Parser/tokenizer.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/abstract.o Objects/abstract.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/boolobject.o Objects/boolobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/bufferobject.o Objects/bufferobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/cellobject.o Objects/cellobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/classobject.o Objects/classobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/cobject.o Objects/cobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/codeobject.o Objects/codeobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/complexobject.o Objects/complexobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/descrobject.o Objects/descrobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/enumobject.o Objects/enumobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/exceptions.o Objects/exceptions.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/genobject.o Objects/genobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/fileobject.o Objects/fileobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/floatobject.o Objects/floatobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/frameobject.o Objects/frameobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/funcobject.o Objects/funcobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/intobject.o Objects/intobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/iterobject.o Objects/iterobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/listobject.o Objects/listobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/longobject.o Objects/longobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/dictobject.o Objects/dictobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/methodobject.o Objects/methodobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/moduleobject.o Objects/moduleobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/object.o Objects/object.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/obmalloc.o Objects/obmalloc.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/rangeobject.o Objects/rangeobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/setobject.o Objects/setobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/sliceobject.o Objects/sliceobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/stringobject.o Objects/stringobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/structseq.o Objects/structseq.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/tupleobject.o Objects/tupleobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/typeobject.o Objects/typeobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/weakrefobject.o Objects/weakrefobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/unicodeobject.o Objects/unicodeobject.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Objects/unicodectype.o Objects/unicodectype.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/Python-ast.o Python/Python-ast.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/asdl.o Python/asdl.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o Python/ast.o > Python/ast.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/bltinmodule.o Python/bltinmodule.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/ceval.o Python/ceval.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/mysnprintf.o Python/mysnprintf.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/tokenizer_pgen.o Parser/tokenizer_pgen.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/printgrammar.o Parser/printgrammar.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Parser/pgenmain.o Parser/pgenmain.c > cc_r -DNDEBUG -O Parser/acceler.o Parser/grammar1.o Parser/listnode.o > Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o > Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o > Objects/obmalloc.o Python/mysnprintf.o Parser/tokenizer_pgen.o > Parser/printgrammar.o Parser/pgenmain.o -ldl -o Parser/pgen > Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/compile.o Python/compile.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/codecs.o Python/codecs.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/errors.o Python/errors.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/frozen.o Python/frozen.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/frozenmain.o Python/frozenmain.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/future.o Python/future.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/getargs.o Python/getargs.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/getcompiler.o Python/getcompiler.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/getcopyright.o Python/getcopyright.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/getmtime.o Python/getmtime.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE > -DPLATFORM='"aix5"' -o Python/getplatform.o ./Python/getplatform.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/getversion.o Python/getversion.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/graminit.o Python/graminit.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/import.o Python/import.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -I. -o > Python/importdl.o ./Python/importdl.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/marshal.o Python/marshal.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/modsupport.o Python/modsupport.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/mystrtoul.o Python/mystrtoul.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/pyarena.o Python/pyarena.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/pyfpe.o Python/pyfpe.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/pystate.o Python/pystate.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/pythonrun.o Python/pythonrun.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/structmember.o Python/structmember.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/symtable.o Python/symtable.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/sysmodule.o Python/sysmodule.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/traceback.o Python/traceback.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/getopt.o Python/getopt.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/pystrtod.o Python/pystrtod.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/dynload_shlib.o Python/dynload_shlib.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Python/thread.o Python/thread.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Modules/config.o Modules/config.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE > -DPYTHONPATH='":plat-aix5:lib-tk"' \ > -DPREFIX='"/svn"' \ > -DEXEC_PREFIX='"/svn"' \ > -DVERSION='"2.5"' \ > -DVPATH='""' \ > -o Modules/getpath.o ./Modules/getpath.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Modules/main.o Modules/main.c > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o > Modules/gcmodule.o Modules/gcmodule.c > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/threadmodule.c -o Modules/threadmodule.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/signalmodule.c -o Modules/signalmodule.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/posixmodule.c -o Modules/posixmodule.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/errnomodule.c -o Modules/errnomodule.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/pwdmodule.c -o Modules/pwdmodule.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/_sre.c -o Modules/_sre.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/_codecsmodule.c -o Modules/_codecsmodule.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/zipimport.c -o Modules/zipimport.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/symtablemodule.c -o Modules/symtablemodule.o > cc_r -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c > ./Modules/xxsubtype.c -o Modules/xxsubtype.o > cc_r -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE > -DSVNVERSION=\"`LANG=C svnversion .`\" -o Modules/getbuildinfo.o > ./Modules/getbuildinfo.c > rm -f libpython2.5.a > ar cr libpython2.5.a Modules/getbuildinfo.o > ar cr libpython2.5.a Modules/_typesmodule.o > ar cr libpython2.5.a Parser/acceler.o Parser/grammar1.o > Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o > Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o > Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o > ar cr libpython2.5.a Objects/abstract.o Objects/boolobject.o > Objects/bufferobject.o Objects/cellobject.o Objects/classobject.o > Objects/cobject.o Objects/codeobject.o Objects/complexobject.o > Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o > Objects/genobject.o Objects/fileobject.o Objects/floatobject.o > Objects/frameobject.o Objects/funcobject.o Objects/intobject.o > Objects/iterobject.o Objects/listobject.o Objects/longobject.o > Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o > Objects/object.o Objects/obmalloc.o Objects/rangeobject.o > Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o > Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o > Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o > ar cr libpython2.5.a Python/Python-ast.o Python/asdl.o Python/ast.o > Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o > Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o > Python/getargs.o Python/getcompiler.o Python/getcopyright.o > Python/getmtime.o Python/getplatform.o Python/getversion.o > Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o > Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o > Python/pyarena.o Python/pyfpe.o Python/pystate.o Python/pythonrun.o > Python/structmember.o Python/symtable.o Python/sysmodule.o > Python/traceback.o Python/getopt.o Python/pystrtod.o > Python/dynload_shlib.o Python/thread.o > ar cr libpython2.5.a Modules/config.o Modules/getpath.o Modules/main.o > Modules/gcmodule.o > ar cr libpython2.5.a Modules/threadmodule.o Modules/signalmodule.o > Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o > Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o > Modules/symtablemodule.o Modules/xxsubtype.o > ranlib libpython2.5.a > ./Modules/makexp_aix Modules/python.exp . libpython2.5.a; cc_r > -Wl,-bE:Modules/python.exp -lld -o python \ > Modules/python.o \ > libpython2.5.a -ldl -lm > ld: 0711-317 ERROR: Undefined symbol: .__floor > ld: 0711-317 ERROR: Undefined symbol: .__ceil > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > make: *** [python] Error 8 > svnadm /svn/build/python-2.5.0> > > I ran the last line again adding the -bloadmap option. The results of > this are below. > > (ld): halt 4 > (ld): setfflag 4 > (ld): savename python > (ld): filelist 9 2 > (ld): i /lib/crt0.o > (ld): lib /usr/lib/libld.a > (ld): i Modules/python.o > (ld): i libpython2.5.a > (ld): lib /usr/lib/libdl.a > (ld): lib /usr/lib/libm.a > (ld): lib /usr/lib/libxlopt.a > (ld): lib /usr/lib/libpthreads.a > (ld): lib /usr/lib/threads/libc.a > LIBRARY: Shared object libdl.a[shr.o]: 4 symbols imported. > LIBRARY: Shared object libpthreads.a[shr_comm.o]: 173 symbols imported. > LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 152 symbols imported. > LIBRARY: Shared object libc.a[shr.o]: 2800 symbols imported. > LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported. > LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols imported. > LIBRARY: Shared object libc.a[aio.o]: 14 symbols imported. > LIBRARY: Shared object libc.a[pse.o]: 5 symbols imported. > LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported. > LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported. > FILELIST: Number of previously inserted files processed: 9 > (ld): exports Modules/python.exp > EXPORTS: Symbols exported: 1034 > (ld): resolve > RESOLVE: 5597 of 15450 symbols were kept. > (ld): addgl /usr/lib/glink.o > ADDGL: Glink code added for 178 symbols. > (ld): er full > ld: 0711-318 ERROR: Undefined symbols were found. > The following symbols are in error: > Symbol Inpndx TY CL Source-File(Object-File) OR > Import-File{Shared-object} > RLD: Address Section Rld-type > Referencing Symbol > > ---------------------------------------------------------------------------------------------- > .__floor [392] ER PR > Objects/floatobject.c(libpython2.5.a[floatobject.o]) > 00000b80 .text R_RBR [38] > <.float_pow> > 00000c28 .text R_RBR [38] > <.float_pow> > 00000ff4 .text R_RBR [42] > <.float_divmod> > .__floor [404] ER PR > Objects/complexobject.c(libpython2.5.a[complexobject.o]) > 0000179c .text R_RBR [42] > <.complex_divmod> > 00001a2c .text R_RBR [44] > <.complex_remainder> > .__floor [552] ER PR > Python/bltinmodule.c(libpython2.5.a[bltinmodule.o]) > 00000bec .text R_RBR [24] > <.builtin_round> > .__ceil [554] ER PR > Python/bltinmodule.c(libpython2.5.a[bltinmodule.o]) > 00000c2c .text R_RBR [24] > <.builtin_round> > ER: The return code is 8. > > I noticed the following in /usr/include/math.h, but am not sure how > this relates. > > #ifdef __IBMC__ > #if (__xlC__ >= 0x0600) /* VAC version 6 and above */ > #define floor(__x) __floor(__x) > #define ceil(__x) __ceil(__x) > #endif /* __xlC__ >= 0x0600 */ > #endif /* __IBMC__ */ > > Does anyone know what I am doing wrong here. Any help is appreciated. > > Justin -- http://mail.python.org/mailman/listinfo/python-list