I have never had any problem using gcc, solaris and freebsd.

marc

On Mon, 30 Dec 2002 15:58:00 -0500
Stefan Parvu <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I am trying to learn aolserver. First I got the source code and tried to
> compile:
>
> the compilation ended with errors. I am using Solaris 9, SPARC with Sun's
> compiler cc. I tried with gcc compiler but with the same results.
>
> jupiter 2032 $ uname -a
> SunOS jupiter 5.9 Generic_112233-02 sun4u sparc SUNW,Ultra-5_10
>
> jupiter 1083 $ CC=cc; export CC
>
>
> jupiter 1084 $ ./configure --prefix=/export/home/stefan/tcltk
> --with-tcl=/export/home/stefan/tcltk/lib --enable-threads
> checking for Tcl configuration... found
> /export/home/stefan/tcltk/lib/tclConfig.sh
> checking for existence of /export/home/stefan/tcltk/lib/tclConfig.sh... loading
> checking for build with symbols... no
> checking for gcc... cc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... no
> checking whether cc accepts -g... yes
> checking for timegm... no
> checking for fork1... yes
> checking for poll... yes
> checking for drand48... yes
> checking for random... yes
> checking for _NSGetEnviron... no
> checking how to run the C preprocessor... cc -E
> checking for mach-o/dyld.h... no
> checking for dl.h... no
> checking need for dup high... yes
> checking msg_controllen in struct msghdr... no
> configure: creating ./config.status
> config.status: creating include/Makefile.global
> config.status: creating include/Makefile.module
>
> ###  What is this ... checking for _NSGetEnviron... no ???
>
> Then I started gmake:
>
> $ gmake
>
> ...
> ...
>
> cc -O  -KPIC  -I../include -I/export/home/stefan/tcltk/include -DNO_CONST
> -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1
> -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1
> -DHAVE_READDIR_R=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_DIRENT64=1
> -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DWORDS_BIGENDIAN=1
> -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1
> -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1
> -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1
> -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_GMTIME_R=1
> -DHAVE_LOCALTIME_R=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1
> -Dstrtod=fixstrtod -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1
> -DHAVE_LANGINFO=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1
> -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1  -DHAVE_FORK1=1 -DHAVE_POLL=1
> -DHAVE_DRAND48=1 -DHAVE_RANDOM=1 -DUSE_DUPHIGH=1    -c -o tclenv.o tclenv.c
> "tclenv.c", line 87: warning: implicit function declaration: Ns_GetEnviron
> "tclenv.c", line 87: warning: improper pointer/integer combination: op "="
> "tclenv.c", line 225: identifier redeclared: Ns_GetEnviron
>         current : function(void) returning pointer to pointer to char
>         previous: function() returning int : "tclenv.c", line 87
> cc: acomp failed for tclenv.c
> gmake[1]: *** [tclenv.o] Error 2
> gmake[1]: Leaving directory `/export/home/stefan/aolserver-3.5.1-src/nsd'
> gmake: *** [all] Error 1
>
>
> Some ideas what is going wrong ?
>
> Thanks a lot
> stefan

Reply via email to