[Spread-users] Serious compiling problem on Solaris 10x86

joker m_e240_elegance at yahoo.com
Mon May 29 03:34:19 EDT 2006


I'm trying to build the source, but there are errors:

# cd spread-src-3.17.3
# ./configure
creating cache ./config.cache
checking host system type... i386-pc-solaris2.10
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a
cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... cc -E
checking for ranlib... ranlib
checking for a BSD compatible install...
buildtools/install-sh -c
checking whether ln -s works... yes
checking for bison... bison -y
checking for flex... no
checking for ar... /usr/ccs/bin/ar
checking for perl5... no
checking for perl... /usr/bin/perl
checking for inline... inline
checking if we need -pthread for threads... no
checking for pthread_create in -lpthread... yes
checking for thr_create in -lthread... yes
checking for sem_wait in -lposix4... yes
checking for gethostbyaddr in -lnsl... yes
checking for socket in -lsocket... yes
checking for strftime... yes
checking for arpa/inet.h... yes
checking for assert.h... yes
checking for errno.h... yes
checking for grp.h... yes
checking for limits.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking for process.h... no
checking for pthread.h... yes
checking for pwd.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdint.h... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/inttypes.h... yes
checking for sys/ioctl.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for sys/stat.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/types.h... yes
checking for sys/uio.h... yes
checking for sys/un.h... yes
checking for sys/filio.h... yes
checking for time.h... yes
checking for unistd.h... yes
checking for windows.h... no
checking for winsock.h... no
checking for bcopy... yes
checking for inet_aton... no
checking for inet_ntoa... yes
checking for inet_ntop... yes
checking for memmove... yes
checking for setsid... yes
checking for snprintf... yes
checking for strerror... yes
checking for lrand48... yes
checking for gettimeofday... yes
checking for time... yes
checking whether snprintf correctly terminates long
strings... yes
checking size of char... 1
checking size of short int... 2
checking size of int... 4
checking size of long int... 4
checking size of long long int... 8
checking for windows arch... no
checking for struct timezone type... yes
checking for struct sockopt_len_t type... no
checking for struct msghdr type... yes
checking for struct msghdr accrights... yes
checking for u_int type... yes
checking for intXX_t types... yes
checking for int64_t type... yes
checking for u_intXX_t types... no
checking for u_int64_t types... no
checking for uintXX_t types... yes
checking for socklen_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for clock_t... yes
checking for sa_family_t... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking for struct in6_addr... yes
checking for struct addrinfo... yes
checking for struct timeval... yes
checking for sun_len field in struct sockaddr_un... no
checking for ss_family field in struct
sockaddr_storage... yes
checking for __ss_family field in struct
sockaddr_storage... no
checking for pid_t... yes
checking if libc defines __progname... no
checking if libc defines sys_errlist... yes
checking if libc defines sys_nerr... yes
checking Check Spread's major version... 3
checking Check Spread's minor version... 17
checking Check Spread's patch version... 3
checking for nroff... /usr/bin/nroff
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h

Spread has been configured with the following options:
                    User binaries: /usr/local/bin
                  System binaries: /usr/local/sbin
              Configuration files: /usr/local/etc
                   User libraries: /usr/local/lib
            Shared Spread Library: libspread.so
Shared Thread-safe Spread Library: libtspread.so
                     Header files: /usr/local/include
                     Manual pages: /usr/local/man/manX
                         PID file: /var/run
                   Manpage format: man

              Host: i386-pc-solaris2.10
          Compiler: cc
    Compiler flags: -g
Preprocessor flags:
      Linker flags:
         Libraries: -lsocket -lnsl

# make
cc -g -I. -I.   -DHAVE_CONFIG_H -c spread.c
cc -g -I. -I.   -DHAVE_CONFIG_H -c protocol.c
"protocol.c", line 1234: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to function(int, pointer to
void) returning void : "sp_                           
                                                      
               events.h", line 83
        argument : pointer to function() returning
void
cc -g -I. -I.   -DHAVE_CONFIG_H -c session.c
"session.c", line 161: warning: assignment type
mismatch:
        pointer to unsigned char "=" pointer to char
"session.c", line 827: warning: assignment type
mismatch:
        pointer to function(pointer to struct
session_auth_info {int mbox, pointer                  
                                                      
                         to void module_data, int
num_required_auths, int completed_required_auths,
array[                                                
                                                 3] of
int required_auth_methods, array[3] of int
required_auth_results}) returning                     
                                                      
                      void "=" pointer to void
"session.c", line 925: warning: assignment type
mismatch:
        pointer to function(pointer to struct
session_auth_info {int mbox, pointer                  
                                                      
                         to void module_data, int
num_required_auths, int completed_required_auths,
array[                                                
                                                 3] of
int required_auth_methods, array[3] of int
required_auth_results}) returning                     
                                                      
                      void "=" pointer to void
"session.c", line 955: warning: assignment type
mismatch:
        pointer to function(pointer to struct
session_auth_info {int mbox, pointer                  
                                                      
                         to void module_data, int
num_required_auths, int completed_required_auths,
array[                                                
                                                 3] of
int required_auth_methods, array[3] of int
required_auth_results}) returning                     
                                                      
                      void "=" pointer to void
cc -g -I. -I.   -DHAVE_CONFIG_H -c groups.c
cc -g -I. -I.   -DHAVE_CONFIG_H -c alarm.c
cc -g -I. -I.   -DHAVE_CONFIG_H -c events.c
cc -g -I. -I.   -DHAVE_CONFIG_H -c memory.c
"memory.c", line 136: reference to static identifier
"Mem_Bytes_Allocated" in exte                         
                                                      
                 rn inline function
"memory.c", line 140: reference to static identifier
"Mem_Obj_Inuse" in extern inl                         
                                                      
                 ine function
"memory.c", line 144: reference to static identifier
"Mem_Obj_Allocated" in extern                         
                                                      
                  inline function
"memory.c", line 148: reference to static identifier
"Mem_Max_Bytes" in extern inl                         
                                                      
                 ine function
"memory.c", line 152: reference to static identifier
"Mem_Max_Obj_Inuse" in extern                         
                                                      
                  inline function
"memory.c", line 156: reference to static identifier
"Mem_Max_Objects" in extern i                         
                                                      
                 nline function
"memory.c", line 160: reference to static identifier
"Mem" in extern inline functi                         
                                                      
                 on
"memory.c", line 166: reference to static identifier
"Mem" in extern inline functi                         
                                                      
                 on
"memory.c", line 170: reference to static identifier
"Mem" in extern inline functi                         
                                                      
                 on
"memory.c", line 175: reference to static identifier
"Mem" in extern inline functi                         
                                                      
                 on
"memory.c", line 179: reference to static identifier
"Mem" in extern inline functi                         
                                                      
                 on
"memory.c", line 183: reference to static identifier
"Mem" in extern inline functi                         
                                                      
                 on
"memory.c", line 187: reference to static identifier
"Mem" in extern inline functi                         
                                                      
                 on
cc: acomp failed for memory.c
*** Error code 2
make: Fatal error: Command failed for target
`memory.o'


Send instant messages to your online friends http://uk.messenger.yahoo.com 




More information about the Spread-users mailing list