curl-library
Re: Segmentation fault in curl_easy_cleanup() [AIX]
Date: Mon, 28 Oct 2002 09:05:26 +0100 (MET)
On Tue, 22 Oct 2002 cml932atom_at_sulusea.org wrote:
> > > "memdebug.h", line 67.9: 1506-358 (I) "accept" is defined on line
> > > 127 of /usr/include/sys/socket.h.
> > > make: 1254-004 The error code from the last command is 1.
> >
> > This seems to happen because accept() is already a macro, so we
> > can't redefine the define like this.
> >
> > We could avoid the warning/error by using "#undef accept" first, but
> > then I bet we'll face some other problems.
> >
> > What exactly is accept defined to on line 127 of
> > /usr/include/sys/socket.h ?
>
> 90:inline int accept(int socketfd, struct sockaddr *address, socklen_t *address_len)
> 92: return naccept(socketfd, address, address_len);
> 127:#define accept naccept
Hm.
Since this system can't use a redefined accept() like libcurl does now for
the MALLOCDEBUG, we must come up with a different approach.
Until then, you'll need to make a work-around.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-10-28