Search found 4 matches

by mymlact
Fri Jan 29, 2021 5:37 pm
Forum: General MakeMKV discussion
Topic: rips of same title produces differing files
Replies: 1
Views: 3585

rips of same title produces differing files

Hi, I have some bluerays that I have backed up using makemkv and I wanted to produce a playable mkv to watch. I opened up the BDMV/index.bdmv file using makemkv to get the titles and chose the proper one. I then clicked on "save selected title" button and away it went. I ended up with the ...
by mymlact
Tue Jan 12, 2021 10:34 pm
Forum: General MakeMKV discussion
Topic: mkv vs. m2ts for single file playlists
Replies: 1
Views: 4260

mkv vs. m2ts for single file playlists

Hi All, Hopefully this is a simple question. Generally i backup a blueray and then create a single file mkv for the feature. When makemkv reports that the feature title has only one m2ts file in the playlist, is there any reason to use makemkv to create a mkv file? My players support m2ts just fine ...
by mymlact
Sun Apr 23, 2017 4:37 pm
Forum: MakeMKV for Linux
Topic: Trying to build on OpenBSD
Replies: 2
Views: 9878

Re: Trying to build on OpenBSD

# cat config_failed.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ffabi configure 0, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/home2/testuser/make...
by mymlact
Sun Apr 23, 2017 4:24 pm
Forum: MakeMKV for Linux
Topic: Trying to build on OpenBSD
Replies: 2
Views: 9878

Trying to build on OpenBSD

Hi All,

I'm trying to build makemkv 1.10.5 on an OpenBSD current system and it's failing during the configure stage. I've downloaded and built the current 3.3 version of ffmpeg and then passed PKG_CONFIG_PATH to the configure script as such:

Note this is the first step, building the OSS portion, have not attempted moving on to the bin piece yes.

PKG_CONFIG_PATH=~/ffmpeg/lib/pkgconfig ./configure --prefix~/makemkv

I'm relatively sure this is due to the fact that there are no real time libraries that I can find for OpenBSD.

I modified the configure script, removing "-lrt" from the line "LIBS="$ffmpeg_LIBS -lrt"". After doing this, configure ran fine, finding the correct version of libavcodec which was previously giving me the following error.

configure:15914: checking LIBAVCODEC_VERSION_MAJOR
configure:15916: /usr/local/bin/x86_64-unknown-openbsd6.1-gcc-4.9.4 -o conftest -g -O2 -I/home2/testuser/ffmpeg/include conftest.c -L/home2/testuser/ffmpeg/lib -L/usr/X11R6/lib -L/usr/local/lib -pthread -lavcodec -lossaudio -liconv -lxcb -lxcb-shm -lxcb-xfixes -lxcb-shape -lsndio -lfdk-aac -llzma -lbz2 -lz -lswresample -lavutil -lm -lrt >&5
/usr/bin/ld: cannot find -lrt
collect2: error: ld returned 1 exit status

After the successful configure, make fails with the errors below. I did notice that there are still references to -lrt in the make file so I did remove all reference to -lrt from the MAKEFILE, did a make clean and re-ran but it still errors out.

At this point I'm not sure how to proceed.

I have attached my config.log files, both from the failed and successful runs. (UPDATE, I tried to attach the files but got error "Sorry, the board attachment quota has been reached." I will post the failed log in a followup post.

Any help would be great.

Thanks!


$ gmake
mkdir -p out
/usr/local/bin/x86_64-unknown-openbsd6.1-gcc-4.9.4 -g -O2 -D_linux_ -D_REENTRANT -shared -Wl,-z,defs -oout/libdriveio.so.0.full -I./libdriveio/inc libdriveio/src/infolist.cpp libdriveio/src/scsihlp.cpp libdriveio/src/srlist.cpp libdriveio/src/stdquery.cpp libdriveio/src/tipclient.cpp libdriveio/src/tipcommon.cpp libdriveio/src/tipserver.cpp libdriveio/src/drives/pioneer.cpp libdriveio/src/drives/xboxhddvd.cpp \
-fPIC -Xlinker -dy -Xlinker --version-script=libdriveio/src/libdriveio.vers \
-Xlinker -soname=libdriveio.so.0 -lc -lstdc++
In file included from libdriveio/src/tipclient.cpp:27:0:
libdriveio/src/tipcommon.h:25:14: error: 'SOCKET' was not declared in this scope
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:23: error: expected primary-expression before 'const'
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:47: error: expected primary-expression before 'data_size'
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:56: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:26:14: error: 'SOCKET' was not declared in this scope
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:26:23: error: expected primary-expression before 'unsigned'
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:26:42: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:27:13: error: 'SOCKET' was not declared in this scope
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:27:22: error: expected primary-expression before 'unsigned'
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:27:41: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:28:15: error: 'SOCKET' was not declared in this scope
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:24: error: expected primary-expression before 'void'
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:42: error: expected primary-expression before 'data_size'
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:51: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:29:14: error: 'SOCKET' was not declared in this scope
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:29:23: error: expected primary-expression before 'unsigned'
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:29:43: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:30:15: error: 'SOCKET' was not declared in this scope
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipcommon.h:30:24: error: expected primary-expression before 'unsigned'
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipcommon.h:30:44: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipclient.cpp:35:5: error: 'SOCKET' does not name a type
SOCKET m_socket;
^
libdriveio/src/tipclient.cpp: In constructor 'LibDriveIo::CTIPSClient::CTIPSClient()':
libdriveio/src/tipclient.cpp:82:5: error: 'm_socket' was not declared in this scope
m_socket=INVALID_SOCKET;
^
libdriveio/src/tipclient.cpp:82:14: error: 'INVALID_SOCKET' was not declared in this scope
m_socket=INVALID_SOCKET;
^
libdriveio/src/tipclient.cpp: In destructor 'LibDriveIo::CTIPSClient::~CTIPSClient()':
libdriveio/src/tipclient.cpp:87:9: error: 'm_socket' was not declared in this scope
if (m_socket!=INVALID_SOCKET)
^
libdriveio/src/tipclient.cpp:87:19: error: 'INVALID_SOCKET' was not declared in this scope
if (m_socket!=INVALID_SOCKET)
^
libdriveio/src/tipclient.cpp:89:27: error: 'SD_BOTH' was not declared in this scope
shutdown(m_socket,SD_BOTH);
^
libdriveio/src/tipclient.cpp:89:34: error: 'shutdown' was not declared in this scope
shutdown(m_socket,SD_BOTH);
^
libdriveio/src/tipclient.cpp:90:29: error: 'closesocket' was not declared in this scope
closesocket(m_socket);
^
libdriveio/src/tipclient.cpp: In member function 'int LibDriveIo::CTIPSClient::Connect(const char*)':
libdriveio/src/tipclient.cpp:98:9: error: 'm_socket' was not declared in this scope
if (m_socket!=INVALID_SOCKET)
^
libdriveio/src/tipclient.cpp:98:19: error: 'INVALID_SOCKET' was not declared in this scope
if (m_socket!=INVALID_SOCKET)
^
libdriveio/src/tipclient.cpp:103:23: error: 'tcpip_startup' was not declared in this scope
err=tcpip_startup();
^
libdriveio/src/tipclient.cpp:109:5: error: 'SOCKET' was not declared in this scope
SOCKET s;
^
libdriveio/src/tipclient.cpp:111:5: error: 's' was not declared in this scope
s = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipclient.cpp:111:16: error: 'PF_INET' was not declared in this scope
s = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipclient.cpp:111:24: error: 'SOCK_STREAM' was not declared in this scope
s = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipclient.cpp:111:36: error: 'IPPROTO_TCP' was not declared in this scope
s = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipclient.cpp:111:47: error: 'socket' was not declared in this scope
s = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipclient.cpp:112:12: error: 'INVALID_SOCKET' was not declared in this scope
if (s==INVALID_SOCKET)
^
libdriveio/src/tipclient.cpp:114:28: error: 'tcpip_errno' was not declared in this scope
return tcpip_errno();
^
libdriveio/src/tipclient.cpp:117:24: error: aggregate 'LibDriveIo::sockaddr_in addr' has incomplete type and cannot be defined
struct sockaddr_in addr;
^
libdriveio/src/tipclient.cpp:124:55: error: 'connect' was not declared in this scope
err=connect(s,(struct sockaddr*)&addr,sizeof(addr));
^
libdriveio/src/tipclient.cpp:127:25: error: 'tcpip_errno' was not declared in this scope
err=tcpip_errno();
^
libdriveio/src/tipclient.cpp:128:22: error: 'closesocket' was not declared in this scope
closesocket(s);
^
libdriveio/src/tipclient.cpp:132:5: error: 'm_socket' was not declared in this scope
m_socket = s;
^
libdriveio/src/tipclient.cpp: In member function 'virtual int LibDriveIo::CTIPSClient::Exec(const ScsiCmd*, ScsiCmdResponse*)':
libdriveio/src/tipclient.cpp:141:9: error: 'm_socket' was not declared in this scope
if (m_socket==INVALID_SOCKET)
^
libdriveio/src/tipclient.cpp:141:19: error: 'INVALID_SOCKET' was not declared in this scope
if (m_socket==INVALID_SOCKET)
^
libdriveio/src/tipclient.cpp:151:18: error: 'm_socket' was not declared in this scope
err=snd_char(m_socket,Cmd->CdbLen);
^
libdriveio/src/tipclient.cpp:151:38: error: 'LibDriveIo::snd_char' cannot be used as a function
err=snd_char(m_socket,Cmd->CdbLen);
^
libdriveio/src/tipclient.cpp:154:47: error: 'LibDriveIo::snd_data' cannot be used as a function
err=snd_data(m_socket,Cmd->Cdb,Cmd->CdbLen);
^
libdriveio/src/tipclient.cpp:157:39: error: 'LibDriveIo::snd_int' cannot be used as a function
err=snd_int(m_socket,Cmd->InputLen);
^
libdriveio/src/tipclient.cpp:160:57: error: 'LibDriveIo::snd_data' cannot be used as a function
err=snd_data(m_socket,Cmd->InputBuffer,Cmd->InputLen);
^
libdriveio/src/tipclient.cpp:163:40: error: 'LibDriveIo::snd_int' cannot be used as a function
err=snd_int(m_socket,Cmd->OutputLen);
^
libdriveio/src/tipclient.cpp:169:30: error: 'LibDriveIo::recv_int' cannot be used as a function
err=recv_int(m_socket,&tv);
^
libdriveio/src/tipclient.cpp:180:72: error: 'LibDriveIo::recv_data' cannot be used as a function
err=recv_data(m_socket,Cmd->OutputBuffer,CmdResult->Transferred);
^
libdriveio/src/tipclient.cpp:184:46: error: 'LibDriveIo::recv_char' cannot be used as a function
err=recv_char(m_socket,&CmdResult->Status);
^
libdriveio/src/tipclient.cpp:187:31: error: 'LibDriveIo::recv_char' cannot be used as a function
err=recv_char(m_socket,&tc);
^
libdriveio/src/tipclient.cpp:196:68: error: 'LibDriveIo::recv_data' cannot be used as a function
err=recv_data(m_socket,CmdResult->SenseData,CmdResult->SenseLen);
^
In file included from libdriveio/src/tipcommon.cpp:28:0:
libdriveio/src/tipcommon.h:25:14: error: 'SOCKET' was not declared in this scope
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:23: error: expected primary-expression before 'const'
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:47: error: expected primary-expression before 'data_size'
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:56: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:26:14: error: 'SOCKET' was not declared in this scope
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:26:23: error: expected primary-expression before 'unsigned'
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:26:42: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:27:13: error: 'SOCKET' was not declared in this scope
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:27:22: error: expected primary-expression before 'unsigned'
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:27:41: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:28:15: error: 'SOCKET' was not declared in this scope
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:24: error: expected primary-expression before 'void'
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:42: error: expected primary-expression before 'data_size'
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:51: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:29:14: error: 'SOCKET' was not declared in this scope
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:29:23: error: expected primary-expression before 'unsigned'
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:29:43: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:30:15: error: 'SOCKET' was not declared in this scope
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipcommon.h:30:24: error: expected primary-expression before 'unsigned'
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipcommon.h:30:44: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipcommon.cpp: In function 'int LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)':
libdriveio/src/tipcommon.cpp:68:21: error: aggregate 'LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo hint' has incomplete type and cannot be defined
struct addrinfo hint,*adr_info;
^
libdriveio/src/tipcommon.cpp:71:20: error: 'PF_INET' was not declared in this scope
hint.ai_family=PF_INET;
^
libdriveio/src/tipcommon.cpp:72:22: error: 'SOCK_STREAM' was not declared in this scope
hint.ai_socktype=SOCK_STREAM;
^
libdriveio/src/tipcommon.cpp:73:22: error: 'IPPROTO_TCP' was not declared in this scope
hint.ai_protocol=IPPROTO_TCP;
^
libdriveio/src/tipcommon.cpp:75:54: error: 'getaddrinfo' was not declared in this scope
err=getaddrinfo(addr_ip,addr_port,&hint,&adr_info);
^
libdriveio/src/tipcommon.cpp:80:19: error: invalid use of incomplete type 'struct LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo'
if ( (adr_info->ai_family!=PF_INET) ||
^
libdriveio/src/tipcommon.cpp:68:12: error: forward declaration of 'struct LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo'
struct addrinfo hint,*adr_info;
^
libdriveio/src/tipcommon.cpp:81:18: error: invalid use of incomplete type 'struct LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo'
(adr_info->ai_socktype!=SOCK_STREAM) ||
^
libdriveio/src/tipcommon.cpp:68:12: error: forward declaration of 'struct LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo'
struct addrinfo hint,*adr_info;
^
libdriveio/src/tipcommon.cpp:82:18: error: invalid use of incomplete type 'struct LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo'
(adr_info->ai_protocol!=IPPROTO_TCP) )
^
libdriveio/src/tipcommon.cpp:68:12: error: forward declaration of 'struct LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo'
struct addrinfo hint,*adr_info;
^
libdriveio/src/tipcommon.cpp:87:25: error: invalid use of incomplete type 'struct LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo'
memcpy(Addr,adr_info->ai_addr,sizeof(struct sockaddr_in));
^
libdriveio/src/tipcommon.cpp:68:12: error: forward declaration of 'struct LibDriveIo::AddrFromString(LibDriveIo::sockaddr_in*, const char*)::addrinfo'
struct addrinfo hint,*adr_info;
^
libdriveio/src/tipcommon.cpp:87:60: error: invalid application of 'sizeof' to incomplete type 'LibDriveIo::sockaddr_in'
memcpy(Addr,adr_info->ai_addr,sizeof(struct sockaddr_in));
^
libdriveio/src/tipcommon.cpp:91:21: error: invalid use of incomplete type 'struct LibDriveIo::sockaddr_in'
memset(&Addr->sin_addr,0,sizeof(Addr->sin_addr));
^
In file included from libdriveio/src/tipcommon.cpp:28:0:
libdriveio/src/tipcommon.h:24:27: error: forward declaration of 'struct LibDriveIo::sockaddr_in'
int AddrFromString(struct sockaddr_in* Addr,const char* Str);
^
libdriveio/src/tipcommon.cpp:91:45: error: invalid use of incomplete type 'struct LibDriveIo::sockaddr_in'
memset(&Addr->sin_addr,0,sizeof(Addr->sin_addr));
^
In file included from libdriveio/src/tipcommon.cpp:28:0:
libdriveio/src/tipcommon.h:24:27: error: forward declaration of 'struct LibDriveIo::sockaddr_in'
int AddrFromString(struct sockaddr_in* Addr,const char* Str);
^
libdriveio/src/tipcommon.cpp: At global scope:
libdriveio/src/tipcommon.cpp:97:14: error: redefinition of 'int LibDriveIo::snd_data'
int snd_data(SOCKET s,const void *data,size_t data_size)
^
In file included from libdriveio/src/tipcommon.cpp:28:0:
libdriveio/src/tipcommon.h:25:5: note: 'int LibDriveIo::snd_data' previously defined here
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.cpp:97:14: error: 'SOCKET' was not declared in this scope
int snd_data(SOCKET s,const void *data,size_t data_size)
^
libdriveio/src/tipcommon.cpp:97:23: error: expected primary-expression before 'const'
int snd_data(SOCKET s,const void *data,size_t data_size)
^
libdriveio/src/tipcommon.cpp:97:47: error: expected primary-expression before 'data_size'
int snd_data(SOCKET s,const void *data,size_t data_size)
^
libdriveio/src/tipcommon.cpp:239:2: error: expected '}' at end of input
}; // namespace LibDriveIo
^
In file included from libdriveio/src/tipserver.cpp:26:0:
libdriveio/src/tipcommon.h:25:14: error: 'SOCKET' was not declared in this scope
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:23: error: expected primary-expression before 'const'
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:47: error: expected primary-expression before 'data_size'
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:25:56: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_data(SOCKET s,const void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:26:14: error: 'SOCKET' was not declared in this scope
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:26:23: error: expected primary-expression before 'unsigned'
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:26:42: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_char(SOCKET s,unsigned char value);
^
libdriveio/src/tipcommon.h:27:13: error: 'SOCKET' was not declared in this scope
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:27:22: error: expected primary-expression before 'unsigned'
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:27:41: error: expression list treated as compound expression in initializer [-fpermissive]
int snd_int(SOCKET s,unsigned long value);
^
libdriveio/src/tipcommon.h:28:15: error: 'SOCKET' was not declared in this scope
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:24: error: expected primary-expression before 'void'
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:42: error: expected primary-expression before 'data_size'
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:28:51: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_data(SOCKET s,void *data,size_t data_size);
^
libdriveio/src/tipcommon.h:29:14: error: 'SOCKET' was not declared in this scope
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:29:23: error: expected primary-expression before 'unsigned'
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:29:43: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_int(SOCKET s,unsigned long *value);
^
libdriveio/src/tipcommon.h:30:15: error: 'SOCKET' was not declared in this scope
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipcommon.h:30:24: error: expected primary-expression before 'unsigned'
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipcommon.h:30:44: error: expression list treated as compound expression in initializer [-fpermissive]
int recv_char(SOCKET s,unsigned char *value);
^
libdriveio/src/tipserver.cpp:38:48: error: 'SOCKET' has not been declared
static int ProcessCommand(unsigned char CdbLen,SOCKET s,FILE* fLog,DriveIoExecScsiCmdFunc ScsiProc,void* ScsiContext)
^
libdriveio/src/tipserver.cpp: In function 'int ProcessCommand(unsigned char, int, FILE*, DriveIoExecScsiCmdFunc, void*)':
libdriveio/src/tipserver.cpp:55:39: error: 'LibDriveIo::recv_data' cannot be used as a function
err=recv_data(s,Cmd.Cdb,Cmd.CdbLen);
^
libdriveio/src/tipserver.cpp:58:23: error: 'LibDriveIo::recv_int' cannot be used as a function
err=recv_int(s,&ti);
^
libdriveio/src/tipserver.cpp:71:38: error: 'LibDriveIo::recv_data' cannot be used as a function
err=recv_data(s,p_in,Cmd.InputLen);
^
libdriveio/src/tipserver.cpp:78:23: error: 'LibDriveIo::recv_int' cannot be used as a function
err=recv_int(s,&ti);
^
libdriveio/src/tipserver.cpp:134:40: error: 'LibDriveIo::snd_int' cannot be used as a function
err=snd_int(s,CmdResult.Transferred);
^
libdriveio/src/tipserver.cpp:143:62: error: 'LibDriveIo::snd_data' cannot be used as a function
err=snd_data(s,Cmd.OutputBuffer,CmdResult.Transferred);
^
libdriveio/src/tipserver.cpp:154:36: error: 'LibDriveIo::snd_char' cannot be used as a function
err=snd_char(s,CmdResult.Status);
^
libdriveio/src/tipserver.cpp:157:53: error: 'LibDriveIo::snd_char' cannot be used as a function
err=snd_char(s,(unsigned char)CmdResult.SenseLen);
^
libdriveio/src/tipserver.cpp:160:58: error: 'LibDriveIo::snd_data' cannot be used as a function
err=snd_data(s,CmdResult.SenseData,CmdResult.SenseLen);
^
libdriveio/src/tipserver.cpp: In function 'int TIPS_ServerRun(FILE*, const char*, DriveIoExecScsiCmdFunc, void*)':
libdriveio/src/tipserver.cpp:169:5: error: 'SOCKET' was not declared in this scope
SOCKET s_listen,s_comm;
^
libdriveio/src/tipserver.cpp:170:24: error: aggregate 'LibDriveIo::sockaddr_in addr' has incomplete type and cannot be defined
struct sockaddr_in addr;
^
libdriveio/src/tipserver.cpp:174:23: error: 'tcpip_startup' was not declared in this scope
err=tcpip_startup();
^
libdriveio/src/tipserver.cpp:180:5: error: 's_listen' was not declared in this scope
s_listen = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipserver.cpp:180:23: error: 'PF_INET' was not declared in this scope
s_listen = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipserver.cpp:180:31: error: 'SOCK_STREAM' was not declared in this scope
s_listen = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipserver.cpp:180:43: error: 'IPPROTO_TCP' was not declared in this scope
s_listen = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipserver.cpp:180:54: error: 'socket' was not declared in this scope
s_listen = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
^
libdriveio/src/tipserver.cpp:181:19: error: 'INVALID_SOCKET' was not declared in this scope
if (s_listen==INVALID_SOCKET)
^
libdriveio/src/tipserver.cpp:183:28: error: 'tcpip_errno' was not declared in this scope
return tcpip_errno();
^
libdriveio/src/tipserver.cpp:192:59: error: 'bind' was not declared in this scope
if (bind(s_listen,(struct sockaddr*)&addr,sizeof(addr))!=0)
^
libdriveio/src/tipserver.cpp:194:25: error: 'tcpip_errno' was not declared in this scope
err=tcpip_errno();
^
libdriveio/src/tipserver.cpp:195:29: error: 'closesocket' was not declared in this scope
closesocket(s_listen);
^
libdriveio/src/tipserver.cpp:199:27: error: 'listen' was not declared in this scope
if (listen(s_listen,10)!=0)
^
libdriveio/src/tipserver.cpp:201:25: error: 'tcpip_errno' was not declared in this scope
err=tcpip_errno();
^
libdriveio/src/tipserver.cpp:202:29: error: 'closesocket' was not declared in this scope
closesocket(s_listen);
^
libdriveio/src/tipserver.cpp:206:5: error: 's_comm' was not declared in this scope
s_comm = INVALID_SOCKET;
^
libdriveio/src/tipserver.cpp:206:14: error: 'INVALID_SOCKET' was not declared in this scope
s_comm = INVALID_SOCKET;
^
libdriveio/src/tipserver.cpp:210:100: error: 'inet_ntoa' was not declared in this scope
fprintf(fLog,"Trivial IP SCSI server started, listening on %s:%u\n",inet_ntoa(addr.sin_addr),ntohs(addr.sin_port));
^
libdriveio/src/tipserver.cpp:215:9: error: 'fd_set' was not declared in this scope
fd_set fs;
^
libdriveio/src/tipserver.cpp:217:9: error: 'timeval' was not declared in this scope
timeval tval;
^
libdriveio/src/tipserver.cpp:219:18: error: 'fs' was not declared in this scope
FD_ZERO(&fs);
^
libdriveio/src/tipserver.cpp:219:20: error: 'FD_ZERO' was not declared in this scope
FD_ZERO(&fs);
^
libdriveio/src/tipserver.cpp:220:28: error: 'FD_SET' was not declared in this scope
FD_SET(s_listen,&fs);
^
libdriveio/src/tipserver.cpp:230:9: error: 'tval' was not declared in this scope
tval.tv_sec = 2;
^
libdriveio/src/tipserver.cpp:233:46: error: 'select' was not declared in this scope
err=select(nfds+1,&fs,NULL,NULL,&tval);
^
libdriveio/src/tipserver.cpp:236:29: error: 'tcpip_errno' was not declared in this scope
err=tcpip_errno();
^
libdriveio/src/tipserver.cpp:237:33: error: 'closesocket' was not declared in this scope
closesocket(s_listen);
^
libdriveio/src/tipserver.cpp:244:34: error: 'FD_ISSET' was not declared in this scope
if (FD_ISSET(s_listen,&fs))
^
libdriveio/src/tipserver.cpp:246:20: error: expected ';' before 's'
SOCKET s;
^
libdriveio/src/tipserver.cpp:247:32: error: aggregate 'LibDriveIo::sockaddr_in sa' has incomplete type and cannot be defined
struct sockaddr_in sa;
^
libdriveio/src/tipserver.cpp:248:13: error: 'socklen_t' was not declared in this scope
socklen_t salen;
^
libdriveio/src/tipserver.cpp:249:13: error: 'salen' was not declared in this scope
salen=sizeof(sa);
^
libdriveio/src/tipserver.cpp:250:13: error: 's' was not declared in this scope
s = accept(s_listen,(struct sockaddr*)&sa,&salen);
^
libdriveio/src/tipserver.cpp:250:61: error: 'accept' was not declared in this scope
s = accept(s_listen,(struct sockaddr*)&sa,&salen);
^
libdriveio/src/tipserver.cpp:257:75: error: 'inet_ntoa' was not declared in this scope
fprintf(fLog,"Connect from %s:%u - ",inet_ntoa(sa.sin_addr),ntohs(sa.sin_port));
^
libdriveio/src/tipserver.cpp:261:30: error: 'closesocket' was not declared in this scope
closesocket(s);
^
libdriveio/src/tipserver.cpp:279:36: error: 'FD_ISSET' was not declared in this scope
if (FD_ISSET(s_comm,&fs))
^
libdriveio/src/tipserver.cpp:282:52: error: 'recv' was not declared in this scope
err=recv(s_comm,(char*)&cdb_len,1,0);
^
libdriveio/src/tipserver.cpp:290:39: error: 'closesocket' was not declared in this scope
closesocket(s_comm);
^
libdriveio/src/tipserver.cpp:301:39: error: 'closesocket' was not declared in this scope
closesocket(s_comm);
^
libdriveio/src/tipserver.cpp:314:39: error: 'closesocket' was not declared in this scope
closesocket(s_comm);
^
libdriveio/src/tipserver.cpp:322:51: error: 'closesocket' was not declared in this scope
if (INVALID_SOCKET!=s_comm) closesocket(s_comm);
^
libdriveio/src/tipserver.cpp:323:25: error: 'closesocket' was not declared in this scope
closesocket(s_listen);
^
gmake: *** [Makefile:69: out/libdriveio.so.0.full] Error 1



I