Установил-настроил 3proxy на вдс на Debian
Запускаю /usr/local/3proxy/3proxy.c /usr/local/3proxy/3proxy.cfg
Выдает:
line 10: typedef: command not found
/usr/local/3proxy/3proxy.c: line 11: pthread_mutex_t: command not found
/usr/local/3proxy/3proxy.c: line 12: pthread_mutex_t: command not found
/usr/local/3proxy/3proxy.c: line 13: pthread_mutex_t: command not found
/usr/local/3proxy/3proxy.c: line 14: pthread_mutex_t: command not found
/usr/local/3proxy/3proxy.c: line 17: pthread_mutex_t: command not found
/usr/local/3proxy/3proxy.c: line 20: syntax error near unexpected token `('
/usr/local/3proxy/3proxy.c: line 20: `int readconfig(FILE * fp);'
Что делать? Начало файла 3proxy.c выглядит так:
#include "proxy.h"
#ifndef _WIN32
#ifndef NOPLUGINS
#include <dlfcn.h>
#endif
#endif
#ifndef DEFAULTCONFIG
#define DEFAULTCONFIG conf.stringtable[25]
#endif
typedef int \(*MAINFUNC\)\(int, char**\);
pthread_mutex_t bandlim_mutex;
pthread_mutex_t tc_mutex;
pthread_mutex_t pwl_mutex;
pthread_mutex_t hash_mutex;
#ifndef NOODBC
pthread_mutex_t odbc_mutex;
#endif
int readconfig(FILE * fp);
int haveerror = 0;
int linenum = 0;
time_t basetime = 0;
void doschedule(void);
............. и т.д.
3proxy, debian