Installing libcurl on QNX 6.1

I am attempting to install libcurl on QNX 6.1 on an x86 platform but not
having much success. When I run configure I get the following error :
“couldn’t find libraries for gethostbyname()”.

anyone have any ideas as to what the problem may be?

Colin Picking <cpicking@monduran.com> wrote:

I am attempting to install libcurl on QNX 6.1 on an x86 platform but not
having much success. When I run configure I get the following error :
“couldn’t find libraries for gethostbyname()”.

anyone have any ideas as to what the problem may be?

Because it use an older autoconf to generated the configure.in

You should either install newer autoconf and generate those,
or better, get the libcurl binary from “3rd party CD”. I believe
there are “ready to compile” source on cd if you want to
compile it yourself.

-xtang

Thanks for your reply Xiaodan but we have been able to get this working now
and I include what was needed in case anyone else should need to use it in
the future. Just for reference I got this running on QNX 6.2

The procedure I followed to get this to work was:

Obtain curl-7.9.7.tar.gz from
http://curl.haxx.se/downloads/curl-7.9.7.tar.gz
Unpack the file into a temporary directory
This should produce a directory called “curl-7.9.7” cd to this directory
Run configure using the following syntax:

LIBS=-lsocket ./configure CFLAGS=’-DFD_SETSIZE=64 -g -02’

Now you need to make a slight alteration to the multi.h header file (found
at curl-7.9.7/include/multi.h) to include sys/select.h. I just added the
line “#include <sys/select.h>” at line 58 immediately following the include
for curl.h.

make
make install

… and you are done. :slight_smile:

You should now be able to run the command line curl utility to access any of
the protocols curl implements or you can as easily access them through c
code.


“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:ae66ji$4tp$2@nntp.qnx.com

Colin Picking <> cpicking@monduran.com> > wrote:
I am attempting to install libcurl on QNX 6.1 on an x86 platform but not
having much success. When I run configure I get the following error :
“couldn’t find libraries for gethostbyname()”.

anyone have any ideas as to what the problem may be?

Because it use an older autoconf to generated the configure.in

You should either install newer autoconf and generate those,
or better, get the libcurl binary from “3rd party CD”. I believe
there are “ready to compile” source on cd if you want to
compile it yourself.

-xtang