help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pkg: sockets-1.0.2.tar.gz


From: John Swensen
Subject: Re: pkg: sockets-1.0.2.tar.gz
Date: Wed, 17 Oct 2007 22:16:24 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

Tatsuro MATSUOKA wrote:
I could not build sockets pkg. on cygwin octave-2.9.15.
(I have never been successful before but I have not care it.)

sockets.cc:279: error: `::close' has not been declared
make: *** [sockets.oct] Error 1

void octave_socket::remove_sock_fd(void)
{
#ifndef __WIN32__
        ::close( sock_fd );
#else
        ::closesocket( sock_fd );
#endif
        socket_map.erase( sock_fd );
        sock_fd = -1;
}

Pherhaps in the following, there is an origin of error. Do I have to add the define of '::close'? // System includes
#include <sys/types.h>
#ifndef __WIN32__
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#else
typedef unsigned int socklen_t;
#endif
#include <errno.h>





***********************
octave:10>  pkg install -local -verbose sockets-1.0.2.tar.gz
sockets.cc: In member function `void octave_socket::remove_sock_fd()':
sockets.cc:279: error: `::close' has not been declared
make: *** [sockets.oct] Error 1
mkdir (C:/PROGRA~1/cygwin/tmp/oct-22db70.3)
untar (sockets-1.0.2.tar.gz, C:/PROGRA~1/cygwin/tmp/oct-22db70.3)
error: 'make' returned the following error: make: Entering directory
`/tmp/oct-22db70.3/sockets-1.0.2/src'
mkoctfile -s sockets.cc
make: Leaving directory `/tmp/oct-22db70.3/sockets-1.0.2/src'
error: called from `pkg:configure_make' in file
/opt/octave/octave-2.9.15/share/octave/2.9.15/m/pkg/pkg.m near line 1044, 
column 2
*******************

Tatsuro
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave

I'm not quite sure.  I don't have access to a Windows machine with
Cygwin on it (I only have Macs now and don't have bootcamp running on my
Intel one).  At some point, that worked for Windows XP + Cygwin.  When I
originally made it, the socket functionality provided by Cygwin were the
same as those used with the MS compiler.  Maybe they have switched over
to using the syntax like the rest of the libc world, and the #define
should only detect whether it is the MS compiler?

John Swensen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]