Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Tor build fails

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
samip537
n00b
n00b
Posts: 4
Joined: Tue Jul 12, 2016 2:48 pm

Tor build fails

  • Quote

Post by samip537 » Tue Jul 12, 2016 2:57 pm

Hi there,

I'm trying to install Tor with hardening, but failing badly at it.

I'm sorry, but I'm pretty new to Gentoo, but not to Linux in general.

Complete build log:

Code: Select all

 * Package:    net-misc/tor-0.2.7.6
 * Repository: gentoo
 * Maintainer: blueness@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux seccomp tor-hardening userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking tor-0.2.7.6.tar.gz to /var/tmp/portage/net-misc/tor-0.2.7.6/work
>>> Source unpacked in /var/tmp/portage/net-misc/tor-0.2.7.6/work
>>> Preparing source in /var/tmp/portage/net-misc/tor-0.2.7.6/work/tor-0.2.7.6 ...
 * Applying tor-0.2.7.4-torrc.sample.patch ...                                                                                                                                        [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/tor-0.2.7.6/work/tor-0.2.7.6 ...
 * econf: updating tor-0.2.7.6/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating tor-0.2.7.6/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 --enable-system-torrc --enable-asciidoc --docdir=/usr/share/doc/tor-0.2.7.6 --disable-instrument-downloads --disable-bufferevents --disable-libscrypt --enable-seccomp --disable-systemd --enable-gcc-hardening --enable-linker-hardening --disable-transparent --disable-tor2web-mode --disable-unittests --disable-coverage
checking for a BSD-compatible install... /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for perl... /usr/bin/perl
checking for sed... sed
checking for asciidoc... /usr/bin/asciidoc
checking for a2x... /usr/bin/a2x
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C99... -std=gnu99
checking for python... python
checking for flexible array members... yes
checking for working C99 mid-block declaration syntax... yes
checking for working C99 designated initializers... yes
checking for win32... no
checking for MIPSpro compiler... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing dlopen... -ldl
checking for library containing inet_aton... none required
checking for library containing backtrace... none required
checking for library containing clock_gettime... none required
checking for library containing pthread_create... -lpthread
checking for library containing pthread_detach... none required
checking for _NSGetEnviron... no
checking for accept4... yes
checking for backtrace... yes
checking for backtrace_symbols_fd... yes
checking for clock_gettime... yes
checking for eventfd... yes
checking for flock... yes
checking for ftime... yes
checking for getaddrinfo... yes
checking for getifaddrs... yes
checking for getpass... yes
checking for getrlimit... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for inet_aton... yes
checking for ioctl... yes
checking for issetugid... no
checking for llround... no
checking for localtime_r... yes
checking for lround... no
checking for memmem... yes
checking for pipe... yes
checking for pipe2... yes
checking for prctl... yes
checking for readpassphrase... no
checking for rint... no
checking for sigaction... yes
checking for socketpair... yes
checking for statvfs... yes
checking for strlcat... no
checking for strlcpy... no
checking for strnlen... yes
checking for strptime... yes
checking for strtok_r... yes
checking for strtoull... yes
checking for sysconf... yes
checking for sysctl... yes
checking for uname... yes
checking for usleep... yes
checking for vasprintf... yes
checking for _vscprintf... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create... yes
checking for libevent directory... (system)
checking whether we need extra options to link libevent... (none)
checking for event_get_version_number... yes
checking for evutil_secure_rng_set_urandom_device_file... yes
checking for evutil_secure_rng_init... yes
checking for struct event.min_heap_idx... no
checking event2/event.h usability... yes
checking event2/event.h presence... yes
checking for event2/event.h... yes
checking event2/dns.h usability... yes
checking event2/dns.h presence... yes
checking for event2/dns.h... yes
checking event2/bufferevent_ssl.h usability... yes
checking event2/bufferevent_ssl.h presence... yes
checking for event2/bufferevent_ssl.h... yes
checking for library containing pow... -lm
checking for openssl directory... (system)
checking whether we need extra options to link openssl... (none)
checking for struct ssl_method_st.get_cipher_by_char... no
checking for SSL_SESSION_get_master_key... no
checking for SSL_get_server_random... no
checking for SSL_get_client_ciphers... no
checking for SSL_get_client_random... no
checking for SSL_CIPHER_find... yes
checking for TLS_method... no
checking for EVP_PBE_scrypt... no
checking for zlib directory... (system)
checking whether we need extra options to link zlib... (none)
checking whether the compiler accepts -fstack-protector-all... no
checking whether the compiler accepts -Wstack-protector... no
checking whether the compiler accepts -fwrapv... no
checking whether the compiler accepts --param ssp-buffer-size=1... no
checking whether the compiler accepts -fPIE... no
checking whether the linker accepts -pie... no
checking whether the linker accepts -z relro -z now... no
checking whether the linker accepts -rdynamic... no
checking whether the compiler accepts -fomit-frame-pointer... no
checking whether the compiler accepts -fasynchronous-unwind-tables... no
checking seccomp.h usability... yes
checking seccomp.h presence... yes
checking for seccomp.h... yes
checking for library containing seccomp_init... -lseccomp
checking whether we can use curve25519-donna-c64... yes
checking crypto_scalarmult_curve25519.h usability... no
checking crypto_scalarmult_curve25519.h presence... no
checking for crypto_scalarmult_curve25519.h... no
checking nacl/crypto_scalarmult_curve25519.h usability... no
checking nacl/crypto_scalarmult_curve25519.h presence... no
checking for nacl/crypto_scalarmult_curve25519.h... no
checking for nacl compiled with a fast curve25519 implementation... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for string.h... (cached) yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking machine/limits.h usability... no
checking machine/limits.h presence... no
checking for machine/limits.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking malloc/malloc.h usability... no
checking malloc/malloc.h presence... no
checking for malloc/malloc.h... no
checking malloc_np.h usability... no
checking malloc_np.h presence... no
checking for malloc_np.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in6.h usability... no
checking netinet/in6.h presence... no
checking for netinet/in6.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking readpassphrase.h usability... no
checking readpassphrase.h presence... no
checking for readpassphrase.h... no
checking for stdint.h... (cached) yes
checking sys/eventfd.h usability... yes
checking sys/eventfd.h presence... yes
checking for sys/eventfd.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/limits.h usability... no
checking sys/limits.h presence... no
checking for sys/limits.h... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/utime.h usability... no
checking sys/utime.h presence... no
checking for sys/utime.h... no
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for sys/param.h... (cached) yes
checking for net/if.h... yes
checking for net/pfvar.h... no
checking for linux/if.h... yes
checking for linux/netfilter_ipv4.h... yes
checking for linux/netfilter_ipv6/ip6_tables.h... yes
checking for struct timeval.tv_sec... yes
checking size of int8_t... 1
checking size of int16_t... 2
checking size of int32_t... 4
checking size of int64_t... 8
checking size of uint8_t... 1
checking size of uint16_t... 2
checking size of uint32_t... 4
checking size of uint64_t... 8
checking size of intptr_t... 8
checking size of uintptr_t... 8
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of __int64... 0
checking size of void *... 8
checking size of time_t... 8
checking size of size_t... 8
checking size of pid_t... 4
checking for uint... yes
checking for u_char... yes
checking for ssize_t... yes
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking sys/ucontext.h usability... yes
checking sys/ucontext.h presence... yes
checking for sys/ucontext.h... yes
checking cygwin/signal.h usability... no
checking cygwin/signal.h presence... no
checking for cygwin/signal.h... no
checking how to access the program counter from a struct ucontext... uc_mcontext.gregs[REG_RIP]
checking for struct in6_addr... yes
checking for struct sockaddr_in6... yes
checking for sa_family_t... yes
checking for struct in6_addr.s6_addr32... no
checking for struct in6_addr.s6_addr16... no
checking for struct sockaddr_in.sin_len... no
checking for struct sockaddr_in6.sin6_len... no
checking for rlim_t... yes
checking whether time_t is signed... yes
checking whether size_t is signed... no
checking whether enum always is signed... no
checking size of socklen_t... 4
checking size of cell_t... 0
checking whether memset(0) sets pointers to NULL... yes
checking whether memset(0) sets doubles to 0.0... yes
checking whether we can malloc(0) safely.... yes
checking whether we are using 2s-complement arithmetic... yes
checking whether right-shift on negative values does sign-extension... yes
checking whether to use dmalloc (debug memory allocation library)... no
checking for mallinfo... yes
checking for mlockall... yes
checking whether mlockall is declared... yes
checking for getresuid... yes
checking for getresgid... yes
checking for gethostbyname_r... yes
checking how many arguments gethostbyname_r() wants... 6
checking whether the C compiler supports __func__... yes
checking whether the C compiler supports __FUNC__... no
checking whether the C compiler supports __FUNCTION__... yes
checking whether we have extern char **environ already declared... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Doxyfile
config.status: creating Makefile
config.status: creating contrib/dist/suse/tor.sh
config.status: creating contrib/operator-tools/tor.logrotate
config.status: creating contrib/dist/tor.sh
config.status: creating contrib/dist/torctl
config.status: creating contrib/dist/tor.service
config.status: creating src/config/torrc.sample
config.status: creating src/config/torrc.minimal
config.status: creating scripts/maint/checkOptionDocs.pl
config.status: creating scripts/maint/updateVersions.pl
config.status: creating orconfig.h
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/tor-0.2.7.6/work/tor-0.2.7.6 ...
make -j4
make  all-am
make[1]: Entering directory '/var/tmp/portage/net-misc/tor-0.2.7.6/work/tor-0.2.7.6'
rm -f micro-revision.tmp; \
if test -d "./.git" && \
                test -x "`which git 2>&1;true`"; then \
        HASH="`cd "." && git rev-parse --short=16 HEAD`"; \
        echo \"$HASH\" > micro-revision.tmp; \
fi; \
if test ! -f micro-revision.tmp; then \
        if test ! -f micro-revision.i; then \
                echo '""' > micro-revision.i; \
        fi; \
elif test ! -f micro-revision.i || \
                test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
        mv micro-revision.tmp micro-revision.i; \
fi; \
rm -f micro-revision.tmp; \
true
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext -I./src/ext/trunnel -I./src/trunnel -I./src/common -Isrc/common -I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var/lib\"" -DBINDIR="\"/usr/bin\"" -I./src/common     -O2 -pipe -D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -c -o src/ext/trunnel/trunnel.o src/ext/trunnel/trunnel.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext -I./src/ext/trunnel -I./src/trunnel -I./src/common -Isrc/common -I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var/lib\"" -DBINDIR="\"/usr/bin\"" -I./src/common     -O2 -pipe -D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -c -o src/common/compat_pthreads.o src/common/compat_pthreads.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext -I./src/ext/trunnel -I./src/trunnel -I./src/common -Isrc/common -I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var/lib\"" -DBINDIR="\"/usr/bin\"" -I./src/common     -O2 -pipe -D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -c -o src/common/aes.o src/common/aes.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext -I./src/ext/trunnel -I./src/trunnel -I./src/common -Isrc/common -I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var/lib\"" -DBINDIR="\"/usr/bin\"" -I./src/common     -O2 -pipe -D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -c -o src/common/crypto.o src/common/crypto.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext -I./src/ext/trunnel -I./src/trunnel -I./src/common -Isrc/common -I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var/lib\"" -DBINDIR="\"/usr/bin\"" -I./src/common     -O2 -pipe -D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -c -o src/common/crypto_pwbox.o src/common/crypto_pwbox.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
src/common/aes.c:85:18: error: field ‘evp’ has incomplete type
   EVP_CIPHER_CTX evp;
                  ^
Makefile:3194: recipe for target 'src/common/aes.o' failed
make[1]: *** [src/common/aes.o] Error 1
make[1]: *** Waiting for unfinished jobs....
src/common/crypto.c: In function ‘crypto_force_rand_ssleay’:
src/common/crypto.c:254:3: warning: implicit declaration of function ‘RAND_SSLeay’ [-Wimplicit-function-declaration]
   if (RAND_get_rand_method() != RAND_SSLeay()) {
   ^
src/common/crypto.c:254:30: warning: comparison between pointer and integer
   if (RAND_get_rand_method() != RAND_SSLeay()) {
                              ^
src/common/crypto.c:258:26: warning: passing argument 1 of ‘RAND_set_rand_method’ makes pointer from integer without a cast
     RAND_set_rand_method(RAND_SSLeay());
                          ^
In file included from /usr/local/include/openssl/engine.h:28:0,
                 from src/common/crypto.c:40:
/usr/local/include/openssl/rand.h:37:5: note: expected ‘const struct RAND_METHOD *’ but argument is of type ‘int’
 int RAND_set_rand_method(const RAND_METHOD *meth);
     ^
src/common/crypto.c: In function ‘crypto_global_init’:
src/common/crypto.c:368:7: warning: implicit declaration of function ‘ENGINE_get_default_ECDH’ [-Wimplicit-function-declaration]
       log_engine("ECDH", ENGINE_get_default_ECDH());
       ^
src/common/crypto.c:368:26: warning: passing argument 2 of ‘log_engine’ makes pointer from integer without a cast
       log_engine("ECDH", ENGINE_get_default_ECDH());
                          ^
src/common/crypto.c:169:1: note: expected ‘struct ENGINE *’ but argument is of type ‘int’
 log_engine(const char *fn, ENGINE *e)
 ^
src/common/crypto.c:369:7: warning: implicit declaration of function ‘ENGINE_get_default_ECDSA’ [-Wimplicit-function-declaration]
       log_engine("ECDSA", ENGINE_get_default_ECDSA());
       ^
src/common/crypto.c:369:27: warning: passing argument 2 of ‘log_engine’ makes pointer from integer without a cast
       log_engine("ECDSA", ENGINE_get_default_ECDSA());
                           ^
src/common/crypto.c:169:1: note: expected ‘struct ENGINE *’ but argument is of type ‘int’
 log_engine(const char *fn, ENGINE *e)
 ^
src/common/crypto.c: In function ‘crypto_thread_cleanup’:
src/common/crypto.c:408:3: warning: ‘ERR_remove_thread_state’ is deprecated (declared at /usr/local/include/openssl/err.h:244) [-Wdeprecated-declarations]
   ERR_remove_thread_state(NULL);
   ^
In file included from src/common/torlog.h:15:0,
                 from src/common/crypto.c:60:
src/common/crypto.c: In function ‘crypto_pk_write_private_key_to_filename’:
src/common/crypto.c:79:55: error: dereferencing pointer to incomplete type
 #define PRIVATE_KEY_OK(k) ((k) && (k)->key && (k)->key->p)
                                                       ^
src/common/compat.h:148:51: note: in definition of macro ‘PREDICT_UNLIKELY’
 #define PREDICT_UNLIKELY(exp) __builtin_expect(!!(exp), 0)
                                                   ^
src/common/crypto.c:772:3: note: in expansion of macro ‘tor_assert’
   tor_assert(PRIVATE_KEY_OK(env));
   ^
src/common/crypto.c:772:14: note: in expansion of macro ‘PRIVATE_KEY_OK’
   tor_assert(PRIVATE_KEY_OK(env));
              ^
src/common/crypto.c: In function ‘crypto_pk_key_is_private’:
src/common/crypto.c:79:55: error: dereferencing pointer to incomplete type
 #define PRIVATE_KEY_OK(k) ((k) && (k)->key && (k)->key->p)
                                                       ^
src/common/crypto.c:814:10: note: in expansion of macro ‘PRIVATE_KEY_OK’
   return PRIVATE_KEY_OK(key);
          ^
src/common/crypto.c: In function ‘crypto_pk_public_exponent_ok’:
src/common/crypto.c:826:29: error: dereferencing pointer to incomplete type
   return BN_is_word(env->key->e, 65537);
                             ^
In file included from src/common/torlog.h:15:0,
                 from src/common/crypto.c:60:
src/common/crypto.c: In function ‘crypto_pk_cmp_keys’:
src/common/crypto.c:77:54: error: dereferencing pointer to incomplete type
 #define PUBLIC_KEY_OK(k) ((k) && (k)->key && (k)->key->n)
                                                      ^
src/common/compat.h:148:51: note: in definition of macro ‘PREDICT_UNLIKELY’
 #define PREDICT_UNLIKELY(exp) __builtin_expect(!!(exp), 0)
                                                   ^
src/common/crypto.c:847:3: note: in expansion of macro ‘tor_assert’
   tor_assert(PUBLIC_KEY_OK(a));
   ^
src/common/crypto.c:847:14: note: in expansion of macro ‘PUBLIC_KEY_OK’
   tor_assert(PUBLIC_KEY_OK(a));
              ^
src/common/crypto.c:77:54: error: dereferencing pointer to incomplete type
 #define PUBLIC_KEY_OK(k) ((k) && (k)->key && (k)->key->n)
                                                      ^
src/common/compat.h:148:51: note: in definition of macro ‘PREDICT_UNLIKELY’
 #define PREDICT_UNLIKELY(exp) __builtin_expect(!!(exp), 0)
                                                   ^
src/common/crypto.c:848:3: note: in expansion of macro ‘tor_assert’
   tor_assert(PUBLIC_KEY_OK(b));
   ^
src/common/crypto.c:848:14: note: in expansion of macro ‘PUBLIC_KEY_OK’
   tor_assert(PUBLIC_KEY_OK(b));
              ^
src/common/crypto.c:849:27: error: dereferencing pointer to incomplete type
   result = BN_cmp((a->key)->n, (b->key)->n);
                           ^
src/common/crypto.c:849:40: error: dereferencing pointer to incomplete type
   result = BN_cmp((a->key)->n, (b->key)->n);
                                        ^
src/common/crypto.c:852:25: error: dereferencing pointer to incomplete type
   return BN_cmp((a->key)->e, (b->key)->e);
                         ^
src/common/crypto.c:852:38: error: dereferencing pointer to incomplete type
   return BN_cmp((a->key)->e, (b->key)->e);
                                      ^
In file included from src/common/torlog.h:15:0,
                 from src/common/crypto.c:60:
src/common/crypto.c: In function ‘crypto_pk_num_bits’:
src/common/crypto.c:883:22: error: dereferencing pointer to incomplete type
   tor_assert(env->key->n);
                      ^
src/common/compat.h:148:51: note: in definition of macro ‘PREDICT_UNLIKELY’
 #define PREDICT_UNLIKELY(exp) __builtin_expect(!!(exp), 0)
                                                   ^
src/common/crypto.c:883:3: note: in expansion of macro ‘tor_assert’
   tor_assert(env->key->n);
   ^
src/common/crypto.c:885:30: error: dereferencing pointer to incomplete type
   return BN_num_bits(env->key->n);
                              ^
src/common/crypto.c: In function ‘crypto_pk_copy_full’:
src/common/crypto.c:79:55: error: dereferencing pointer to incomplete type
 #define PRIVATE_KEY_OK(k) ((k) && (k)->key && (k)->key->p)
                                                       ^
src/common/crypto.c:909:7: note: in expansion of macro ‘PRIVATE_KEY_OK’
   if (PRIVATE_KEY_OK(env)) {
       ^
src/common/crypto.c: In function ‘crypto_pk_private_decrypt’:
src/common/crypto.c:978:16: error: dereferencing pointer to incomplete type
   if (!env->key->p)
                ^
src/common/crypto.c: In function ‘crypto_pk_private_sign’:
src/common/crypto.c:1084:16: error: dereferencing pointer to incomplete type
   if (!env->key->p)
                ^
src/common/crypto.c: In function ‘crypto_dh_new’:
src/common/crypto.c:1961:18: error: dereferencing pointer to incomplete type
     if (!(res->dh->p = BN_dup(dh_param_p_tls)))
                  ^
src/common/crypto.c:1964:18: error: dereferencing pointer to incomplete type
     if (!(res->dh->p = BN_dup(dh_param_p)))
                  ^
src/common/crypto.c:1968:16: error: dereferencing pointer to incomplete type
   if (!(res->dh->g = BN_dup(dh_param_g)))
                ^
src/common/crypto.c:1971:10: error: dereferencing pointer to incomplete type
   res->dh->length = DH_PRIVATE_KEY_BITS;
          ^
src/common/crypto.c: In function ‘crypto_dh_generate_public’:
src/common/crypto.c:2013:40: error: dereferencing pointer to incomplete type
   if (tor_check_dh_key(LOG_WARN, dh->dh->pub_key)<0) {
                                        ^
src/common/crypto.c:2017:25: error: dereferencing pointer to incomplete type
     BN_clear_free(dh->dh->pub_key);
                         ^
src/common/crypto.c:2018:25: error: dereferencing pointer to incomplete type
     BN_clear_free(dh->dh->priv_key);
                         ^
src/common/crypto.c:2019:11: error: dereferencing pointer to incomplete type
     dh->dh->pub_key = dh->dh->priv_key = NULL;
           ^
src/common/crypto.c:2019:29: error: dereferencing pointer to incomplete type
     dh->dh->pub_key = dh->dh->priv_key = NULL;
                             ^
src/common/crypto.c: In function ‘crypto_dh_get_public’:
src/common/crypto.c:2034:14: error: dereferencing pointer to incomplete type
   if (!dh->dh->pub_key) {
              ^
In file included from src/common/torlog.h:15:0,
                 from src/common/crypto.c:60:
src/common/crypto.c:2039:20: error: dereferencing pointer to incomplete type
   tor_assert(dh->dh->pub_key);
                    ^
src/common/compat.h:148:51: note: in definition of macro ‘PREDICT_UNLIKELY’
 #define PREDICT_UNLIKELY(exp) __builtin_expect(!!(exp), 0)
                                                   ^
src/common/crypto.c:2039:3: note: in expansion of macro ‘tor_assert’
   tor_assert(dh->dh->pub_key);
   ^
In file included from /usr/local/include/openssl/asn1.h:24:0,
                 from /usr/local/include/openssl/rsa.h:16,
                 from src/common/crypto.c:37:
src/common/crypto.c:2040:30: error: dereferencing pointer to incomplete type
   bytes = BN_num_bytes(dh->dh->pub_key);
                              ^
src/common/crypto.c:2050:19: error: dereferencing pointer to incomplete type
   BN_bn2bin(dh->dh->pub_key, (unsigned char*)(pubkey+(pubkey_len-bytes)));
                   ^
src/common/crypto.c: In function ‘crypto_global_cleanup’:
src/common/crypto.c:2699:3: warning: ‘ERR_remove_thread_state’ is deprecated (declared at /usr/local/include/openssl/err.h:244) [-Wdeprecated-declarations]
   ERR_remove_thread_state(NULL);
   ^
src/common/crypto.c: At top level:
src/common/crypto.c:2606:1: warning: ‘openssl_locking_cb_’ defined but not used [-Wunused-function]
 openssl_locking_cb_(int mode, int n, const char *file, int line)
 ^
src/common/crypto.c:2630:1: warning: ‘openssl_dynlock_create_cb_’ defined but not used [-Wunused-function]
 openssl_dynlock_create_cb_(const char *file, int line)
 ^
src/common/crypto.c:2643:1: warning: ‘openssl_dynlock_lock_cb_’ defined but not used [-Wunused-function]
 openssl_dynlock_lock_cb_(int mode, struct CRYPTO_dynlock_value *v,
 ^
src/common/crypto.c:2657:1: warning: ‘openssl_dynlock_destroy_cb_’ defined but not used [-Wunused-function]
 openssl_dynlock_destroy_cb_(struct CRYPTO_dynlock_value *v,
 ^
src/common/crypto.c:2667:1: warning: ‘tor_set_openssl_thread_id’ defined but not used [-Wunused-function]
 tor_set_openssl_thread_id(CRYPTO_THREADID *threadid)
 ^
src/common/crypto.c: In function ‘crypto_pk_key_is_private’:
src/common/crypto.c:815:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/common/crypto.c: In function ‘crypto_pk_public_exponent_ok’:
src/common/crypto.c:827:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/common/crypto.c: In function ‘crypto_pk_cmp_keys’:
src/common/crypto.c:853:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/common/crypto.c: In function ‘crypto_pk_num_bits’:
src/common/crypto.c:886:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:3194: recipe for target 'src/common/crypto.o' failed
make[1]: *** [src/common/crypto.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/tor-0.2.7.6/work/tor-0.2.7.6'
Makefile:1840: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: net-misc/tor-0.2.7.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-misc/tor-0.2.7.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/tor-0.2.7.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/tor-0.2.7.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/tor-0.2.7.6/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/tor-0.2.7.6/work/tor-0.2.7.6'
 * S: '/var/tmp/portage/net-misc/tor-0.2.7.6/work/tor-0.2.7.6'

emerge --info '=net-misc/tor-0.2.7.6::gentoo':

Code: Select all

Portage 2.2.28 (python 3.4.3-final-0, hardened/linux/amd64, gcc-4.9.3-hardenednopiessp, glibc-2.22-r4, 4.4.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i3-4330_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:     8076536 total,   1681652 free
KiB Swap:    8057852 total,   8057852 free
Timestamp of repository gentoo: Mon, 11 Jul 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fi_FI"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify mmx mmxext modules multilib ncurses nls nptl openmp pam pax_kernel pcre pie readline seccomp session sse sse2 ssl ssp tcpd tor-hardening unicode urandom xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
emerge -pqv '=net-misc/tor-0.2.7.6::gentoo':

Code: Select all

[ebuild  N    ] net-misc/tor-0.2.7.6  USE="seccomp tor-hardening -bufferevents (-libressl) -scrypt (-selinux) -stats -systemd {-test} -transparent-proxy -web"
Top
ct85711
Veteran
Veteran
Posts: 1791
Joined: Tue Sep 27, 2005 8:54 pm

  • Quote

Post by ct85711 » Tue Jul 12, 2016 3:06 pm

what version/USE flags did you compile openssl with?

Note: if you have bindist enabled, disable it and recompile openssl and any other package depending on openssl...
Top
samip537
n00b
n00b
Posts: 4
Joined: Tue Jul 12, 2016 2:48 pm

  • Quote

Post by samip537 » Tue Jul 12, 2016 4:06 pm

ct85711 wrote:what version/USE flags did you compile openssl with?

Note: if you have bindist enabled, disable it and recompile openssl and any other package depending on openssl...
It was installed though the Portage packages so I'm not entirely sure.

I have disabled bindist.

EDIT: Issue vas fixed by setting USE: -bindist in /etc/portage/make.conf.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic