LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-03-2006, 05:15 PM   #1
kenwoodgt
LQ Newbie
 
Registered: Apr 2006
Location: Omaha, NE
Distribution: Debian Sarge 3.1
Posts: 13

Rep: Reputation: 0
vsFTPd + SSL + Debian Sarge


I have been running our internal ftp server on Debian 3.1 for some time without SSL and everything has been working fine. Now, it must be accessable from our field offices and pretty much the entire internet, so I now must use SSL. So, I started from scratch on a new server, mimicked almost all features of the other server. My problem is that I can not get vsFTPd to even compile. I untared the file to its directory vsftpd-2.0.4, changed define VSF_BUILD_SSL in builddefs. Then upon trying to execute the make command, I get gcc stuff below. I am not sure where to go on this. From all the documentation that I can find, changing the builddefs entry is about all that is needed and then to just compile it to my system. Any help would be appreciated. I just need a push in the right direction. Thanks in advance.


PDLTS:/home/dbadmin/vsftpd-2.0.4# make
gcc -c main.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c utility.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c prelogin.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ftpcmdio.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c postlogin.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c privsock.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c tunables.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ftpdataio.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c secbuf.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ls.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c postprivparent.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c logging.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c str.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c netstr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c sysstr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c strlist.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c banner.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c filestr.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c parseconf.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c secutil.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ascii.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c oneprocess.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c twoprocess.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c privops.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c standalone.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c hash.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c tcpwrap.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ipaddrparse.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c access.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c features.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c readwrite.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ssl.c -O2 -Wall -W -Wshadow -idirafter dummyinc
ssl.c:27:25: openssl/err.h: No such file or directory
ssl.c:28:26: openssl/rand.h: No such file or directory
ssl.c:29:25: openssl/bio.h: No such file or directory
ssl.c:32: error: syntax error before '*' token
ssl.c:32: warning: type defaults to `int' in declaration of `get_ssl'
ssl.c:32: warning: data definition has no type or storage class
ssl.c:36: error: syntax error before '*' token
ssl.c: In function `ssl_init':
ssl.c:45: error: `SSL_CTX' undeclared (first use in this function)
ssl.c:45: error: (Each undeclared identifier is reported only once
ssl.c:45: error: for each function it appears in.)
ssl.c:45: error: `p_ctx' undeclared (first use in this function)
ssl.c:47: warning: implicit declaration of function `SSL_library_init'
ssl.c:48: warning: implicit declaration of function `SSL_CTX_new'
ssl.c:48: warning: implicit declaration of function `SSLv23_server_method'
ssl.c:49: error: `NULL' undeclared (first use in this function)
ssl.c:53: error: `SSL_OP_ALL' undeclared (first use in this function)
ssl.c:56: error: `SSL_OP_NO_SSLv2' undeclared (first use in this function)
ssl.c:60: error: `SSL_OP_NO_SSLv3' undeclared (first use in this function)
ssl.c:64: error: `SSL_OP_NO_TLSv1' undeclared (first use in this function)
ssl.c:66: warning: implicit declaration of function `SSL_CTX_set_options'
ssl.c:74: warning: implicit declaration of function `SSL_CTX_use_certificate_file'
ssl.c:75: error: `X509_FILETYPE_PEM' undeclared (first use in this function)
ssl.c:79: warning: implicit declaration of function `SSL_CTX_use_PrivateKey_file'
ssl.c:102: warning: implicit declaration of function `SSL_CTX_set_cipher_list'
ssl.c:106: warning: implicit declaration of function `RAND_status'
ssl.c: In function `ssl_getline':
ssl.c:197: warning: implicit declaration of function `SSL_read'
ssl.c: In function `ssl_read':
ssl.c:220: error: `SSL' undeclared (first use in this function)
ssl.c:220: error: syntax error before ')' token
ssl.c:221: warning: implicit declaration of function `SSL_get_error'
ssl.c:221: error: syntax error before ')' token
ssl.c:223: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function)
ssl.c:224: error: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
ssl.c:214: warning: unused parameter `p_ssl'
ssl.c:214: warning: unused parameter `p_buf'
ssl.c:214: warning: unused parameter `len'
ssl.c: In function `ssl_write':
ssl.c:235: warning: implicit declaration of function `SSL_write'
ssl.c:235: error: `SSL' undeclared (first use in this function)
ssl.c:235: error: syntax error before ')' token
ssl.c:236: error: syntax error before ')' token
ssl.c:238: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function)
ssl.c:239: error: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
ssl.c:229: warning: unused parameter `p_ssl'
ssl.c:229: warning: unused parameter `p_buf'
ssl.c:229: warning: unused parameter `len'
ssl.c: In function `ssl_write_str':
ssl.c:247: error: `SSL' undeclared (first use in this function)
ssl.c:247: error: syntax error before ')' token
ssl.c:244: warning: unused parameter `p_ssl'
ssl.c: In function `ssl_accept':
ssl.c:258: error: `SSL' undeclared (first use in this function)
ssl.c:258: error: `p_ssl' undeclared (first use in this function)
ssl.c:259: error: `NULL' undeclared (first use in this function)
ssl.c: In function `ssl_data_close':
ssl.c:271: warning: implicit declaration of function `SSL_free'
ssl.c: At top level:
ssl.c:283: error: syntax error before '*' token
ssl.c:285: warning: return type defaults to `int'
ssl.c: In function `get_ssl':
ssl.c:286: error: `SSL' undeclared (first use in this function)
ssl.c:286: error: `p_ssl' undeclared (first use in this function)
ssl.c:286: warning: implicit declaration of function `SSL_new'
ssl.c:287: error: `NULL' undeclared (first use in this function)
ssl.c:291: warning: implicit declaration of function `SSL_set_fd'
ssl.c:296: warning: implicit declaration of function `SSL_accept'
ssl.c: In function `ssl_session_init':
ssl.c:308: error: `SSL' undeclared (first use in this function)
ssl.c:308: error: `p_ssl' undeclared (first use in this function)
ssl.c:309: error: `NULL' undeclared (first use in this function)
ssl.c: In function `get_ssl_error':
ssl.c:321: warning: implicit declaration of function `SSL_load_error_strings'
ssl.c:322: warning: implicit declaration of function `ERR_error_string'
ssl.c:322: warning: implicit declaration of function `ERR_get_error'
ssl.c:322: error: `NULL' undeclared (first use in this function)
ssl.c:322: warning: return makes pointer from integer without a cast
ssl.c: At top level:
ssl.c:325: error: syntax error before '*' token
ssl.c: In function `setup_bio_callbacks':
ssl.c:327: error: `BIO' undeclared (first use in this function)
ssl.c:327: error: `p_bio' undeclared (first use in this function)
ssl.c:327: warning: implicit declaration of function `SSL_get_rbio'
ssl.c:327: error: `p_ssl' undeclared (first use in this function)
ssl.c:328: warning: implicit declaration of function `BIO_set_callback'
ssl.c:329: warning: implicit declaration of function `SSL_get_wbio'
ssl.c: At top level:
ssl.c:335: error: syntax error before '*' token
ssl.c: In function `bio_callback':
ssl.c:339: error: `p_arg' undeclared (first use in this function)
ssl.c:340: error: `argi' undeclared (first use in this function)
ssl.c:341: error: `argl' undeclared (first use in this function)
ssl.c:342: error: `oper' undeclared (first use in this function)
ssl.c:342: error: `BIO_CB_READ' undeclared (first use in this function)
ssl.c:342: error: `BIO_CB_RETURN' undeclared (first use in this function)
ssl.c:343: error: `BIO_CB_WRITE' undeclared (first use in this function)
ssl.c:345: error: `ret' undeclared (first use in this function)
ssl.c:346: warning: implicit declaration of function `BIO_get_fd'
ssl.c:346: error: `p_bio' undeclared (first use in this function)
ssl.c:346: error: `NULL' undeclared (first use in this function)
make: *** [ssl.o] Error 1
 
Old 08-04-2006, 09:42 AM   #2
kenwoodgt
LQ Newbie
 
Registered: Apr 2006
Location: Omaha, NE
Distribution: Debian Sarge 3.1
Posts: 13

Original Poster
Rep: Reputation: 0
Cant compile vsFTPd with SSl

Just getting back to work on this. There is an entry in ssh.c that is the same as the one in
builddefs for the #define VSF_BUILD_SSL. After i change it from undef to define, the error message i am getting is cut almost in half. Im not sure what is happening here. Sorry for the long Make config last time. here is what im getting after I execute the make command now:

gcc -c readwrite.c -O2 -Wall -W -Wshadow -idirafter dummyinc
gcc -c ssl.c -O2 -Wall -W -Wshadow -idirafter dummyinc
ssl.c:352:2: #else without #if
ssl.c:356: error: redefinition of `ssl_init'
ssl.c:42: error: `ssl_init' previously defined here
ssl.c:363: error: redefinition of `handle_auth'
ssl.c:117: error: `handle_auth' previously defined here
ssl.c:369: error: redefinition of `handle_pbsz'
ssl.c:148: error: `handle_pbsz' previously defined here
ssl.c:375: error: redefinition of `handle_prot'
ssl.c:161: error: `handle_prot' previously defined here
ssl.c:382: error: redefinition of `ssl_getline'
ssl.c:191: error: `ssl_getline' previously defined here
ssl.c:392: error: redefinition of `ssl_read'
ssl.c:215: error: `ssl_read' previously defined here
ssl.c:401: error: redefinition of `ssl_write'
ssl.c:230: error: `ssl_write' previously defined here
ssl.c:410: error: redefinition of `ssl_write_str'
ssl.c:245: error: `ssl_write_str' previously defined here
ssl.c:418: error: redefinition of `ssl_accept'
ssl.c:257: error: `ssl_accept' previously defined here
ssl.c:426: error: redefinition of `ssl_data_close'
ssl.c:270: error: `ssl_data_close' previously defined here
ssl.c:432: error: redefinition of `ssl_comm_channel_init'
ssl.c:276: error: `ssl_comm_channel_init' previously defined here
ssl.c:436:2: #endif without #if
make: *** [ssl.o] Error 1


There is also a ssl.h file in the vsftpd-2.0.4 dir that has a relation to every one of the errors in my make config. Anyone, can you help me. It seems that everyone else can at least get vsftpd compiled correctly, is there something i am missing, or did not read correctly??? Thanks in advance...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsFTPd - SSL connection and dynamic SSL ports toxoplasme Linux - Server 11 08-22-2008 10:50 PM
vsftpd & ssl - how do I tell if it's actually vsftpd maintaining the connections?? hunterhunter Linux - General 0 03-27-2006 04:41 PM
vsftpd + ssl lord-fu Linux - Software 2 11-22-2005 07:16 PM
debian sarge apache-ssl configuration notolerance Debian 0 01-10-2005 10:44 AM
File server on Debian Sarge with Samba, SSH and vsftpd? MagicMike Linux - Networking 0 02-26-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration