Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

python 6 compilation failure on RHEL

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


ganeshreddyk at gmail

Aug 20, 2012, 6:31 AM

Post #1 of 16 (595 views)
Permalink
python 6 compilation failure on RHEL

Hi All,

We are trying python 2.6 installation on an RHEL PC ,

whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38
EST 2008 x86_64 x86_64 x86_64 GNU/Linux )


But, python compilation is not successfully done and showing a failure
log. Below is the capture of the same. Please see failure log shown
in the bottom of this mail.
How to solve the failure modules mentioned in the log ( bsddb185,
dl , imageop, sunaudiodev )

Please guide me to proceed further.

============== capture begin =================================
cd Python- 2.6.6

# ./configure
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for --with-cxx-main=<compiler>... no
checking for g++... g++
configure: WARNING:

By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.

checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for --with-suffix...
checking for case-insensitive build directory... no
checking LIBRARY... libpython$(VERSION).a
checking LINKCC... $(PURIFY) $(MAINCC)
checking for --enable-shared... no
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... /usr/bin/install -c
checking for --with-pydebug... no
checking whether gcc accepts -fno-strict-aliasing... yes
checking whether gcc accepts -OPT:Olimit=0... no
checking whether gcc accepts -Olimit 1500... no
checking whether gcc supports ParseTuple __format__... no
checking whether pthreads are available without options... no
checking whether gcc accepts -Kpthread... no
checking whether gcc accepts -Kthread... no
checking whether gcc accepts -pthread... yes
checking whether g++ also accepts flags for thread support... yes
checking for ANSI C header files... (cached) yes
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
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 ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.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... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
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 shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) 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... no
checking thread.h presence... no
checking for thread.h... no
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/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.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... no
checking sys/lock.h presence... no
checking for sys/lock.h... no
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/termio.h usability... no
checking sys/termio.h presence... no
checking for sys/termio.h... no
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... yes
checking pty.h presence... yes
checking for pty.h... yes
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... yes
checking netpacket/packet.h presence... yes
checking for netpacket/packet.h... yes
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... yes
checking bluetooth/bluetooth.h presence... yes
checking for bluetooth/bluetooth.h... yes
checking linux/tipc.h usability... yes
checking linux/tipc.h presence... yes
checking for linux/tipc.h... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether sys/types.h defines makedev... yes
checking for term.h... yes
checking for linux/netlink.h... yes
checking for clock_t in time.h... yes
checking for makedev... yes
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 size of int... 4
checking size of long... 8
checking size of void *... 8
checking size of short... 2
checking size of float... 4
checking size of double... 8
checking size of fpos_t... 16
checking size of size_t... 8
checking size of pid_t... 4
checking for long long support... yes
checking size of long long... 8
checking for long double support... yes
checking size of long double... 16
checking for _Bool support... yes
checking size of _Bool... 1
checking for uintptr_t... yes
checking size of uintptr_t... 8
checking size of off_t... 8
checking whether to enable large file support... no
checking size of time_t... 8
checking for pthread_t... yes
checking size of pthread_t... 8
checking for --enable-toolbox-glue... no
checking for --enable-framework... no
checking for dyld... no
checking SO... .so
checking LDSHARED... $(CC) -shared
checking CCSHARED... -fPIC
checking LINKFORSHARED... -Xlinker -export-dynamic
checking CFLAGSFORSHARED...
checking SHLIBS... $(LIBS)
checking for dlopen in -ldl... yes
checking for shl_load in -ldld... no
checking for library containing sem_init... -lpthread
checking for textdomain in -lintl... no
checking for t_open in -lnsl... no
checking for socket in -lsocket... no
checking for --with-libs... no
checking for --with-system-ffi...
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 OSX 10.5 SDK or later... 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 setitimer... yes
checking for getitimer... yes
checking for bind_textdomain_codeset... yes
checking for chown... yes
checking for clock... yes
checking for confstr... yes
checking for ctermid... yes
checking for execv... yes
checking for fchmod... yes
checking for fchown... 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... yes
checking for getpeername... yes
checking for getpgid... yes
checking for getpid... yes
checking for getpriority... yes
checking for getpwent... yes
checking for getspnam... yes
checking for getspent... yes
checking for getsid... yes
checking for getwd... yes
checking for kill... yes
checking for killpg... yes
checking for lchmod... no
checking for lchown... yes
checking for lstat... yes
checking for mkfifo... yes
checking for mknod... yes
checking for mktime... yes
checking for mremap... yes
checking for nice... yes
checking for pathconf... yes
checking for pause... yes
checking for plock... no
checking for poll... yes
checking for pthread_init... no
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... yes
checking for times... yes
checking for tmpfile... yes
checking for tmpnam... yes
checking for tmpnam_r... yes
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 epoll... yes
checking for kqueue... no
checking for ctermid_r... no
checking for flock... yes
checking for getpagesize... yes
checking for true... true
checking for inet_aton in -lc... yes
checking for chflags... no
checking for lchflags... no
checking for inflateCopy in -lz... yes
checking for hstrerror... yes
checking for inet_aton... yes
checking for inet_pton... yes
checking for setgroups... yes
checking for openpty... no
checking for openpty in -lutil... yes
checking for forkpty... yes
checking for memmove... yes
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 getpgrp... yes
checking for setpgrp... (cached) yes
checking for gettimeofday... yes
checking for major... yes
checking for getaddrinfo... yes
checking getaddrinfo bug... good
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... 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... no
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... no
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... no
checking whether va_list is an array... yes
checking for gethostbyname_r... yes
checking gethostbyname_r with 6 args... yes
checking for __fpu_control... yes
checking for --with-fpectl... no
checking for --with-libm=STRING... default LIBM="-lm"
checking for --with-libc=STRING... default LIBC=""
checking for x87-style double rounding... no
checking whether tanh preserves the sign of zero... yes
checking for acosh... yes
checking for asinh... yes
checking for atanh... yes
checking for copysign... yes
checking for expm1... yes
checking for finite... yes
checking for hypot... yes
checking for log1p... yes
checking whether isinf is declared... yes
checking whether isnan is declared... yes
checking whether isfinite is declared... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking size of wchar_t... 4
checking for UCS-4 tcl... no
checking whether wchar_t is signed... yes
checking what type to use for unicode... unsigned short
checking whether byte ordering is bigendian... no
checking whether right shift extends the sign bit... yes
checking for getc_unlocked() and friends... yes
checking how to link readline libs... -lreadline -lncursesw
checking for rl_callback_handler_install in -lreadline... yes
checking for rl_pre_input_hook in -lreadline... yes
checking for rl_completion_display_matches_hook in -lreadline... yes
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) yes
checking for working tzset()... yes
checking for tv_nsec in struct stat... yes
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... yes
checking for resize_term... yes
checking for resizeterm... yes
checking for /dev/ptmx... yes
checking for /dev/ptc... no
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
creating Modules/Setup
creating Modules/Setup.local
creating Makefile
[root [at] 117mc21 Python-2.6.6]# make
..
.
/Modules/_ctypes/malloc_closure.o
build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/prep_cif.o
build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/ffi64.o
build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/unix64.o
build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/ffi.o
build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/sysv.o
-L/usr/local/lib -o build/lib.linux-x86_64-2.6/_ctypes.so

Failed to find the necessary bits to build these modules:
bsddb185 dl imageop
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for
the module's name.

running build_scripts
creating build/scripts-2.6
copying and adjusting /home/b38514/Python-2.6.6/Tools/scripts/pydoc ->
build/scripts-2.6
copying and adjusting /home/b38514/Python-2.6.6/Tools/scripts/idle ->
build/scripts-2.6
copying and adjusting /home/b38514/Python-2.6.6/Tools/scripts/2to3 ->
build/scripts-2.6
copying and adjusting /home/b38514/Python-2.6.6/Lib/smtpd.py ->
build/scripts-2.6
changing mode of build/scripts-2.6/pydoc from 644 to 755
changing mode of build/scripts-2.6/idle from 644 to 755
changing mode of build/scripts-2.6/2to3 from 644 to 755
changing mode of build/scripts-2.6/smtpd.py from 644 to 755

[root [at] 117mc21 Python-2.6.6]#
============== capture end ====================
--
http://mail.python.org/mailman/listinfo/python-list


emile at fenx

Aug 20, 2012, 6:50 AM

Post #2 of 16 (574 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On 8/20/2012 6:31 AM Ganesh Reddy K said...
> But, python compilation is not successfully done and showing a failure
> log. Below is the capture of the same. Please see failure log shown
> in the bottom of this mail.
> How to solve the failure modules mentioned in the log ( bsddb185,
> dl , imageop, sunaudiodev )
>
> Please guide me to proceed further.


You're done, unless you specifically need support for any of those
specific modules.

Emile


--
http://mail.python.org/mailman/listinfo/python-list


kwpolska at gmail

Aug 20, 2012, 10:12 AM

Post #3 of 16 (570 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On Mon, Aug 20, 2012 at 3:31 PM, Ganesh Reddy K <ganeshreddyk [at] gmail> wrote:
> Hi All,
>
> We are trying python 2.6 installation on an RHEL PC ,
>
> whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38
> EST 2008 x86_64 x86_64 x86_64 GNU/Linux )
>
>
> But, python compilation is not successfully done and showing a failure
> log. Below is the capture of the same. Please see failure log shown
> in the bottom of this mail.
> How to solve the failure modules mentioned in the log ( bsddb185,
> dl , imageop, sunaudiodev )
>
> Please guide me to proceed further.
>
> ============== capture begin =================================
> cd Python- 2.6.6
>
> # ./configure
> checking for --enable-universalsdk... no
> checking for --with-universal-archs... 32-bit
> checking MACHDEP... linux2
> checking EXTRAPLATDIR...
> checking machine type as reported by uname -m... x86_64
> checking for --without-gcc... no
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for --with-cxx-main=<compiler>... no
> checking for g++... g++
> configure: WARNING:
>
> By default, distutils will build C++ extension modules with "g++".
> If this is not intended, then set CXX on the configure command line.
>
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> 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 minix/config.h usability... no
> checking minix/config.h presence... no
> checking for minix/config.h... no
> checking whether it is safe to define __EXTENSIONS__... yes
> checking for --with-suffix...
> checking for case-insensitive build directory... no
> checking LIBRARY... libpython$(VERSION).a
> checking LINKCC... $(PURIFY) $(MAINCC)
> checking for --enable-shared... no
> 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... /usr/bin/install -c
> checking for --with-pydebug... no
> checking whether gcc accepts -fno-strict-aliasing... yes
> checking whether gcc accepts -OPT:Olimit=0... no
> checking whether gcc accepts -Olimit 1500... no
> checking whether gcc supports ParseTuple __format__... no
> checking whether pthreads are available without options... no
> checking whether gcc accepts -Kpthread... no
> checking whether gcc accepts -Kthread... no
> checking whether gcc accepts -pthread... yes
> checking whether g++ also accepts flags for thread support... yes
> checking for ANSI C header files... (cached) yes
> checking asm/types.h usability... yes
> checking asm/types.h presence... yes
> checking for asm/types.h... yes
> 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 ieeefp.h usability... no
> checking ieeefp.h presence... no
> checking for ieeefp.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... yes
> checking libintl.h presence... yes
> checking for libintl.h... yes
> checking ncurses.h usability... yes
> checking ncurses.h presence... yes
> checking for ncurses.h... yes
> 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 shadow.h usability... yes
> checking shadow.h presence... yes
> checking for shadow.h... yes
> checking signal.h usability... yes
> checking signal.h presence... yes
> checking for signal.h... yes
> checking for stdint.h... (cached) 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... no
> checking thread.h presence... no
> checking for thread.h... no
> 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/epoll.h usability... yes
> checking sys/epoll.h presence... yes
> checking for sys/epoll.h... yes
> checking sys/event.h usability... no
> checking sys/event.h presence... no
> checking for sys/event.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... no
> checking sys/lock.h presence... no
> checking for sys/lock.h... no
> 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/termio.h usability... no
> checking sys/termio.h presence... no
> checking for sys/termio.h... no
> 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... yes
> checking pty.h presence... yes
> checking for pty.h... yes
> 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... yes
> checking netpacket/packet.h presence... yes
> checking for netpacket/packet.h... yes
> 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... yes
> checking bluetooth/bluetooth.h presence... yes
> checking for bluetooth/bluetooth.h... yes
> checking linux/tipc.h usability... yes
> checking linux/tipc.h presence... yes
> checking for linux/tipc.h... yes
> checking for dirent.h that defines DIR... yes
> checking for library containing opendir... none required
> checking whether sys/types.h defines makedev... yes
> checking for term.h... yes
> checking for linux/netlink.h... yes
> checking for clock_t in time.h... yes
> checking for makedev... yes
> 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 size of int... 4
> checking size of long... 8
> checking size of void *... 8
> checking size of short... 2
> checking size of float... 4
> checking size of double... 8
> checking size of fpos_t... 16
> checking size of size_t... 8
> checking size of pid_t... 4
> checking for long long support... yes
> checking size of long long... 8
> checking for long double support... yes
> checking size of long double... 16
> checking for _Bool support... yes
> checking size of _Bool... 1
> checking for uintptr_t... yes
> checking size of uintptr_t... 8
> checking size of off_t... 8
> checking whether to enable large file support... no
> checking size of time_t... 8
> checking for pthread_t... yes
> checking size of pthread_t... 8
> checking for --enable-toolbox-glue... no
> checking for --enable-framework... no
> checking for dyld... no
> checking SO... .so
> checking LDSHARED... $(CC) -shared
> checking CCSHARED... -fPIC
> checking LINKFORSHARED... -Xlinker -export-dynamic
> checking CFLAGSFORSHARED...
> checking SHLIBS... $(LIBS)
> checking for dlopen in -ldl... yes
> checking for shl_load in -ldld... no
> checking for library containing sem_init... -lpthread
> checking for textdomain in -lintl... no
> checking for t_open in -lnsl... no
> checking for socket in -lsocket... no
> checking for --with-libs... no
> checking for --with-system-ffi...
> 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 OSX 10.5 SDK or later... 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 setitimer... yes
> checking for getitimer... yes
> checking for bind_textdomain_codeset... yes
> checking for chown... yes
> checking for clock... yes
> checking for confstr... yes
> checking for ctermid... yes
> checking for execv... yes
> checking for fchmod... yes
> checking for fchown... 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... yes
> checking for getpeername... yes
> checking for getpgid... yes
> checking for getpid... yes
> checking for getpriority... yes
> checking for getpwent... yes
> checking for getspnam... yes
> checking for getspent... yes
> checking for getsid... yes
> checking for getwd... yes
> checking for kill... yes
> checking for killpg... yes
> checking for lchmod... no
> checking for lchown... yes
> checking for lstat... yes
> checking for mkfifo... yes
> checking for mknod... yes
> checking for mktime... yes
> checking for mremap... yes
> checking for nice... yes
> checking for pathconf... yes
> checking for pause... yes
> checking for plock... no
> checking for poll... yes
> checking for pthread_init... no
> 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... yes
> checking for times... yes
> checking for tmpfile... yes
> checking for tmpnam... yes
> checking for tmpnam_r... yes
> 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 epoll... yes
> checking for kqueue... no
> checking for ctermid_r... no
> checking for flock... yes
> checking for getpagesize... yes
> checking for true... true
> checking for inet_aton in -lc... yes
> checking for chflags... no
> checking for lchflags... no
> checking for inflateCopy in -lz... yes
> checking for hstrerror... yes
> checking for inet_aton... yes
> checking for inet_pton... yes
> checking for setgroups... yes
> checking for openpty... no
> checking for openpty in -lutil... yes
> checking for forkpty... yes
> checking for memmove... yes
> 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 getpgrp... yes
> checking for setpgrp... (cached) yes
> checking for gettimeofday... yes
> checking for major... yes
> checking for getaddrinfo... yes
> checking getaddrinfo bug... good
> 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... 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... no
> 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... no
> 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... no
> checking whether va_list is an array... yes
> checking for gethostbyname_r... yes
> checking gethostbyname_r with 6 args... yes
> checking for __fpu_control... yes
> checking for --with-fpectl... no
> checking for --with-libm=STRING... default LIBM="-lm"
> checking for --with-libc=STRING... default LIBC=""
> checking for x87-style double rounding... no
> checking whether tanh preserves the sign of zero... yes
> checking for acosh... yes
> checking for asinh... yes
> checking for atanh... yes
> checking for copysign... yes
> checking for expm1... yes
> checking for finite... yes
> checking for hypot... yes
> checking for log1p... yes
> checking whether isinf is declared... yes
> checking whether isnan is declared... yes
> checking whether isfinite is declared... yes
> checking wchar.h usability... yes
> checking wchar.h presence... yes
> checking for wchar.h... yes
> checking size of wchar_t... 4
> checking for UCS-4 tcl... no
> checking whether wchar_t is signed... yes
> checking what type to use for unicode... unsigned short
> checking whether byte ordering is bigendian... no
> checking whether right shift extends the sign bit... yes
> checking for getc_unlocked() and friends... yes
> checking how to link readline libs... -lreadline -lncursesw
> checking for rl_callback_handler_install in -lreadline... yes
> checking for rl_pre_input_hook in -lreadline... yes
> checking for rl_completion_display_matches_hook in -lreadline... yes
> 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) yes
> checking for working tzset()... yes
> checking for tv_nsec in struct stat... yes
> 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... yes
> checking for resize_term... yes
> checking for resizeterm... yes
> checking for /dev/ptmx... yes
> checking for /dev/ptc... no
> 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
> creating Modules/Setup
> creating Modules/Setup.local
> creating Makefile
> [root [at] 117mc21 Python-2.6.6]# make
> ..
> .
> /Modules/_ctypes/malloc_closure.o
> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/prep_cif.o
> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/ffi64.o
> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/unix64.o
> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/ffi.o
> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/libffi/src/x86/sysv.o
> -L/usr/local/lib -o build/lib.linux-x86_64-2.6/_ctypes.so
>
> Failed to find the necessary bits to build these modules:
> bsddb185 dl imageop
> sunaudiodev
> To find the necessary bits, look in setup.py in detect_modules() for
> the module's name.
>
> running build_scripts
> creating build/scripts-2.6
> copying and adjusting /home/b38514/Python-2.6.6/Tools/scripts/pydoc ->
> build/scripts-2.6
> copying and adjusting /home/b38514/Python-2.6.6/Tools/scripts/idle ->
> build/scripts-2.6
> copying and adjusting /home/b38514/Python-2.6.6/Tools/scripts/2to3 ->
> build/scripts-2.6
> copying and adjusting /home/b38514/Python-2.6.6/Lib/smtpd.py ->
> build/scripts-2.6
> changing mode of build/scripts-2.6/pydoc from 644 to 755
> changing mode of build/scripts-2.6/idle from 644 to 755
> changing mode of build/scripts-2.6/2to3 from 644 to 755
> changing mode of build/scripts-2.6/smtpd.py from 644 to 755
>
> [root [at] 117mc21 Python-2.6.6]#
> ============== capture end ====================
> --
> http://mail.python.org/mailman/listinfo/python-list

Do you really need to compile python2.6? RHEL has packages for
python, and it's better to use pre-compiled packages rather than
compile them yourself. Also, 2.6 is an old version that you should
not be using 99% of the time.

--
Kwpolska <http://kwpolska.tk>
stop html mail | always bottom-post
www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
GPG KEY: 5EAAEA16
--
http://mail.python.org/mailman/listinfo/python-list


walterhurry at lavabit

Aug 20, 2012, 10:20 AM

Post #4 of 16 (569 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote:

> On Mon, Aug 20, 2012 at 3:31 PM, Ganesh Reddy K <ganeshreddyk [at] gmail>
> wrote:
>> Hi All,
>>
>> We are trying python 2.6 installation on an RHEL PC ,
>>
>> whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38
>> EST 2008 x86_64 x86_64 x86_64 GNU/Linux )
>>
>>
>> But, python compilation is not successfully done and showing a failure
>> log. Below is the capture of the same. Please see failure log shown
>> in the bottom of this mail.
>> How to solve the failure modules mentioned in the log ( bsddb185,
>> dl , imageop, sunaudiodev )
>>
>> Please guide me to proceed further.
>>
>> ============== capture begin =================================
>> cd Python- 2.6.6
>>
>> # ./configure checking for --enable-universalsdk... no checking for
>> --with-universal-archs... 32-bit checking MACHDEP... linux2 checking
>> EXTRAPLATDIR...
>> checking machine type as reported by uname -m... x86_64 checking for
>> --without-gcc... no checking for gcc... gcc checking whether the C
>> compiler works... yes checking for C compiler default output file
>> name... a.out checking for suffix of executables...
>> checking whether we are cross compiling... no checking for suffix of
>> object files... o checking whether we are using the GNU C compiler...
>> yes checking whether gcc accepts -g... yes checking for gcc option to
>> accept ISO C89... none needed checking for
>> --with-cxx-main=<compiler>... no checking for g++... g++
>> configure: WARNING:
>>
>> By default, distutils will build C++ extension modules with "g++". If
>> this is not intended, then set CXX on the configure command line.
>>
>> checking how to run the C preprocessor... gcc -E checking for grep that
>> handles long lines and -e... /bin/grep checking for egrep... /bin/grep
>> -E 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 minix/config.h
>> usability... no checking minix/config.h presence... no checking for
>> minix/config.h... no checking whether it is safe to define
>> __EXTENSIONS__... yes checking for --with-suffix...
>> checking for case-insensitive build directory... no checking LIBRARY...
>> libpython$(VERSION).a checking LINKCC... $(PURIFY) $(MAINCC)
>> checking for --enable-shared... no 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... /usr/bin/install -c checking for
>> --with-pydebug... no checking whether gcc accepts
>> -fno-strict-aliasing... yes checking whether gcc accepts
>> -OPT:Olimit=0... no checking whether gcc accepts -Olimit 1500... no
>> checking whether gcc supports ParseTuple __format__... no checking
>> whether pthreads are available without options... no checking whether
>> gcc accepts -Kpthread... no checking whether gcc accepts -Kthread... no
>> checking whether gcc accepts -pthread... yes checking whether g++ also
>> accepts flags for thread support... yes checking for ANSI C header
>> files... (cached) yes checking asm/types.h usability... yes checking
>> asm/types.h presence... yes checking for asm/types.h... yes 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
>> ieeefp.h usability... no checking ieeefp.h presence... no checking for
>> ieeefp.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... yes checking libintl.h presence... yes
>> checking for libintl.h... yes checking ncurses.h usability... yes
>> checking ncurses.h presence... yes checking for ncurses.h... yes
>> 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 shadow.h usability... yes checking
>> shadow.h presence... yes checking for shadow.h... yes checking signal.h
>> usability... yes checking signal.h presence... yes checking for
>> signal.h... yes checking for stdint.h... (cached) 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... no checking thread.h presence... no checking for
>> thread.h... no 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/epoll.h usability... yes
>> checking sys/epoll.h presence... yes checking for sys/epoll.h... yes
>> checking sys/event.h usability... no checking sys/event.h presence...
>> no checking for sys/event.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... no checking sys/lock.h presence... no checking for
>> sys/lock.h... no 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/termio.h usability... no checking sys/termio.h presence... no
>> checking for sys/termio.h... no 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... yes checking pty.h presence... yes checking for
>> pty.h... yes 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... yes
>> checking netpacket/packet.h presence... yes checking for
>> netpacket/packet.h... yes 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... yes checking bluetooth/bluetooth.h presence... yes
>> checking for bluetooth/bluetooth.h... yes checking linux/tipc.h
>> usability... yes checking linux/tipc.h presence... yes checking for
>> linux/tipc.h... yes checking for dirent.h that defines DIR... yes
>> checking for library containing opendir... none required checking
>> whether sys/types.h defines makedev... yes checking for term.h... yes
>> checking for linux/netlink.h... yes checking for clock_t in time.h...
>> yes checking for makedev... yes 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 size of int... 4 checking size of long... 8 checking size
>> of void *... 8 checking size of short... 2 checking size of float... 4
>> checking size of double... 8 checking size of fpos_t... 16 checking
>> size of size_t... 8 checking size of pid_t... 4 checking for long long
>> support... yes checking size of long long... 8 checking for long double
>> support... yes checking size of long double... 16 checking for _Bool
>> support... yes checking size of _Bool... 1 checking for uintptr_t...
>> yes checking size of uintptr_t... 8 checking size of off_t... 8
>> checking whether to enable large file support... no checking size of
>> time_t... 8 checking for pthread_t... yes checking size of pthread_t...
>> 8 checking for --enable-toolbox-glue... no checking for
>> --enable-framework... no checking for dyld... no checking SO... .so
>> checking LDSHARED... $(CC) -shared checking CCSHARED... -fPIC checking
>> LINKFORSHARED... -Xlinker -export-dynamic checking CFLAGSFORSHARED...
>> checking SHLIBS... $(LIBS)
>> checking for dlopen in -ldl... yes checking for shl_load in -ldld... no
>> checking for library containing sem_init... -lpthread checking for
>> textdomain in -lintl... no checking for t_open in -lnsl... no checking
>> for socket in -lsocket... no checking for --with-libs... no checking
>> for --with-system-ffi...
>> 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 OSX 10.5 SDK or later... 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 setitimer... yes checking for getitimer... yes checking
>> for bind_textdomain_codeset... yes checking for chown... yes checking
>> for clock... yes checking for confstr... yes checking for ctermid...
>> yes checking for execv... yes checking for fchmod... yes checking for
>> fchown... 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... yes checking for
>> getpeername... yes checking for getpgid... yes checking for getpid...
>> yes checking for getpriority... yes checking for getpwent... yes
>> checking for getspnam... yes checking for getspent... yes checking for
>> getsid... yes checking for getwd... yes checking for kill... yes
>> checking for killpg... yes checking for lchmod... no checking for
>> lchown... yes checking for lstat... yes checking for mkfifo... yes
>> checking for mknod... yes checking for mktime... yes checking for
>> mremap... yes checking for nice... yes checking for pathconf... yes
>> checking for pause... yes checking for plock... no checking for poll...
>> yes checking for pthread_init... no 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... yes checking for
>> times... yes checking for tmpfile... yes checking for tmpnam... yes
>> checking for tmpnam_r... yes 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 epoll... yes checking for
>> kqueue... no checking for ctermid_r... no checking for flock... yes
>> checking for getpagesize... yes checking for true... true checking for
>> inet_aton in -lc... yes checking for chflags... no checking for
>> lchflags... no checking for inflateCopy in -lz... yes checking for
>> hstrerror... yes checking for inet_aton... yes checking for
>> inet_pton... yes checking for setgroups... yes checking for openpty...
>> no checking for openpty in -lutil... yes checking for forkpty... yes
>> checking for memmove... yes 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 getpgrp... yes checking for setpgrp... (cached) yes
>> checking for gettimeofday... yes checking for major... yes checking for
>> getaddrinfo... yes checking getaddrinfo bug... good 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... 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... no 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... no
>> 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... no checking whether va_list is an array... yes
>> checking for gethostbyname_r... yes checking gethostbyname_r with 6
>> args... yes checking for __fpu_control... yes checking for
>> --with-fpectl... no checking for --with-libm=STRING... default
>> LIBM="-lm"
>> checking for --with-libc=STRING... default LIBC=""
>> checking for x87-style double rounding... no checking whether tanh
>> preserves the sign of zero... yes checking for acosh... yes checking
>> for asinh... yes checking for atanh... yes checking for copysign... yes
>> checking for expm1... yes checking for finite... yes checking for
>> hypot... yes checking for log1p... yes checking whether isinf is
>> declared... yes checking whether isnan is declared... yes checking
>> whether isfinite is declared... yes checking wchar.h usability... yes
>> checking wchar.h presence... yes checking for wchar.h... yes checking
>> size of wchar_t... 4 checking for UCS-4 tcl... no checking whether
>> wchar_t is signed... yes checking what type to use for unicode...
>> unsigned short checking whether byte ordering is bigendian... no
>> checking whether right shift extends the sign bit... yes checking for
>> getc_unlocked() and friends... yes checking how to link readline
>> libs... -lreadline -lncursesw checking for rl_callback_handler_install
>> in -lreadline... yes checking for rl_pre_input_hook in -lreadline...
>> yes checking for rl_completion_display_matches_hook in -lreadline...
>> yes 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) yes checking for working tzset()... yes
>> checking for tv_nsec in struct stat... yes 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... yes checking for resize_term... yes checking for
>> resizeterm... yes checking for /dev/ptmx... yes checking for
>> /dev/ptc... no 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 creating Modules/Setup creating Modules/Setup.local creating
>> Makefile [root [at] 117mc21 Python-2.6.6]# make ..
>> .
>> /Modules/_ctypes/malloc_closure.o
>> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/
libffi/src/prep_cif.o
>> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/
libffi/src/x86/ffi64.o
>> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/
libffi/src/x86/unix64.o
>> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/
libffi/src/x86/ffi.o
>> build/temp.linux-x86_64-2.6/home/b38514/Python-2.6.6/Modules/_ctypes/
libffi/src/x86/sysv.o
>> -L/usr/local/lib -o build/lib.linux-x86_64-2.6/_ctypes.so
>>
>> Failed to find the necessary bits to build these modules:
>> bsddb185 dl imageop sunaudiodev To find the
>> necessary bits, look in setup.py in detect_modules() for the module's
>> name.
>>
>> running build_scripts creating build/scripts-2.6 copying and adjusting
>> /home/b38514/Python-2.6.6/Tools/scripts/pydoc ->
>> build/scripts-2.6 copying and adjusting
>> /home/b38514/Python-2.6.6/Tools/scripts/idle ->
>> build/scripts-2.6 copying and adjusting
>> /home/b38514/Python-2.6.6/Tools/scripts/2to3 ->
>> build/scripts-2.6 copying and adjusting
>> /home/b38514/Python-2.6.6/Lib/smtpd.py ->
>> build/scripts-2.6 changing mode of build/scripts-2.6/pydoc from 644 to
>> 755 changing mode of build/scripts-2.6/idle from 644 to 755 changing
>> mode of build/scripts-2.6/2to3 from 644 to 755 changing mode of
>> build/scripts-2.6/smtpd.py from 644 to 755
>>
>> [root [at] 117mc21 Python-2.6.6]#
>> ============== capture end ====================
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>
> Do you really need to compile python2.6? RHEL has packages for python,
> and it's better to use pre-compiled packages rather than compile them
> yourself.

I concur, but FYI the version of Python with RHEL5 is 2.4. Still, OP
should stick with that unless there is a pressing reason.
--
http://mail.python.org/mailman/listinfo/python-list


emile at fenx

Aug 20, 2012, 11:02 AM

Post #5 of 16 (570 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On 8/20/2012 10:20 AM Walter Hurry said...
> On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote:

<snip 300+ lines of non-referred to content replicated by you both>

>> >Do you really need to compile python2.6? RHEL has packages for python,
>> >and it's better

s/better/sometimes easier

>> > to use pre-compiled packages rather than compile them yourself.


> I concur, but FYI the version of Python with RHEL5 is 2.4. Still, OP
> should stick with that unless there is a pressing reason.

Hence, the 2.6 install.

Learn-to-trim-ly y'rs,

Emile





--
http://mail.python.org/mailman/listinfo/python-list


walterhurry at lavabit

Aug 20, 2012, 11:37 AM

Post #6 of 16 (568 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On Mon, 20 Aug 2012 11:02:25 -0700, Emile van Sebille wrote:

> On 8/20/2012 10:20 AM Walter Hurry said...
>> On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote:
>
> <snip 300+ lines of non-referred to content replicated by you both>
>
>>> >Do you really need to compile python2.6? RHEL has packages for
>>> >python,
>>> >and it's better
>
> s/better/sometimes easier
>
>>> > to use pre-compiled packages rather than compile them yourself.
>
>
>> I concur, but FYI the version of Python with RHEL5 is 2.4. Still, OP
>> should stick with that unless there is a pressing reason.
>
> Hence, the 2.6 install.

First, sorry for my omission to trim.

Second, the reason for recommending that OP stick to the Red Hat provided
version (unless there is a pressing reason) is the question of the
already-paid-for Red Hat support.

And for that matter, if OP is forced to a later Python 2 version than
2.4, why not 2.7.3?

--
http://mail.python.org/mailman/listinfo/python-list


emile at fenx

Aug 20, 2012, 12:19 PM

Post #7 of 16 (569 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On 8/20/2012 11:37 AM Walter Hurry said...
> On Mon, 20 Aug 2012 11:02:25 -0700, Emile van Sebille wrote:
>
>> On 8/20/2012 10:20 AM Walter Hurry said...
>>> I concur, but FYI the version of Python with RHEL5 is 2.4. Still, OP
>>> should stick with that unless there is a pressing reason.
>>
>> Hence, the 2.6 install.
>
> First, sorry for my omission to trim.
>
> Second, the reason for recommending that OP stick to the Red Hat provided
> version (unless there is a pressing reason) is the question of the
> already-paid-for Red Hat support.

Generally, when you compile from source the binaries will install to
/usr/local/bin and not be in conflict with RH's install version.


> And for that matter, if OP is forced to a later Python 2 version than
> 2.4, why not 2.7.3?


Package dependencies. If the OP intends to install a package that
doesn't support other than 2.6, you install 2.6.

Emile



--
http://mail.python.org/mailman/listinfo/python-list


walterhurry at lavabit

Aug 20, 2012, 1:55 PM

Post #8 of 16 (573 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote:

> Package dependencies. If the OP intends to install a package that
> doesn't support other than 2.6, you install 2.6.

It would be a pretty poor third party package which specified Python 2.6
exactly, rather than (say) "Python 2.6 or later, but not Python 3"

--
http://mail.python.org/mailman/listinfo/python-list


emile at fenx

Aug 20, 2012, 2:50 PM

Post #9 of 16 (570 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On 8/20/2012 1:55 PM Walter Hurry said...
> On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote:
>
>> Package dependencies. If the OP intends to install a package that
>> doesn't support other than 2.6, you install 2.6.
>
> It would be a pretty poor third party package which specified Python 2.6
> exactly, rather than (say) "Python 2.6 or later, but not Python 3"

It doesn't need to be a poorly supported third party package to require
a non-current version of python -- just something as simple as an up and
running application. Suppose you're migrating an application to new
hardware. To make it interesting, assume it's a 10 year old zope
application. It's likely that to minimize effort you'll gather
(assuming you didn't save your sources - you do install from source,
right?) and install the versions prescribed.

Of course, if you're comfortable upgrading to the latest release then
then, by all means, do so. For me, python is used for for dozens of
rather significant one-offs that I prefer not to upgrade. Why mess with
a working app.

Emile



--
http://mail.python.org/mailman/listinfo/python-list


cs at zip

Aug 20, 2012, 3:25 PM

Post #10 of 16 (570 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On 20Aug2012 12:19, Emile van Sebille <emile [at] fenx> wrote:
| On 8/20/2012 11:37 AM Walter Hurry said...
| > On Mon, 20 Aug 2012 11:02:25 -0700, Emile van Sebille wrote:
| >> On 8/20/2012 10:20 AM Walter Hurry said...
| >>> I concur, but FYI the version of Python with RHEL5 is 2.4. Still, OP
| >>> should stick with that unless there is a pressing reason.
| >>
| >> Hence, the 2.6 install.
| >
| > First, sorry for my omission to trim.
| >
| > Second, the reason for recommending that OP stick to the Red Hat provided
| > version (unless there is a pressing reason) is the question of the
| > already-paid-for Red Hat support.
|
| Generally, when you compile from source the binaries will install to
| /usr/local/bin and not be in conflict with RH's install version.

I was going to chime in with this anyway had the thread said nothing; I
strongly prefer to specify --prefix explicitly with configure.

My personal habit to to build with (adjust to match):

--prefix=/usr/local/python-2.6.4

and put some symlinks in /usr/local/bin afterwards (python2.6, etc).

That way one doesn't tread on the system Python (after all the OS vendor
distro is also a collection of packages with coordinated versions)
and one can easily put in another python beside it.

| > And for that matter, if OP is forced to a later Python 2 version than
| > 2.4, why not 2.7.3?
|
| Package dependencies. If the OP intends to install a package that
| doesn't support other than 2.6, you install 2.6.

Indeed. And this is a strong reason to keep out of the vendor's /usr
filesystem space, also.

Cheers,
--
Cameron Simpson <cs [at] zip>
--
http://mail.python.org/mailman/listinfo/python-list


drsalists at gmail

Aug 20, 2012, 3:43 PM

Post #11 of 16 (570 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On Mon, Aug 20, 2012 at 10:25 PM, Cameron Simpson <cs [at] zip> wrote:

> I was going to chime in with this anyway had the thread said nothing; I
> strongly prefer to specify --prefix explicitly with configure.
>
> My personal habit to to build with (adjust to match):
>
> --prefix=/usr/local/python-2.6.4
>
> and put some symlinks in /usr/local/bin afterwards (python2.6, etc).
>
> That way one doesn't tread on the system Python (after all the OS vendor
> distro is also a collection of packages with coordinated versions)
> and one can easily put in another python beside it.

+1.

I like to build a bunch of representative python versions, and test code on
some subset of them - often all of them. I usually do 2.5, 2.6, 2.7, 3.0,
3.1, 3.2 and 3.3, but sometimes I get more specific than that. I'll also
do a couple of jython's and pypy's normally.

It's remarkable how revealing such a simple thing can be for portability.


nagle at animats

Aug 20, 2012, 9:34 PM

Post #12 of 16 (570 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On 8/20/2012 2:50 PM, Emile van Sebille wrote:
> On 8/20/2012 1:55 PM Walter Hurry said...
>> On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote:
>>
>>> Package dependencies. If the OP intends to install a package that
>>> doesn't support other than 2.6, you install 2.6.
>>
>> It would be a pretty poor third party package which specified Python 2.6
>> exactly, rather than (say) "Python 2.6 or later, but not Python 3"

After a thread of clueless replies, it's clear that nobody
responding actually read the build log. Here's the problem:

Failed to find the necessary bits to build these modules:
bsddb185
dl
imageop
sunaudiodev

What's wrong is that the Python 2.6 build script is looking for
some antiquated packages that aren't in a current RHEL. Those
need to be turned off.

This is a known problem (see
http://pythonstarter.blogspot.com/2010/08/bsddb185-sunaudiodev-python-26-ubuntu.html)
but, unfortunately, the site with the patch for it
(http://www.lysium.de/sw/python2.6-disable-old-modules.patch)
is no longer in existence.

But someone archived it on Google Code, at

http://code.google.com/p/google-earth-enterprise-compliance/source/browse/trunk/googleclient/geo/earth_enterprise/src/third_party/python/python2.6-disable-old-modules.patch

so if you apply that patch to the setup.py file for Python 2.6, that
ought to help.

You might be better off building Python 2.7, but you asked about 2.6.

John Nagle



--
http://mail.python.org/mailman/listinfo/python-list


emile at fenx

Aug 20, 2012, 11:11 PM

Post #13 of 16 (572 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On 8/20/2012 9:34 PM John Nagle said...

> After a thread of clueless replies,

s/clueless/unread

Emile


--
http://mail.python.org/mailman/listinfo/python-list


__peter__ at web

Aug 21, 2012, 12:20 AM

Post #14 of 16 (568 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

John Nagle wrote:

> On 8/20/2012 2:50 PM, Emile van Sebille wrote:
>> On 8/20/2012 1:55 PM Walter Hurry said...
>>> On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote:
>>>
>>>> Package dependencies. If the OP intends to install a package that
>>>> doesn't support other than 2.6, you install 2.6.
>>>
>>> It would be a pretty poor third party package which specified Python 2.6
>>> exactly, rather than (say) "Python 2.6 or later, but not Python 3"
>
> After a thread of clueless replies, it's clear that nobody
> responding actually read the build log. Here's the problem:

There are a lot of clueless statements on websites around the world.
I'll just quote the one significant comment on the lysium.de page:

"""
There's actually no need to apply your patch to setup.py. Python complains
about not being able to build those modules, but it will still build and
install just fine without them.
#6 Alexander Fairley on 2009-01-19 01:43
"""

which is unfortunately burried under an avalanche of "satisfied customer"
replies. Alexander, you're my hero ;)

>
> Failed to find the necessary bits to build these modules:
> bsddb185
> dl
> imageop
> sunaudiodev
>
> What's wrong is that the Python 2.6 build script is looking for
> some antiquated packages that aren't in a current RHEL. Those
> need to be turned off.
>
> This is a known problem (see
> http://pythonstarter.blogspot.com/2010/08/bsddb185-sunaudiodev-python-26-
ubuntu.html)
> but, unfortunately, the site with the patch for it
> (http://www.lysium.de/sw/python2.6-disable-old-modules.patch)
> is no longer in existence.
>
> But someone archived it on Google Code, at
>
> http://code.google.com/p/google-earth-enterprise-
compliance/source/browse/trunk/googleclient/geo/earth_enterprise/src/third_party/python/python2.6-
disable-old-modules.patch
>
> so if you apply that patch to the setup.py file for Python 2.6, that
> ought to help.

That patch prevents setup.py from adding a few names of rarely
needed/available modules to the list of missing modules. That's snakeoil.

OP: You can safely ignore the error message, the patch has no real-world
effect.

--
http://mail.python.org/mailman/listinfo/python-list


malaclypse2 at gmail

Aug 21, 2012, 5:06 AM

Post #15 of 16 (571 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

On Tue, Aug 21, 2012 at 12:34 AM, John Nagle <nagle [at] animats> wrote:
> After a thread of clueless replies, it's clear that nobody
> responding actually read the build log. Here's the problem:

The very first reply, Emile's, pointed out that these were optional
modules, and that python did, in fact build successfully.

> Failed to find the necessary bits to build these modules:
> bsddb185
> dl
> imageop
> sunaudiodev
>
> What's wrong is that the Python 2.6 build script is looking for
> some antiquated packages that aren't in a current RHEL. Those
> need to be turned off.

They don't need to be turned off. They can either be ignored (because
they aren't needed, and did not cause the build to fail), or the
development libraries for those pieces can be installed and python
recompiled.

The rest of the thread has been commenting on the OP's choice of
python version and operating system. That's not exactly on topic, but
the original question was answered in the very first response.

--
Jerry
--
http://mail.python.org/mailman/listinfo/python-list


as at sci

Aug 23, 2012, 4:34 AM

Post #16 of 16 (537 views)
Permalink
Re: python 6 compilation failure on RHEL [In reply to]

Cameron Simpson <cs [at] zip> writes:

> My personal habit to to build with (adjust to match):
>
> --prefix=/usr/local/python-2.6.4
>
> and put some symlinks in /usr/local/bin afterwards (python2.6, etc).

There's actually a program for that, it's called stow.
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.