This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: GoAhead Webserver 2.1
- To: "amassa at cts dot com" <amassa at cts dot com>
- Subject: RE: [ECOS] GoAhead Webserver 2.1
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Thu, 09 Nov 2000 16:33:25 -0700 (MST)
- Cc: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat, Inc.
On 09-Nov-2000 amassa@cts.com wrote:
> I am trying to link the libwebs.a compiled from the GoAhead webserver,
> however, I am getting the following error:
>
> /lib/libwebs.a(sock.o): In function `socketGetPort':
> ../sock.c:787: undefined reference to `send'
> ../sock.c:787: undefined reference to `recv'
> /lib/libwebs.a(sockGen.o): In function `socketSockBuffered':
> ../sockGen.c:1010: undefined reference to `recv'
> collect2: ld returned 1 exit status
> make[1]: *** [MBX.img] Error 0x1
>
>
> I can't understand why it would be unable to locate these functions (send
> and recv) which are located in the same file sys/socket.h as sendto which is
> also called in sock.c and recvfrom called in sockGen.c.
>
> Do you know what I am doing wrong or forgetting?
These are only in the latest anonCVS sources, which include the POSIX layers.
You need to make sure that you have 'CYGPKG_IO_FILEIO' included. This comes
as standard now when you select the "net" template.