curl-library
Re: Segment fault when running the ftpget.c sample binary with libcurl and ftpget.c built for arm-linux
Date: Mon, 22 May 2006 16:33:30 -0000
On Sun, May 21, 2006, Ed Waldner <edwaldner_at_yahoo.com> said:
> Hello,
>
> I'm trying to see how libcurl works on an Applied Data
> Systems BitsyXb development kit running a PXA-270
> Intel Xscale processor.
>
> I downloaded the latest libcurl 7.15.3-1 src rpm via
> curl.haxx.se. I'm running fedora core 5 and I've got
> the arm-linux toolchain installed.
>
> I ran ./configure with the following install options:
> ./configure --enable-ftp --enable-tftp --without-ssl
> --prefix=/usr/local/arm/3.3.2/ --host=arm-linux
>
> I then ran 'make' and 'sudo make install'. Got the
> shared libcurl.* libraries in the right place inside
> the /usr/local/arm/3.3.2 tree.
>
> I then tried to build the ftpget.c binary as follows:
>
> arm-linux-gcc ftpget.c -shared
> /usr/local/arm/3.3.2/lib/libcurl.so
>
> I transfered a.out to my target dev kit and ran it. I
> got a segmentation fault. I modified the ftpget.c to
> include some debug printf statements, but I didn't see
> any of them - only the seg fault.
>
> I did a fairly extensive search in faqs and user docs
> and online forums but did not find a similar issue
> discussed.
>
> Any ideas on what I'm doing wrong and on what I can do
> to overcome the segmentation fault?
i have built libcurl using both the snapgear and openembedded
build systems. i found that things worked pretty well out of the
box. try getting gdb running in your devel env.
allan
>
> Thanks.
> -Ed.
>
>
-- m. allan noah IT Director, TfHS.net ph# (804) 355-5489 tf# (866) 724-9722 fx# (804) 355-0477Received on 2006-05-22