[tor-bugs] #6173 [Tor Client]: tor-0.2.3.17 fails to compile FreeBSD 8x

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Jun 15 22:51:38 UTC 2012


#6173: tor-0.2.3.17 fails to compile FreeBSD 8x
------------------------+---------------------------------------------------
 Reporter:  grarpamp    |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  major       |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client  |        Version:  Tor: 0.2.3.17-beta
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------
 On FreeBSD 8x i386.
 Note 0.2.3.16 is working fine.


 checking size of int8_t... Segmentation fault (core dumped)
 0
 checking size of int16_t... Segmentation fault (core dumped)
 0
 checking size of int32_t... Segmentation fault (core dumped)
 0
 checking size of int64_t... Segmentation fault (core dumped)
 0
 checking size of uint8_t... Segmentation fault (core dumped)
 0
 checking size of uint16_t... Segmentation fault (core dumped)
 0
 checking size of uint32_t... Segmentation fault (core dumped)
 0
 checking size of uint64_t... Segmentation fault (core dumped)
 0
 checking size of intptr_t... Segmentation fault (core dumped)
 0
 checking size of uintptr_t... Segmentation fault (core dumped)
 0
 checking size of char... Segmentation fault (core dumped)
 0
 checking size of short... Segmentation fault (core dumped)
 0
 checking size of int... Segmentation fault (core dumped)
 0
 checking size of long... Segmentation fault (core dumped)
 0
 checking size of long long... Segmentation fault (core dumped)
 0
 checking size of __int64... 0
 checking size of void *... Segmentation fault (core dumped)
 0
 checking size of time_t... Segmentation fault (core dumped)
 0
 checking size of size_t... Segmentation fault (core dumped)
 0

 checking whether time_t is signed... Segmentation fault (core dumped)
 yes
 checking whether size_t is signed... Segmentation fault (core dumped)
 yes
 configure: error: You have a signed size_t; that's grossly nonconformant.
 make: no target to make.
 make: don't know how to make install. Stop


 configure:9482: checking size of uint64_t
 configure:9487: gcc -o conftest -g -O2 -D_FORTIFY_SOURCE=2 -fstack-
 protector-all -Wstack-protector -fwrapv -fPIE -static
 -I${top_srcdir}/src/common -static -pie -z relro -z now conftest.c
 -lpthread  >&5
 configure:9487: $? = 0
 configure:9487: ./conftest
 configure:9487: $? = 139
 configure: program exited with status 139
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define PACKAGE "tor"
 | #define VERSION "0.2.3.17-beta"
 | #define ENABLE_BUF_FREELISTS 1
 | #define ENABLE_THREADS 1
 | #define FLEXIBLE_ARRAY_MEMBER /**/
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_CLOCK_GETTIME 1
 | #define HAVE_FLOCK 1
 | #define HAVE_GETADDRINFO 1
 | #define HAVE_GETIFADDRS 1
 | #define HAVE_GETRLIMIT 1
 | #define HAVE_GETTIMEOFDAY 1
 | #define HAVE_GMTIME_R 1
 | #define HAVE_INET_ATON 1
 | #define HAVE_IOCTL 1
 | #define HAVE_LOCALTIME_R 1
 | #define HAVE_MEMMEM 1
 | #define HAVE_SOCKETPAIR 1
 | #define HAVE_STRLCAT 1
 | #define HAVE_STRLCPY 1
 | #define HAVE_STRPTIME 1
 | #define HAVE_STRTOK_R 1
 | #define HAVE_STRTOULL 1
 | #define HAVE_SYSCONF 1
 | #define HAVE_UNAME 1
 | #define HAVE_VASPRINTF 1
 | #define HAVE_MALLOC_USABLE_SIZE 1
 | #define HAVE_PTHREAD_H 1
 | #define HAVE_PTHREAD_CREATE 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_EVENT_GET_VERSION 1
 | #define HAVE_EVENT_GET_VERSION_NUMBER 1
 | #define HAVE_EVENT_GET_METHOD 1
 | #define HAVE_EVENT_SET_LOG_CALLBACK 1
 | #define HAVE_EVENT_BASE_LOOPEXIT 1
 | #define HAVE_EVENT2_EVENT_H 1
 | #define HAVE_EVENT2_DNS_H 1
 | #define HAVE_EVENT2_BUFFEREVENT_SSL_H 1
 | #define HAVE_ASSERT_H 1
 | #define HAVE_ERRNO_H 1
 | #define HAVE_FCNTL_H 1
 | #define HAVE_SIGNAL_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_SYS_FCNTL_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_TIME_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_ARPA_INET_H 1
 | #define HAVE_GRP_H 1
 | #define HAVE_IFADDRS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_LIMITS_H 1
 | #define HAVE_MACHINE_LIMITS_H 1
 | #define HAVE_MALLOC_NP_H 1
 | #define HAVE_NETDB_H 1
 | #define HAVE_NETINET_IN_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_SYS_FILE_H 1
 | #define HAVE_SYS_IOCTL_H 1
 | #define HAVE_SYS_LIMITS_H 1
 | #define HAVE_SYS_MMAN_H 1
 | #define HAVE_SYS_PARAM_H 1
 | #define HAVE_SYS_RESOURCE_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_SYS_SYSLIMITS_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_UN_H 1
 | #define HAVE_SYS_WAIT_H 1
 | #define HAVE_SYSLOG_H 1
 | #define HAVE_UTIME_H 1
 | #define HAVE_SYS_PARAM_H 1
 | #define HAVE_NET_IF_H 1
 | #define HAVE_NET_PFVAR_H 1
 | #define USE_TRANSPARENT 1
 | #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
 | #define SIZEOF_INT8_T 0
 | #define SIZEOF_INT16_T 0
 | #define SIZEOF_INT32_T 0
 | #define SIZEOF_INT64_T 0
 | #define SIZEOF_UINT8_T 0
 | #define SIZEOF_UINT16_T 0
 | #define SIZEOF_UINT32_T 0
 | /* end confdefs.h.  */
 | #include <stdio.h>
 | #ifdef HAVE_SYS_TYPES_H
 | # include <sys/types.h>
 | #endif
 | #ifdef HAVE_SYS_STAT_H
 | # include <sys/stat.h>
 | #endif
 | #ifdef STDC_HEADERS
 | # include <stdlib.h>
 | # include <stddef.h>
 | #else
 | # ifdef HAVE_STDLIB_H
 | #  include <stdlib.h>
 | # endif
 | #endif
 | #ifdef HAVE_STRING_H
 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 | #  include <memory.h>
 | # endif
 | # include <string.h>
 | #endif
 | #ifdef HAVE_STRINGS_H
 | # include <strings.h>
 | #endif
 | #ifdef HAVE_INTTYPES_H
 | # include <inttypes.h>
 | #endif
 | #ifdef HAVE_STDINT_H
 | # include <stdint.h>
 | #endif
 | #ifdef HAVE_UNISTD_H
 | # include <unistd.h>
 | #endif
 | static long int longval () { return (long int) (sizeof (uint64_t)); }
 | static unsigned long int ulongval () { return (long int) (sizeof
 (uint64_t)); }
 | #include <stdio.h>
 | #include <stdlib.h>
 | int
 | main ()
 | {
 |
 |   FILE *f = fopen ("conftest.val", "w");
 |   if (! f)
 |     return 1;
 |   if (((long int) (sizeof (uint64_t))) < 0)
 |     {
 |       long int i = longval ();
 |       if (i != ((long int) (sizeof (uint64_t))))
 |       return 1;
 |       fprintf (f, "%ld", i);
 |     }
 |   else
 |     {
 |       unsigned long int i = ulongval ();
 |       if (i != ((long int) (sizeof (uint64_t))))
 |       return 1;
 |       fprintf (f, "%lu", i);
 |     }
 |   /* Do not output a trailing newline, as this causes \r\n confusion
 |      on some platforms.  */
 |   return ferror (f) || fclose (f) != 0;
 |
 |   ;
 |   return 0;
 | }
 configure:9501: result: 0

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6173>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list