Author Topic: Can't compile proftpd-1.3.4.b with mod-case  (Read 2739 times)

Offline [devnull]

  • New user
  • *
  • Posts: 4
    • View Profile
Can't compile proftpd-1.3.4.b with mod-case
« on: June 16, 2013, 06:17:29 am »

Debian wheezy, proftpd-1.3.4.b, mod-case-0.7.

I put mod-case.c in both contrib/ and contrib/mod-case/

When I try:
 ./configure --enable-ctrls --enable-dso --enable-facl --enable-nls --with-modules=mod_case

At the end I have:

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in contrib/mod_case (/root/proftpd/src/proftpd-1.3.4b/contrib/mod_case)
configure: WARNING: no configuration information is in contrib/mod_case



If I try make:

make[2]: Entering directory `/root/proftpd/src/proftpd-1.3.4b/contrib/mod_case'
make[2]: *** No rule to make target `static'.  Stop.
make[2]: Leaving directory `/root/proftpd/src/proftpd-1.3.4b/contrib/mod_case'
cp: impossibile eseguire stat di "../contrib/mod_case/mod_case.o": File o directory non esistente
make[1]: *** [static] Error 1
make[1]: Leaving directory `/root/proftpd/src/proftpd-1.3.4b/modules'
make: *** [modules] Error 2

Any idea?
Thanks

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5373
    • View Profile
    • http://www.castaglia.org/
Re: Can't compile proftpd-1.3.4.b with mod-case
« Reply #1 on: June 16, 2013, 04:04:07 pm »
You should only have a copy of mod_case.c in the contrib/ directory; you should not have a contrib/mod_case/ directory.

Offline [devnull]

  • New user
  • *
  • Posts: 4
    • View Profile
Re: Can't compile proftpd-1.3.4.b with mod-case
« Reply #2 on: June 16, 2013, 07:17:33 pm »
Yes, I tried that, and the error was exactly the same. Then I put the whole directory hoping just to try...

In the meanwhile I saw the includes into the mod_case.c: conf.h and privs.h
So I took both the files and moved them into contrib.
With that configure and make both finish correctly!
But.... when I try to start proftpd:

proftpd[12064]: Fatal: LoadModule: error loading module 'mod_case.c':

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5373
    • View Profile
    • http://www.castaglia.org/
Re: Can't compile proftpd-1.3.4.b with mod-case
« Reply #3 on: June 16, 2013, 07:39:43 pm »
Why would your proftpd.conf have:

  LoadModule mod_case.c

in it?  Your configure command has --with-modules=mod_case, which means that mod_case is built in as a static module, and thus should not be dynamically loaded via LoadModule.  The LoadModule directive is only for modules built as shared modules, using --with-shared.

 

sighted planning