help-octave
[Top][All Lists]
Advanced

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

pkg: sockets-1.0.2.tar.gz


From: Tatsuro MATSUOKA
Subject: pkg: sockets-1.0.2.tar.gz
Date: Thu, 18 Oct 2007 10:57:55 +0900 (JST)

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/



reply via email to

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