curl-library
Re: How do I compile and install libcurl with MinGW?
Date: Tue, 1 Apr 2008 22:25:09 -0400
On Tue, Apr 1, 2008 at 9:43 PM, Guenter Knauf <eflash_at_gmx.net> wrote:
> Hi Samus,
> > I extracted the sources and I ran the Makefile.m32 that is inside the
> > 'lib'
> there are also mingw32 targets in the main Makefile in the root.
>
> > folder. I got an error from the included file 'ca-bundle.h' from 'url.c:
> > line 140'. I looked at the contents of ca-bundle.h and it is a make
> > generated file, but It has some kind of error. So I modified line 147 on
> > the
> > Makefile.m32 to read:
> > @echo $(DL)/*Do not edit this file - it is created by make!$(DL) > $@
> > instead of:
> > @echo $(DL)/* Do not edit this file - it is created by make!$(DL) > $@
> > (note
> > the space between /* and Do).
> hmm, do you use MingW32 from bash = MSYS?
>
> > After doing this it compiles correctly (for some reason make gives me
> this
> > error but it ignores it: make: [libcurl.dll] Error 127 (ignored) ). But
> > how
> > do I install the libraries so I can use libcurl's functions in my
> > programs?
> > Am I doing this correctly? Why does error 127 show up?
> no sure, please answer my question, and please do also post the exact
> error output with your next mail;
> the I might be able to see what's wrong....
>
> Also can you please try with recent daily snapshot since we have just
> removed the ca-bundle.h file;
> so anyway this error should now be gone:
> http://cool.haxx.se/curl-daily/
>
> Guenter.
>
>
> OK. If I run make from the root of the folder, something weird happens.
The hard drive just keeps making noise, and it makes some stack dumps over
and over and doesn't stop. If I run the Makefile at the root of the folder
using bash MSYS, then it runs ./configure, but other weird things also
happen. Windows keeps telling me that programs had a problem and needed to
close, and at the end it simply displayed error 77.
Now, I didn't use MSYS for the Makefile.m32 inside the 'lib' folder, I only
used make from the command prompt. I downloaded the daily snapshot, and the
ca-bundle.h error did not appeared. The library seems to have compiled but I
did have error 127 again. It displays:
(command was "make -f Makefile.m32" from the 'lib' folder)
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c file.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c timeval.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c base64.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c hostip.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c progress.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c formdata.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c cookie.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c http.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c sendf.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c ftp.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c url.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c dict.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c if2ip.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c speedcheck.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c ldap.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c ssluse.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c version.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c getenv.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c escape.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c mprintf.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c telnet.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c netrc.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c getinfo.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c transfer.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c strequal.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c easy.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c security.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c krb4.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c krb5.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c memdebug.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c http_chunks.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c strtok.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c connect.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c llist.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c hash.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c multi.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c content_encoding.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c share.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c http_digest.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c md5.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c http_negotiate.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c http_ntlm.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c inet_pton.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c strtoofft.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c strerror.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c hostares.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c hostasyn.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c hostip4.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c hostip6.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c hostsyn.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c hostthre.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c inet_ntop.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c parsedate.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c select.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c gtls.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c sslgen.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c tftp.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c splay.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c strdup.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c socks.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c ssh.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c nss.c
gcc -I. -I../include -g -O2 -DBUILDING_LIBCURL -c qssl.c
del /q /f > NUL 2>&1 libcurl.a
make: [libcurl.a] Error 127 (ignored)
ar cru libcurl.a file.o timeval.o base64.o hostip.o progress.o formdata.ocookie
.o http.o sendf.o ftp.o url.o dict.o if2ip.o speedcheck.o ldap.o ssluse.oversio
n.o getenv.o escape.o mprintf.o telnet.o netrc.o getinfo.o transfer.o
strequal.o
easy.o security.o krb4.o krb5.o memdebug.o http_chunks.o strtok.o connect.olli
st.o hash.o multi.o content_encoding.o share.o http_digest.o md5.ohttp_negotiat
e.o http_ntlm.o inet_pton.o strtoofft.o strerror.o hostares.o hostasyn.ohostip4
.o hostip6.o hostsyn.o hostthre.o inet_ntop.o parsedate.o select.o gtls.osslgen
.o tftp.o splay.o strdup.o socks.o ssh.o nss.o qssl.o
ranlib libcurl.a
strip -g libcurl.a
windres --include-dir=../include -DCURLDEBUG=0 -O COFF -i libcurl.rc -o
libcurl.
res
del /q /f > NUL 2>&1 libcurl.dll
make: [libcurl.dll] Error 127 (ignored)
gcc -s -shared -Wl,--out-implib,libcurldll.a \
-o libcurl.dll file.o timeval.o base64.o hostip.o progress.oformdata.
o cookie.o http.o sendf.o ftp.o url.o dict.o if2ip.o speedcheck.o ldap.ossluse.
o version.o getenv.o escape.o mprintf.o telnet.o netrc.o getinfo.o
transfer.o st
requal.o easy.o security.o krb4.o krb5.o memdebug.o http_chunks.o strtok.oconne
ct.o llist.o hash.o multi.o content_encoding.o share.o http_digest.o md5.ohttp_
negotiate.o http_ntlm.o inet_pton.o strtoofft.o strerror.o hostares.o
hostasyn.o
hostip4.o hostip6.o hostsyn.o hostthre.o inet_ntop.o parsedate.o select.ogtls.
o sslgen.o tftp.o splay.o strdup.o socks.o ssh.o nss.o qssl.o libcurl.res-lwlda
p32 -lws2_32 -lwinmm
Creating library file: libcurldll.a
Sorry, but after this I do not now what to do, and I don't know either why I
can't compile from the makefile in the root folder (if I even need it).
Thanks.
Received on 2008-04-02