cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cross compile error

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 22 Jul 2008 11:16:02 -0700

On Fri, Jul 18, 2008 at 12:12:38PM -0600, Sugoi Ryu wrote:
> i am attempting to cross compile curl for windows on a gentoo linux distro.
> attached are the build log and the ebuild environment
[...]
> Making install in examples
> make[5]: Entering directory `/var/tmp/portage/net-misc/curl-7.17.1/work/curl-7.17.1/docs/examples'
> if mingw32-gcc -DHAVE_CONFIG_H -I../../include -DCURL_NO_OLDIES -Os -MT 10-at-a-time.o -MD -MP -MF ".deps/10-at-a-time.Tpo" -c -o 10-at-a-time.o 10-at-a-time.c; \
> then mv -f ".deps/10-at-a-time.Tpo" ".deps/10-at-a-time.Po"; else rm -f ".deps/10-at-a-time.Tpo"; exit 1; fi
> /bin/sh ../../libtool --tag=CC --mode=link mingw32-gcc -Os -Wl,-O1 -o 10-at-a-time.exe 10-at-a-time.o ../../lib/libcurl.la
> mkdir .libs
> mingw32-gcc -Os -Wl,-O1 -o .libs/10-at-a-time.exe 10-at-a-time.o ../../lib/.libs/libcurl.dll.a -lwinmm -lws2_32
> 10-at-a-time.o:10-at-a-time.c:(.text+0x1cd): undefined reference to `_sleep'
> collect2: ld returned 1 exit status

This failure is in an example program, so it's not critical failure. In
fact, these example programs shouldn't even be compiled on an install and
they no longer are as of 7.18.2.

As for the missing _sleep definition, I don't know the cause. It probably
comes from the Sleep(L); line in the code, but I don't know which library
defines it.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-22