Opened 3 years ago

Closed 3 years ago

#17563 closed defect (duplicate)

crypto.c compile error w/Tor v0.2.8.0-alpha-dev and OpenSSL 1.1.0-dev (against SSL_Dev)

Reported by: yancm Owned by:
Priority: Low Milestone: Tor: 0.2.8.x-final
Component: Core Tor/Tor Version: Tor: unspecified
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I understand that bleeding edge openssl_current related bugs are not a priority and this may be another one...
If you could share some advice on debugging trivial ones I might try myself...otherwise I will continue to report, but not expect quick resolution.

Tor v0.2.8.0-alpha-dev running on NetBSD 6_stable (i386) with Libevent 2.1.5-beta, OpenSSL 1.1.0-dev and Zlib 1.2.3.

CC src/common/crypto.o

src/common/crypto.c: In function 'crypto_openssl_get_version_str':
src/common/crypto.c:230:5: warning: implicit declaration of function 'SSLeay_version'
src/common/crypto.c:230:46: error: 'SSLEAY_VERSION' undeclared (first use in this function)
src/common/crypto.c:230:46: note: each undeclared identifier is reported only once for each function it appears in
src/common/crypto.c: In function 'crypto_force_rand_ssleay':
src/common/crypto.c:254:3: warning: implicit declaration of function 'RAND_SSLeay'
src/common/crypto.c:254:30: warning: comparison between pointer and integer
src/common/crypto.c:258:5: warning: passing argument 1 of 'RAND_set_rand_method' makes pointer from integer without a cast
/usr/local/ssl/include/openssl/rand.h:90:5: note: expected 'const struct RAND_METHOD *' but argument is of type 'int'
src/common/crypto.c: In function 'crypto_early_init':
src/common/crypto.c:294:5: warning: implicit declaration of function 'SSLeay'
src/common/crypto.c:295:32: error: 'SSLEAY_VERSION' undeclared (first use in this function)
Makefile:3240: recipe for target 'src/common/crypto.o' failed
gmake[1]: * [src/common/crypto.o] Error 1
gmake[1]: Leaving directory '/usr/local/src/tor'
Makefile:1864: recipe for target 'all' failed
gmake:
* [all] Error 2

Child Tickets

Change History (1)

comment:1 Changed 3 years ago by yawning

Resolution: duplicate
Status: newclosed

My branch that fixes #17549 also fixes this. I'm going to dup this, since it falls under the general scope of "catching up to the gratuitous API changes that OpenSSL made in their dev branch", and will be resolved when my branch is merged.

Note: See TracTickets for help on using tickets.