Author Topic: make error on proftpd-1.3.6rc4  (Read 333 times)

Offline unnikpr

  • New user
  • *
  • Posts: 11
    • View Profile
make error on proftpd-1.3.6rc4
« on: March 23, 2017, 04:21:10 pm »
Getting error while compiling with tls on proftpd


parameter: ./configure --prefix=/usr/local/proftpdrc --enable-openssl --with-modules=mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_ifsession:mod_sftp:mod_exec:mod_vroot:mod_tls --with-includes=/usr/include/openssl --with-libraries=/usr/include/openssl

make

cd modules/ && make static
make[1]: Entering directory `/usr/local/src/proftpd-1.3.6rc4/modules'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -g2 -O2 -Wall -fno-omit-frame-pointer -c mod_tls.c
mod_tls.c: In function ‘tls_tlsext_cb’:
mod_tls.c:3169: error: ‘TLSEXT_TYPE_server_name’ undeclared (first use in this function)
mod_tls.c:3169: error: (Each undeclared identifier is reported only once
mod_tls.c:3169: error: for each function it appears in.)
mod_tls.c:3173: error: ‘TLSEXT_TYPE_max_fragment_length’ undeclared (first use in this function)
mod_tls.c:3177: error: ‘TLSEXT_TYPE_client_certificate_url’ undeclared (first use in this function)
mod_tls.c:3181: error: ‘TLSEXT_TYPE_trusted_ca_keys’ undeclared (first use in this function)
mod_tls.c:3185: error: ‘TLSEXT_TYPE_truncated_hmac’ undeclared (first use in this function)
mod_tls.c:3189: error: ‘TLSEXT_TYPE_status_request’ undeclared (first use in this function)
mod_tls.c: In function ‘tls_init_server’:
mod_tls.c:5107: warning: unused variable ‘server_ec_cert’
mod_tls.c: In function ‘tls_accept’:
mod_tls.c:5967: warning: implicit declaration of function ‘SSL_set_tlsext_debug_callback’
make[1]: *** [mod_tls.o] Error 1
make[1]: Leaving directory `/usr/local/src/proftpd-1.3.6rc4/modules'
make: *** [modules] Error 2

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5373
    • View Profile
    • http://www.castaglia.org/
Re: make error on proftpd-1.3.6rc4
« Reply #1 on: March 24, 2017, 02:10:11 pm »
What does `openssl version -a` show?

Offline unnikpr

  • New user
  • *
  • Posts: 11
    • View Profile
Re: make error on proftpd-1.3.6rc4
« Reply #2 on: March 27, 2017, 05:27:46 am »
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
built on: Tue May 31 06:47:28 CDT 2016
platform: linux-elf
options:  bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -I/usr/kerberos/include -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -Wa,--noexecstack -DOPENSSL_USE_NEW_FUNCTIONS -fno-strict-aliasing -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
OPENSSLDIR: "/etc/pki/tls"
engines:  padlock dynamic

Offline unnikpr

  • New user
  • *
  • Posts: 11
    • View Profile
Re: make error on proftpd-1.3.6rc4
« Reply #3 on: March 27, 2017, 06:42:22 am »
i have 1.0.2 and tried with following command ,

COnfigure command: ./configure --prefix=/usr/local/proftpdrc --enable-openssl --with-modules=mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_ifsession:mod_sftp:mod_exec:mod_vroot:mod_tls --with-includes=/opt/openssl/include/openssl --with-libraries=/opt/openssl/lib


make error: make[1]: Entering directory `/usr/local/src/proftpd-1.3.6rc4/modules'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include -I/opt/openssl/include/openssl -g2 -O2 -Wall -fno-omit-frame-pointer -c mod_tls.c
mod_tls.c: In function ‘tls_tlsext_cb’:
mod_tls.c:3169: error: ‘TLSEXT_TYPE_server_name’ undeclared (first use in this function)
mod_tls.c:3169: error: (Each undeclared identifier is reported only once
mod_tls.c:3169: error: for each function it appears in.)
mod_tls.c:3173: error: ‘TLSEXT_TYPE_max_fragment_length’ undeclared (first use in this function)
mod_tls.c:3177: error: ‘TLSEXT_TYPE_client_certificate_url’ undeclared (first use in this function)
mod_tls.c:3181: error: ‘TLSEXT_TYPE_trusted_ca_keys’ undeclared (first use in this function)
mod_tls.c:3185: error: ‘TLSEXT_TYPE_truncated_hmac’ undeclared (first use in this function)
mod_tls.c:3189: error: ‘TLSEXT_TYPE_status_request’ undeclared (first use in this function)
mod_tls.c: In function ‘tls_alpn_select_cb’:
mod_tls.c:4638: warning: implicit declaration of function ‘SSL_select_next_proto’
mod_tls.c:4641: error: ‘OPENSSL_NPN_NEGOTIATED’ undeclared (first use in this function)
mod_tls.c:4645: error: ‘SSL_TLSEXT_ERR_NOACK’ undeclared (first use in this function)
mod_tls.c:4652: error: ‘SSL_TLSEXT_ERR_OK’ undeclared (first use in this function)
mod_tls.c: In function ‘tls_npn_advertised_cb’:
mod_tls.c:4669: error: ‘SSL_TLSEXT_ERR_OK’ undeclared (first use in this function)
mod_tls.c: In function ‘tls_init_server’:
mod_tls.c:5107: warning: unused variable ‘server_ec_cert’
mod_tls.c: In function ‘tls_accept’:
mod_tls.c:5967: warning: implicit declaration of function ‘SSL_set_tlsext_debug_callback’
mod_tls.c:6153: warning: implicit declaration of function ‘SSL_get0_next_proto_negotiated’
mod_tls.c:6171: warning: implicit declaration of function ‘SSL_get0_alpn_selected’
mod_tls.c: In function ‘set_next_protocol’:
mod_tls.c:13387: warning: implicit declaration of function ‘SSL_CTX_set_next_protos_advertised_cb’
mod_tls.c:13392: warning: implicit declaration of function ‘SSL_CTX_set_alpn_select_cb’
make[1]: *** [mod_tls.o] Error 1
make[1]: Leaving directory `/usr/local/src/proftpd-1.3.6rc4/modules'
make: *** [modules] Error 2




Version info: /opt/openssl/bin/openssl version -a
OpenSSL 1.0.2a 19 Mar 2015
built on: reproducible build, date unspecified
platform: linux-elf
options:  bn(64,32) rc4(8x,mmx) des(ptr,risc1,16,long) idea(int) blowfish(idx)
compiler: gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -fpic -Wa,--noexecstack -DL_ENDIAN -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/opt/openssl/ssl"

Offline unnikpr

  • New user
  • *
  • Posts: 11
    • View Profile
Re: make error on proftpd-1.3.6rc4
« Reply #4 on: March 27, 2017, 04:23:26 pm »
Hi,

This was fixed by compiling new open-ssl as follows,

wget https://www.openssl.org/source/openssl-1.0.2a.tar.gz
tar -zxvf openssl-*.tar.gz
cd openssl-*
./config --prefix=/opt/openssl -fpic shared && make && make install


and removed the proftpd extract and done a new extract from source then following command done all.

./configure --prefix=/usr/local/proftpdrc --enable-openssl --with-modules=mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_ifsession:mod_sftp:mod_exec:mod_vroot:mod_tls --with-includes=/opt/openssl/include --with-libraries=/opt/openssl/lib  && make && make install

If you face issues with libraries do the following,

ln -s /opt/openssl/lib/libssl.so.1.0.0 /lib/libssl.so.1.0.0
ln -s /opt/openssl/lib/libcrypto.so.1.0.0 /lib/libcrypto.so.1.0.0


And can start proftpd as follows,


/usr/local/proftpdrc/sbin/proftpd -c  /usr/local/proftpdrc/etc/proftpd.conf


Regards,
Unni.

 

sighted planning