lavv17/lftp — Issue #7: Error to compile git version with modules
Author: simonbcn
Created: 2011-11-20 17:01:29+00:00
State: open

`./configure --with-modules --with-pager=/usr/bin/less`
[config.log] (http://paste.ubuntu.com/744409/)

Error at `make`:
```
Job.h: In member function ‘void Job::ClearStatus()’:
Job.h:80:16: warning: format not a string literal and no format arguments [-Wformat-security]
In file included from CmdExec.h:27:0,
from lftp.cc:39:
Job.h: In member function ‘void Job::ClearStatus()’:
Job.h:80:16: warning: format not a string literal and no format arguments [-Wformat-security]
example1.cc: In function ‘int main(int, char**)’:
example1.cc:43:23: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
example2.cc: In function ‘int main(int, char**)’:
example2.cc:45:23: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
In file included from CmdExec.h:27:0,
from example1-cmd.cc:3:
Job.h: In member function ‘void Job::ClearStatus()’:
Job.h:80:16: warning: format not a string literal and no format arguments [-Wformat-security]
/usr/bin/ld: example1-cmd.o: undefined reference to symbol 'SMTask::Delete(SMTask*)'
/usr/bin/ld: note: 'SMTask::Delete(SMTask*)' is defined in DSO /home/simon/sources/lftp.git/src/.libs/liblftp-tasks.so.0 so try adding it to the linker command line
/home/simon/sources/lftp.git/src/.libs/liblftp-tasks.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [example1-cmd] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: lftp.o: undefined reference to symbol 'rpl_fcntl'
/usr/bin/ld: note: 'rpl_fcntl' is defined in DSO /home/simon/sources/lftp.git/src/.libs/liblftp-tasks.so.0 so try adding it to the linker command line
/home/simon/sources/lftp.git/src/.libs/liblftp-tasks.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [lftp] Error 1
make: *** [all-recursive] Error 1
```

If I compile without `with-modules` it compiles well.
I can compile the version 4.3.3 `with-modules` without problems.