[Tutor] build erors

Mark A. Hernandez markah@tality.com
Mon, 14 May 2001 11:45:58 -0400


--------------533BDB4792A3F3A47AB3E214
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Heelo All,
 I hope someone can help here is my problem:

i am trying to install python 2.1 on Sun OS 5.7
Here is the screen output of configure followed by the errors after
"make":


./configure --prefix=/user/markah/Python
creating cache ./config.cache
checking MACHDEP... sunos5
checking for --without-gcc... no
checking for --with-cxx=<compiler>... no
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for --with-suffix...
checking LIBRARY... libpython$(VERSION).a
checking LINKCC... $(PURIFY) $(CC)
checking LDLIBRARY... libpython$(VERSION).a
checking for ranlib... ranlib
checking for ar... ar
checking for a BSD compatible install... ./install-sh -c
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for minix/config.h... no
checking whether gcc accepts -OPT:Olimit=0... no
checking whether gcc accepts -Olimit 1500... no
checking for ANSI C header files... yes
checking for dlfcn.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for ncurses.h... no
checking for poll.h... yes
checking for pthread.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for thread.h... yes
checking for unistd.h... yes
checking for utime.h... yes
checking for termios.h... yes
checking for sys/audioio.h... yes
checking for sys/file.h... no
checking for sys/lock.h... yes
checking for db_185.h... no
checking for db.h... no
checking for sys/param.h... no
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for sys/times.h... yes
checking for sys/un.h... yes
checking for sys/utsname.h... yes
checking for sys/wait.h... yes
checking for pty.h... no
checking for libutil.h... no
checking for ndbm.h... yes
checking for db1/ndbm.h... no
checking for gdbm/ndbm.h... no
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for opendir in -lx... no
checking for clock_t in time.h... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking return type of signal handlers... int
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking size of int... 4
checking size of long... 4
checking size of void *... 4
checking size of char... 1
checking size of short... 2
checking size of float... 4
checking size of double... 8
checking size of fpos_t... 4
checking for long long support... yes
checking size of long long... 8
checking for uintptr_t support... no
checking size of off_t... 0
checking whether to enable large file support... no
checking size of time_t... 0
checking for pthread_t... no
checking for --with-next-framework... no
checking for --with-dyld... no
checking SO... .so
checking LDSHARED... $(CC) -shared
checking CCSHARED... -fPIC
checking LINKFORSHARED...
checking CFLAGSFORSHARED...
checking for dlopen in -ldl... yes
checking for shl_load in -ldld... no
checking for --with-pydebug... no
checking for t_open in -lnsl... yes
checking for socket in -lsocket... yes
checking for --with-libs... no
checking for --with-signal-module... yes
checking for --with-dec-threads... no
checking for --with-threads... yes
checking for mach/cthreads.h... no
checking for --with-pth... no
checking for pthread_create in -lpthread... yes
checking for usconfig in -lmpc... no
checking for thr_create in -lthread... yes
checking for --with-cycle-gc... yes
checking for --with-pymalloc... no
checking for --with-wctype-functions... no
checking for --with-sgi-dl... no
checking for --with-dl-dld... no
checking for dlopen... yes
checking DYNLOADFILE... dynload_shlib.o
checking for alarm... yes
checking for chown... yes
checking for clock... yes
checking for confstr... yes
checking for ctermid... yes
checking for ctermid_r... yes
checking for execv... yes
checking for flock... no
checking for fork... yes
checking for fsync... yes
checking for fdatasync... no
checking for fpathconf... yes
checking for ftime... yes
checking for ftruncate... yes
checking for getgroups... yes
checking for getlogin... yes
checking for getpeername... yes
checking for getpid... yes
checking for getpwent... yes
checking for getwd... yes
checking for kill... yes
checking for link... yes
checking for lstat... yes
checking for mkfifo... 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... no
checking for putenv... yes
checking for readlink... 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 setuid... yes
checking for setvbuf... yes
checking for sigaction... yes
checking for siginterrupt... yes
checking for sigrelse... yes
checking for strftime... yes
checking for strptime... yes
checking for symlink... 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... yes
checking for truncate... yes
checking for uname... yes
checking for waitpid... yes
checking for _getpty... no
checking for openpty... no
checking for openpty in -lutil... no
checking for forkpty... no
checking for forkpty in -lutil... 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... yes
checking for gettimeofday... yes
checking whether time.h and sys/time.h may both be included... no
checking whether struct tm is in sys/time.h or time.h... sys/time.h
checking for tm_zone in struct tm... no
checking for tzname... no
checking for time.h that defines altzone... no
checking whether sys/select.h and sys/time.h may both be included... no
checking whether char is unsigned... no
checking for working 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 bad exec* prototypes... yes
checking for bad static forward... no
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... no
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 what malloc(0) returns... nonnull
checking for wchar.h... yes
checking for usable wchar_t... no
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 socklen_t... yes
checking for build directories... done
updating cache ./config.cache
creating ./config.status
creating Makefile.pre
creating Modules/Setup.config
creating config.h
creating Setup
creating Setup.local
creating Makefile


Make errors:

make
gcc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H
-o Modules/python.o Modules/python.c
In file included from
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/time.h:90,
                 from /usr/include/sys/time.h:405,
                 from /usr/include/sys/select.h:17,
                 from
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/types.h:278,

                 from /usr/include/sys/wait.h:20,
                 from
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17,
                 from Include/Python.h:50,
                 from Modules/python.c:3:
/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or
union
/usr/include/sys/siginfo.h:76: parse error before `}'
*** Error code 1
make: Fatal error: Command failed for target `Modules/python.o'


I hope this helps

Thanks
Mark

--
Mark Hernandez                          email: markah@tality.com
Tality, LP                              Phone: 919.481.6819
Digital IC                              FAX:   919.380.3903
200 Regency Forest Drive
Suite 260
Cary, NC 27511



--------------533BDB4792A3F3A47AB3E214
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Heelo All,
<br>&nbsp;I hope someone can help here is my problem:
<p>i am trying to install python 2.1 on Sun OS 5.7
<br>Here is the screen output of configure followed by the errors after
"make":
<br>&nbsp;
<p>./configure --prefix=/user/markah/Python
<br>creating cache ./config.cache
<br>checking MACHDEP... sunos5
<br>checking for --without-gcc... no
<br>checking for --with-cxx=&lt;compiler>... no
<br>checking for c++... c++
<br>checking whether the C++ compiler (c++&nbsp; ) works... yes
<br>checking whether the C++ compiler (c++&nbsp; ) is a cross-compiler...
no
<br>checking for gcc... gcc
<br>checking whether the C compiler (gcc&nbsp; ) works... yes
<br>checking whether the C compiler (gcc&nbsp; ) is a cross-compiler...
no
<br>checking whether we are using GNU C... yes
<br>checking whether gcc accepts -g... yes
<br>checking for Cygwin environment... no
<br>checking for mingw32 environment... no
<br>checking for executable suffix... no
<br>checking for --with-suffix...
<br>checking LIBRARY... libpython$(VERSION).a
<br>checking LINKCC... $(PURIFY) $(CC)
<br>checking LDLIBRARY... libpython$(VERSION).a
<br>checking for ranlib... ranlib
<br>checking for ar... ar
<br>checking for a BSD compatible install... ./install-sh -c
<br>checking how to run the C preprocessor... gcc -E
<br>checking for AIX... no
<br>checking for minix/config.h... no
<br>checking whether gcc accepts -OPT:Olimit=0... no
<br>checking whether gcc accepts -Olimit 1500... no
<br>checking for ANSI C header files... yes
<br>checking for dlfcn.h... yes
<br>checking for fcntl.h... yes
<br>checking for limits.h... yes
<br>checking for locale.h... yes
<br>checking for ncurses.h... no
<br>checking for poll.h... yes
<br>checking for pthread.h... yes
<br>checking for signal.h... yes
<br>checking for stdarg.h... yes
<br>checking for stddef.h... yes
<br>checking for stdlib.h... yes
<br>checking for thread.h... yes
<br>checking for unistd.h... yes
<br>checking for utime.h... yes
<br>checking for termios.h... yes
<br>checking for sys/audioio.h... yes
<br>checking for sys/file.h... no
<br>checking for sys/lock.h... yes
<br>checking for db_185.h... no
<br>checking for db.h... no
<br>checking for sys/param.h... no
<br>checking for sys/select.h... yes
<br>checking for sys/socket.h... yes
<br>checking for sys/time.h... yes
<br>checking for sys/times.h... yes
<br>checking for sys/un.h... yes
<br>checking for sys/utsname.h... yes
<br>checking for sys/wait.h... yes
<br>checking for pty.h... no
<br>checking for libutil.h... no
<br>checking for ndbm.h... yes
<br>checking for db1/ndbm.h... no
<br>checking for gdbm/ndbm.h... no
<br>checking for dirent.h that defines DIR... no
<br>checking for sys/ndir.h that defines DIR... no
<br>checking for sys/dir.h that defines DIR... no
<br>checking for ndir.h that defines DIR... no
<br>checking for opendir in -lx... no
<br>checking for clock_t in time.h... yes
<br>checking for mode_t... yes
<br>checking for off_t... yes
<br>checking for pid_t... yes
<br>checking return type of signal handlers... int
<br>checking for size_t... yes
<br>checking for uid_t in sys/types.h... yes
<br>checking size of int... 4
<br>checking size of long... 4
<br>checking size of void *... 4
<br>checking size of char... 1
<br>checking size of short... 2
<br>checking size of float... 4
<br>checking size of double... 8
<br>checking size of fpos_t... 4
<br>checking for long long support... yes
<br>checking size of long long... 8
<br>checking for uintptr_t support... no
<br>checking size of off_t... 0
<br>checking whether to enable large file support... no
<br>checking size of time_t... 0
<br>checking for pthread_t... no
<br>checking for --with-next-framework... no
<br>checking for --with-dyld... no
<br>checking SO... .so
<br>checking LDSHARED... $(CC) -shared
<br>checking CCSHARED... -fPIC
<br>checking LINKFORSHARED...
<br>checking CFLAGSFORSHARED...
<br>checking for dlopen in -ldl... yes
<br>checking for shl_load in -ldld... no
<br>checking for --with-pydebug... no
<br>checking for t_open in -lnsl... yes
<br>checking for socket in -lsocket... yes
<br>checking for --with-libs... no
<br>checking for --with-signal-module... yes
<br>checking for --with-dec-threads... no
<br>checking for --with-threads... yes
<br>checking for mach/cthreads.h... no
<br>checking for --with-pth... no
<br>checking for pthread_create in -lpthread... yes
<br>checking for usconfig in -lmpc... no
<br>checking for thr_create in -lthread... yes
<br>checking for --with-cycle-gc... yes
<br>checking for --with-pymalloc... no
<br>checking for --with-wctype-functions... no
<br>checking for --with-sgi-dl... no
<br>checking for --with-dl-dld... no
<br>checking for dlopen... yes
<br>checking DYNLOADFILE... dynload_shlib.o
<br>checking for alarm... yes
<br>checking for chown... yes
<br>checking for clock... yes
<br>checking for confstr... yes
<br>checking for ctermid... yes
<br>checking for ctermid_r... yes
<br>checking for execv... yes
<br>checking for flock... no
<br>checking for fork... yes
<br>checking for fsync... yes
<br>checking for fdatasync... no
<br>checking for fpathconf... yes
<br>checking for ftime... yes
<br>checking for ftruncate... yes
<br>checking for getgroups... yes
<br>checking for getlogin... yes
<br>checking for getpeername... yes
<br>checking for getpid... yes
<br>checking for getpwent... yes
<br>checking for getwd... yes
<br>checking for kill... yes
<br>checking for link... yes
<br>checking for lstat... yes
<br>checking for mkfifo... yes
<br>checking for mktime... yes
<br>checking for mremap... no
<br>checking for nice... yes
<br>checking for pathconf... yes
<br>checking for pause... yes
<br>checking for plock... yes
<br>checking for poll... yes
<br>checking for pthread_init... no
<br>checking for putenv... yes
<br>checking for readlink... yes
<br>checking for select... yes
<br>checking for setegid... yes
<br>checking for seteuid... yes
<br>checking for setgid... yes
<br>checking for setlocale... yes
<br>checking for setregid... yes
<br>checking for setreuid... yes
<br>checking for setsid... yes
<br>checking for setpgid... yes
<br>checking for setuid... yes
<br>checking for setvbuf... yes
<br>checking for sigaction... yes
<br>checking for siginterrupt... yes
<br>checking for sigrelse... yes
<br>checking for strftime... yes
<br>checking for strptime... yes
<br>checking for symlink... yes
<br>checking for sysconf... yes
<br>checking for tcgetpgrp... yes
<br>checking for tcsetpgrp... yes
<br>checking for tempnam... yes
<br>checking for timegm... no
<br>checking for times... yes
<br>checking for tmpfile... yes
<br>checking for tmpnam... yes
<br>checking for tmpnam_r... yes
<br>checking for truncate... yes
<br>checking for uname... yes
<br>checking for waitpid... yes
<br>checking for _getpty... no
<br>checking for openpty... no
<br>checking for openpty in -lutil... no
<br>checking for forkpty... no
<br>checking for forkpty in -lutil... no
<br>checking for fseek64... no
<br>checking for fseeko... yes
<br>checking for fstatvfs... yes
<br>checking for ftell64... no
<br>checking for ftello... yes
<br>checking for statvfs... yes
<br>checking for dup2... yes
<br>checking for getcwd... yes
<br>checking for strdup... yes
<br>checking for strerror... yes
<br>checking for memmove... yes
<br>checking for getpgrp... yes
<br>checking for setpgrp... yes
<br>checking for gettimeofday... yes
<br>checking whether time.h and sys/time.h may both be included... no
<br>checking whether struct tm is in sys/time.h or time.h... sys/time.h
<br>checking for tm_zone in struct tm... no
<br>checking for tzname... no
<br>checking for time.h that defines altzone... no
<br>checking whether sys/select.h and sys/time.h may both be included...
no
<br>checking whether char is unsigned... no
<br>checking for working const... yes
<br>checking for working volatile... yes
<br>checking for working signed char... yes
<br>checking for prototypes... yes
<br>checking for variable length prototypes and stdarg.h... yes
<br>checking for bad exec* prototypes... yes
<br>checking for bad static forward... no
<br>checking whether va_list is an array... no
<br>checking for gethostbyname_r... yes
<br>checking gethostbyname_r with 6 args... no
<br>checking gethostbyname_r with 5 args... no
<br>checking gethostbyname_r with 3 args... no
<br>checking for __fpu_control... no
<br>checking for __fpu_control in -lieee... no
<br>checking for --with-fpectl... no
<br>checking for --with-libm=STRING... default LIBM="-lm"
<br>checking for --with-libc=STRING... default LIBC=""
<br>checking for hypot... yes
<br>checking what malloc(0) returns... nonnull
<br>checking for wchar.h... yes
<br>checking for usable wchar_t... no
<br>checking whether byte ordering is bigendian... yes
<br>checking whether right shift extends the sign bit... yes
<br>checking for getc_unlocked() and friends... yes
<br>checking for socklen_t... yes
<br>checking for build directories... done
<br>updating cache ./config.cache
<br>creating ./config.status
<br>creating Makefile.pre
<br>creating Modules/Setup.config
<br>creating config.h
<br>creating Setup
<br>creating Setup.local
<br>creating Makefile
<br>&nbsp;
<p>Make errors:
<p>make
<br>gcc -c -g -O2 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H&nbsp;
-o Modules/python.o Modules/python.c
<br>In file included from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/time.h:90,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
from /usr/include/sys/time.h:405,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
from /usr/include/sys/select.h:17,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/types.h:278,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
from /usr/include/sys/wait.h:20,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
from Include/Python.h:50,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
from Modules/python.c:3:
<br>/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
<br>/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct
or union
<br>/usr/include/sys/siginfo.h:76: parse error before `}'
<br>*** Error code 1
<br>make: Fatal error: Command failed for target `Modules/python.o'
<br>&nbsp;
<p>I hope this helps
<p>Thanks
<br>Mark
<pre>--&nbsp;
Mark Hernandez&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; email: markah@tality.com
Tality, LP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Phone: 919.481.6819
Digital IC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FAX:&nbsp;&nbsp; 919.380.3903
200 Regency Forest Drive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Suite 260&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Cary, NC 27511</pre>
&nbsp;</html>

--------------533BDB4792A3F3A47AB3E214--