Building Python 2.5.0 on AIX 5.3 - Undefined symbol: .__floor

2007-01-10 Thread Justin Johnson
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=... 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
c

Re: Building Python 2.5.0 on AIX 5.3 - Undefined symbol: .__floor

2007-01-10 Thread Justin Johnson
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=... 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 presenc