Re: Compiling lftp on Solaris with Sun Studio
"Alexander V. Lukyanov" <[email protected]> Tue, 22 Aug 2006 17:48:36 +0400
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Aug 20, 2006 at 01:25:45AM +0200, Yann Rouillard wrote: > I maintain the lftp package for the blastwave project ( > http://www.blastwave.org/ ) and I had some issues with lftp 3.5.4 under > Solaris with Sun CC. > > I attached the patchs I applied to be able to solve the problems: Thanks for the patch, but I chose another solution, see below. > - I had a problem with the bool type, there seems to be an error in the > stdbool_.h file when the compiler does support bool, moreover the > included stdbool.h is not in the default include path so it triggers an > error on Solaris 5.8 where this file doesn't exist. I changed configure to link stdbool_.h to include directory when system one is missing. > - I had a segfault when I did a 'ls' with the sftp protocol, it turns > out the MakeRef macro didn't work as expected > Makeref(session->MakeDirList(v)) was transformed by CC in > (_MakeRef((session->MakeDirList(v))),(session->MakeDirList(v))) which > created 2 SFtpDirList instead of one, both sharing the same session value. I decided to drop the macros and leave the templates. Screw the broken compilers. I have also put out lftp-3.5.5rc1 to ftp://ftp.yar.ru/lftp/devel/. Please try. -- Alexander..