ProFTPd mod_lang problems

wattie

Verified User
Joined
May 31, 2008
Messages
1,234
Location
Bulgaria
Even when proftpd shows that it does have "+ NLS support" (in proftpd -V) later I am unable to use any mod_lang directives. For example adding:

Code:
UseEncoding utf8

in /etc/proftpd.conf results in:

Code:
proftpd[38167]: fatal: unknown configuration directive 'UseEncoding' on line 30 of '/etc/proftpd.conf'

when restarting...
 
I tried to include:

Code:
LoadModule mod_lang.c

in /etc/proftpd.conf but got this error when trying to restart:

Code:
 mod_dso/0.5: unable to load 'mod_lang.c'; check to see if '/usr/local/libexec/mod_lang.la' exists

My OS is FreeBSD 11.2.
 
Hello,


See


Code:
[root@server custombuild]# grep nls /usr/local/directadmin/custombuild/build --context=5
        #swap prefix for freebsd
        if [ "$OS" = "FreeBSD" ]; then
                perl -pi -e "s#prefix=/usr #prefix=$PROFTPD_PREFIX #" ${CWD}/${PROFTPD_CONFIGURE}


                if [ "${PROFTPD_CONFIGURE}" = "configure/proftpd/configure.proftpd" ]; then
                        perl -pi -e 's/enable-nls/disable-nls/' ${CWD}/${PROFTPD_CONFIGURE}
                fi


        fi


        echo "Configuring proftpd-${PROFTPD_VER}..."
[root@server custombuild]#




It disables NLS for FreeBSD.




You might try and copy configure/proftpd/configure.proftpd to custom/proftpd/configure.proftpd then and see whether or not it helps.
 
Aha... so they are doing it most probably because it does not work on FreeBSD (like in my case - I did enable it with manual compilation and it's not working) :(
 
Back
Top