Can't compile on Solaris 2.5 
Author Message
 Can't compile on Solaris 2.5

I am trying to install tcl/tk on a solaris 2.5
machine with the Sparcworks compiler.  It is failing and here are the messages:
# cd /opt/tcl/tcl*
# cd unix
# ./configure
loading cache ./config.cache
checking for ranlib... (cached) :
checking for prefix by ... checking for tclsh... no
checking whether cross-compiling... (cached) yes
checking for getcwd... (cached) no
checking for opendir... (cached) no
checking for strstr... (cached) no
checking for strtol... (cached) no
checking for tmpnam... (cached) no
checking for waitpid... (cached) no
checking for strerror... (cached) no
checking for getwd... (cached) no
checking for wait3... (cached) no
checking for uname... (cached) no
checking for sin... (cached) no
checking for -lieee... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for unistd.h... (cached) yes
checking dirent.h... yes
checking for errno.h... (cached) yes
checking for float.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking proper strstr implementation... broken, using substitute
checking for strtoul... (cached) no
checking for strtod... (cached) no
checking for strtod... (cached) no
checking for ANSI C header files... (cached) no
checking for mode_t... (cached) no
checking for pid_t... (cached) no
checking for size_t... (cached) no
checking for uid_t in sys/types.h... (cached) no
checking for opendir... (cached) no
checking union wait... no
checking matherr support... no
checking for vfork... (cached) no
checking for strncasecmp... (cached) no
checking for -lsocket... (cached) no
checking for BSDgettimeofday... (cached) no
checking for gettimeofday... (cached) no
checking for gettimeofday declaration... present
checking system version (for dynamic loading)... SunOS-5.5
checking for -ldl... (cached) no
creating ./config.status
creating Makefile
# make
cc -c -O -I./../generic -I.  -DNO_STRERROR=1 -DNO_GETWD=1 -DNO_WAIT3=1 -DNO_UNAM
E=1 -DHAVE_UNISTD_H=1 -Dmode_t=int -Dpid_t=int -Dsize_t=unsigned -Duid_t=int -Dg
id_t=int -DUSE_DIRENT2_H=1 -DNO_UNION_WAIT=1 -Dvfork=fork -DNO_GETTOD=1       -D
TCL_LIBRARY=\"/usr/local/lib/tcl7.5\" -DTCL_SHLIB_EXT=\".so\" ./../generic/regex
p.c
"/usr/include/stdio.h", line 25: invalid type combination
"/usr/include/stdio.h", line 25: warning: useless declaration
"/usr/include/stdio.h", line 25: warning: typedef declares no type name
"/usr/include/stdlib.h", line 48: warning: useless declaration
"/usr/include/stdlib.h", line 48: warning: typedef declares no type name
"/usr/include/sys/types.h", line 167: warning: modification of typedef with "int
" ignored
"/usr/include/sys/types.h", line 167: invalid type combination
"/usr/include/sys/types.h", line 167: warning: useless declaration
"/usr/include/sys/types.h", line 167: warning: typedef declares no type name
"/usr/include/sys/types.h", line 174: invalid type combination
"/usr/include/sys/types.h", line 174: warning: useless declaration
"/usr/include/sys/types.h", line 174: warning: typedef declares no type name
"/usr/include/sys/types.h", line 178: warning: useless declaration
"/usr/include/sys/types.h", line 178: warning: typedef declares no type name
"./../generic/regexp.c", line 834: cannot recover from previous errors
cc: acomp failed for ./../generic/regexp.c
*** Error code 2
make: Fatal error: Command failed for target `regexp.o'

Is there something wrong with my include files or something???  Any help would be
greatly appreciated!
--
-----------------------------------------------------------------
*       Scott Nemitz                                            *
*       Information Systems Manager                             *
*       Niro Hudson, Inc.                                       *
*       1-800-for-Niro                                          *

*                                                               *
-----------------------------------------------------------------



Sat, 28 Nov 1998 03:00:00 GMT  
 Can't compile on Solaris 2.5

I noticed that your configure says your cross-compiling.  I don't know
anything about the SparcWorks compiler, but when using gcc, if you get
such a statement, it means you forgot to set your CC and CPP environment
variables.  If no one else answers your question, I'd recommend using gcc
to install TCL/TK.

Incidentally, I doubt that your environment variables are the problem
here since you want to use cc to do the compile.  Just one more thing:  
make sure /usr/ucb is not in your path or LD_LIBRARY_PATH.  The
porting.notes file says that.

Good luck!

-----------------
Sandeep V. Tamhankar
Analysis Technician
Signaling Capabilities Analysis

The statements herein contained are my own and not those of my company.


WWW:    http://stos-www.cit.cornell.edu/Sandeep_html/Sandeep.html



Mon, 30 Nov 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Compiling Fortran on Solaris 2.5 for 2.4

2. Compiling Python threads under Solaris 2.5

3. Compile Problem in Sun Solaris 2.5

4. Compiling gcl-2.2 on solaris 2.5 (aka sunos 5.5)

5. compiling tix 4.1.0 under Solaris 2.5

6. Compiling on Solaris 2.5 with CenterLine C++

7. Compile Problems on Solaris 2.5

8. compiling tclX on Solaris 2.5

9. compile on Solaris 2.5

10. Troubles compiling Tcl 7.5b1 under Solaris 2.5

11. Can't make libtk4.1.so and other shared lib under Solaris 2.5

12. awk on Solaris 2.5

 

 
Powered by phpBB® Forum Software