Re: Errors while building
Date: Thu, 26 Jun 2008 14:31:32 -0700
Its on Ubuntu 8.04 compiled with gcc 4.1.2
The curl version is the latest one - 7.18.2
Now i used the following to configure:
./configure --disable-ftp --disable-file --disable-ldap --disable-dict
--disable-telnet --disable-tftp --disable-manual --disable-ipv6
--disable-verbose --disable-sspi --disable-crypto-auth --disable-cookies
--without-ssl --with-nss --without-zlib --without-libidn
On Thu, Jun 26, 2008 at 1:58 PM, Dan Fandrich <dan_at_coneharvesters.com>
> On Thu, Jun 26, 2008 at 01:33:18PM -0700, Scoped Ptr wrote:
> > I get the following errors while building curl with my code. Any
> > where am I going wrong?
> What platform/compiler/clib? What curl version?
> > /usr/include/stdlib.h:471: error: 'void* Curl_cmalloc(size_t)' redeclared
> > different kind of symbol
> > <path>/unix/curl/memory.h:28: error: previous declaration of 'void* (*
> > Curl_cmalloc)(size_t)'
> It looks like something is including stdlib.h after memory.h or memdebug.h,
> both of which have a #define malloc. All the curl sources have a comment
> "This must be the last include file" before including those to make it
> not to do otherwise.
> > and more of same kinds ! I guess something is wrong with the way I have
> > configured. I just used options for including SSL and nothing more.
> It's possible that curl picks up some strange options from pkg-config that
> could affect this, but curl builds on lots of platforms without problems.
> >>> Dan
> http://www.MoveAnnouncer.com The web change of address
> Let webmasters know that your web site has moved
Received on 2008-06-26