Author Topic: mod_wrap2 compiles in static but unknown configuration directive WrapEngine on  (Read 768 times)

Offline blelu

  • New user
  • *
  • Posts: 10
    • View Profile
Hello

I compile proftpd 1.3.5 with modules mod_wrap2 and mod_wrap_file in  static mode but I get a
fatal: unknown configuration directive 'WrapEngine on' on line 29

My configure command is:
configure --with-modules=mod_ldap:mod_ifsession:mod_tls:mod_sftp:mod_wrap2:mod_wrap2_file

Thanks and best regards

Bernard

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5278
    • View Profile
    • http://www.castaglia.org/
What do the following commands show?

  $ which proftpd
  $ proftpd -V

Offline blelu

  • New user
  • *
  • Posts: 10
    • View Profile
Hello,

This is proftpd 1.3.5 on AIX 7.1

proftpd -V shows:
root@nimph4:/>/usr/local/sbin/proftpd -V
Compile-time Settings:
  Version: 1.3.5 (stable)
  Platform: AIX7 (AIX7_1_0_0) [AIX 1 00F6511D4C00]
  Built: Mon Jul 11 2016 14:31:32 CEST
  Built With:
    configure  '--with-modules=mod_ldap:mod_ifsession:mod_tls:mod_sftp:mod_wrap2:mod_wrap2_file'

  CFLAGS: -O2 -Wall
  LDFLAGS: -L$(top_srcdir)/lib
  LIBS:  -lssl -lcrypto -lssl  -lldap -llber  -lpam  -lcrypto -lz -lsupp

  Files:
    Configuration File:
      /usr/local/etc/proftpd.conf
    Pid File:
      /usr/local/var/proftpd.pid
    Scoreboard File:
      /usr/local/var/proftpd.scoreboard

  Features:
    - Autoshadow support
    - Controls support
    + curses support
    - Developer support
    - DSO support
    + IPv6 support
    + Largefile support
    - Lastlog support
    - Memcache support
    - ncurses support
    - NLS support
    + OpenSSL support
    - PCRE support
    - POSIX ACL support
    - Shadow file suppport
    - Sendfile support
    + Trace support

  Tunable Options:
    PR_TUNABLE_BUFFER_SIZE = 1024
    PR_TUNABLE_DEFAULT_RCVBUFSZ = 8192
    PR_TUNABLE_DEFAULT_SNDBUFSZ = 8192
    PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000
    PR_TUNABLE_GLOBBING_MAX_RECURSION = 8
    PR_TUNABLE_HASH_TABLE_SIZE = 40
    PR_TUNABLE_NEW_POOL_SIZE = 512
    PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
    PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
    PR_TUNABLE_SELECT_TIMEOUT = 30
    PR_TUNABLE_TIMEOUTIDENT = 10
    PR_TUNABLE_TIMEOUTIDLE = 600
    PR_TUNABLE_TIMEOUTLINGER = 30
    PR_TUNABLE_TIMEOUTLOGIN = 300
    PR_TUNABLE_TIMEOUTNOXFER = 300
    PR_TUNABLE_TIMEOUTSTALLED = 3600
    PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5278
    • View Profile
    • http://www.castaglia.org/
And what, then, does this show?

  $ /usr/local/sbin/proftpd -td10 -c /path/to/your/proftpd.conf

That is, could the proftpd executable that is emitting the "unknown configuration directive" be _different_ from the /usr/local/sbin/proftpd executable (e.g. perhaps it's /usr/sbin/proftpd)?

Offline blelu

  • New user
  • *
  • Posts: 10
    • View Profile
Well, copy/paste error, having an od of the file, the character between WrapEngine and on was not "20" but "a0"
Now it no longer complains, next step is to have it working properly.

Thanks a lot for your time.

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5278
    • View Profile
    • http://www.castaglia.org/
Ah, great.  I'm glad you were able to determine the issue.  The case of an unexpected whitespace character was going to be my next guess.

This particular case of bad characters should be better handled in the 1.3.6 series; see:

  https://github.com/proftpd/proftpd/commit/199bd5e67d2e22646fc4ab0bdd37017e43c9935b