Re: [Proftpd-user] Compile with TLS problems
Rafael Reinoso <[email protected]> Tue, 9 May 2023 05:38:15 +0000
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <AS4PR10MB6256E38B3091FCBBD2EB2E59AC769@AS4PR10MB6256.EURPRD10.PROD.OUTLOOK.COM> |
I have tried again with 1.3.8, but I still get 'ENGINE_METHOD_ALL' undeclared
Some info about my Qnap:
[/opt/tmp] # openssl version -a
OpenSSL 3.0.8 7 Feb 2023 (Library: OpenSSL 3.0.8 7 Feb 2023)
built on: Mon Mar 13 16:13:12 2023 UTC
platform: linux-x86_64-openwrt
options: bn(64,64)
compiler: x86_64-openwrt-linux-gnu-gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -O3 -DPIC -fpic -ffunction-sections -fdata-sections -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DZLIB -DZLIB_SHARED -DNDEBUG -DOPENSSL_RAND_SEED_DEVRANDOM_SHM_ID=-1 -DOPENSSL_PREFER_CHACHA_OVER_GCM
OPENSSLDIR: "/opt/etc/ssl"
ENGINESDIR: "/opt/lib/engines-3"
MODULESDIR: "/opt/lib/ossl-modules"
Seeding source: os-specific
CPUINFO: OPENSSL_ia32cap=0x43d8e3bfefebffff:0x2282
[/opt/tmp] # cat /etc/*release
NAME="QTS"
VERSION="5.0.1 (20230421)"
ID=qts
PRETTY_NAME="QTS 5.0.1 (20230421)"
VERSION_ID="5.0.1"
[/opt/tmp] # uname -a
Linux TS-653A 5.10.60-qnap #1 SMP Fri Apr 21 06:33:29 CST 2023 x86_64 GNU/Linux
I tried like this:
wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.8.tar.gz
tar -xzf proftpd-1.3.8.tar.gz
cd proftpd-1.3.8
./configure --with-modules=mod_tls --prefix=/opt --with-lastlog --enable-dso
It ends with:
--------------
Build Summary
--------------
Building the following static modules:
mod_auth_pam
mod_tls
mod_cap
The whole process is here: https://pastebin.com/ugNTEA51
Now I try make:
It starts and ends with this:
make
echo \#define BUILD_STAMP \"Tue May 9 2023 07:24:48 CEST\" > include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory '/share/CACHEDEV1_DATA/.qpkg/Entware-3x/tmp/proftpd/proftpd-1.3.8/lib'
/bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../include -g2 -O2 -Wall -fno-omit-frame-pointer -fno-strict-aliasing -static -c pr_fnmatch.c
libtool: compile: gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../include -g2 -O2 -Wall -fno-omit-frame-pointer -fno-strict-aliasing -c pr_fnmatch.c -o pr_fnmatch.o
In file included from pr_fnmatch.c:260:
pr_fnmatch_loop.c: In function 'internal_fnmatch':
pr_fnmatch_loop.c:75:7: warning: variable 'is_seqval' set but not used [-Wunused-but-set-variable]
int is_seqval = 0;
^~~~~~~~~ /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I../include -g2 -O2 -Wall -fno-omit-frame-pointer -fno-strict-aliasing -static -c sstrncpy.c
...
...
**** A LOT OF STUFF *** The whole process is here: https://pastebin.com/5Vpn2ggk
...
...
mod_tls.c:18893:15: warning: implicit declaration of function 'ENGINE_set_default'; did you mean 'NCONF_default'? [-Wimplicit-function-declaration]
if (ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
^~~~~~~~~~~~~~~~~~
NCONF_default
mod_tls.c:18893:37: error: 'ENGINE_METHOD_ALL' undeclared (first use in this function); did you mean 'EC_KEY_METHOD_new'?
if (ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
^~~~~~~~~~~~~~~~~
EC_KEY_METHOD_new
mod_tls.c:18893:37: note: each undeclared identifier is reported only once for each function it appears in
mod_tls.c:18894:13: warning: implicit declaration of function 'ENGINE_finish' [-Wimplicit-function-declaration]
ENGINE_finish(e);
^~~~~~~~~~~~~
mod_tls.c:18895:13: warning: implicit declaration of function 'ENGINE_free'; did you mean 'NCONF_free'? [-Wimplicit-function-declaration]
ENGINE_free(e);
^~~~~~~~~~~
NCONF_free
make[1]: *** [Makefile:31: mod_tls.o] Error 1
make[1]: Leaving directory '/share/CACHEDEV1_DATA/.qpkg/Entware-3x/tmp/proftpd/proftpd-1.3.8/modules'
make: *** [Makefile:57: modules] Error 2
The whole process is here: https://pastebin.com/5Vpn2ggk
Any ideas what I could try?
_______________________________________________
ProFTPD Users List <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html