public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] GoAhead Webserver 2.1
@ 2000-11-09 14:53 amassa
  2000-11-09 15:33 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: amassa @ 2000-11-09 14:53 UTC (permalink / raw)
  To: gthomas; +Cc: ecos-discuss

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?

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [ECOS] GoAhead Webserver 2.1
  2000-11-09 14:53 [ECOS] GoAhead Webserver 2.1 amassa
@ 2000-11-09 15:33 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2000-11-09 15:33 UTC (permalink / raw)
  To: amassa; +Cc: ecos-discuss

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-09 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-09 14:53 [ECOS] GoAhead Webserver 2.1 amassa
2000-11-09 15:33 ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).