Hi! Thank you for making & maintaining lftp!!

I compiled lftp on QNX 6.2 by fixing a couple of problems. I believe there are many QNX 6.2 users out there who wants/needs lftp (since QNX is used by many embedded systems) and it would be a good idea to reflect this to the newer version or add the following to the FAQ.

Here're the problems and my fixes:

Problem #1: QNX 6.2 didn't seem to have libiconv by default. Somehow running configure missed that (although it tested it at some point). ConnectionSlot.cc uses libiconv.

Fix #1: I downloaded, compiled & installed the most recent version of libiconv (v1.12).

Problem #2: QNX 6.2 doesn't have strptime() and wcwidth(). "strptime" is used by Http.cc and "wcwidth" is used by the readline library and src/mbswidth.c (used by example1, example1-cmd, example2)

Fix #2:

I downloaded wcwidth.c from
http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
then removed all mk_ in the code (meaning that I changed mk_wcwidth to wcwidth) and ad-hoc-ly edited readline-4.3/Makefile to include wcwidth.o (OBJECTS) and wcwidth.c (CSOURCES). I also edited src/Makefile that example1_LDADD, example1_cmd_LDADD and example2_LDADD have $(READLINE).

Then, I copied the strptime.c source code from
http://www.koders.com/c/fidE66941209F84DA6EBB9E02179FEFD7073C722BE6.aspx
then removed the "#include "strptime.h" line, and edited src/Makefile to include strptime.c (

Finally it compiled & works fine!!!

Thanks,

- Zu

Reply via email to