Problems with compiling Proftpd from scratch

Telfon

New member
Joined
Sep 4, 2012
Messages
4
Hi there,

Recently I've had some issues with my Proftpd installation so I decided to perform a clean install using this guide: http://help.directadmin.com/item.php?id=82

I erased Proftpd and started this installation:

wget http://files.directadmin.com/services/customapache/proftpd-1.3.3f.tar.gz
tar xvzf proftpd-1.3.3f.tar.gz
cd proftpd-1.3.3f
install_user=ftp install_group=ftp ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --mandir=/usr/local/man --without-pam --disable-auth-pam --enable-nls --with-modules=mod_ratio:mod_readme:mod_tls LDFLAGS=-static
make
make install

When I try to "make" I get the following error:

odules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o modules/mod_ident.o modules/mod_tls.o modules/mod_readme.o modules/mod_ratio.o modules/mod_cap.o modules/mod_lang.o modules/module_glue.o -L/home/admin/proftpd-1.3.4b/lib -lsupp -ldl -L/home/admin/proftpd-1.3.4b/lib/libcap -lcap -lssl -lcrypto
modules/mod_auth_unix.o: In function `pw_check':
mod_auth_unix.c:(.text+0x849): undefined reference to `crypt'
modules/mod_auth_file.o: In function `authfile_chkpass':
mod_auth_file.c:(.text+0x30): undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [proftpd] Fout 1

I already put over 3 hours in fixing this problem so it's starting to make me crazy!

I'm not that skilled when it comes to compiling so keep that in mind ;)..

Any help is really really appreciated! Thanks in advance!
 
By the way you could do it more friendly way:

Code:
cd /usr/local/directadmin/custombuild
./build set proftpd yes
./build update
./build proftpd
 
Thanks for your reply! Removing LDFLAGS=-static worked!

But:

I tried both your options and it seems that it doesn't write anything to /etc/init.d/ so it keeps saying:

[root@www custombuild]# service proftpd restart
proftpd: unknown service

Any thoughts?
 
This is what a whereis proftpd results:

[root@www custombuild]# whereis proftpd
proftpd: /usr/src/proftpd-1.3.4a/proftpd.spec /usr/src/proftpd-1.3.4a/proftpd.pc /usr/src/proftpd-1.3.4a/proftpd /usr/sbin/proftpd /etc/proftpd.passwd /etc/proftpd.conf /usr/lib/proftpd /usr/local/sbin/proftpd /usr/local/etc/proftpd.conf /usr/local/lib/proftpd /usr/include/proftpd /usr/share/man/man8/proftpd.8
 
Code:
cp /usr/local/directadmin/custombuild/proftpd /etc/init.d/

that should do the trick. Just make sure then, you've got it in autostart.
 
Thank you so much! It's working again!

At first I got this error:

Starting proftpd: - Fatal: ScoreboardFile: : unable to use '/var/run/proftpd/proftpd.pid': No such file or directory on line 13 of '/etc/proftpd.conf'

I fixed this with the command:

Code:
mkdir /var/run/proftpd

Cheers!
 
Back
Top