Can't compile in FreeBSD :)
1o1o1 opened this issue · 8 comments
[84/163] /usr/local/bin/g++7 -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src -I. -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o -MF src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o.d -o src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o -c /usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src/chttpconn.cpp
FAILED: src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o
/usr/local/bin/g++7 -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src -I. -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o -MF src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o.d -o src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o -c /usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src/chttpconn.cpp
/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src/chttpconn.cpp: In member function 'int nVerliHub::nSocket::cHTTPConn::Connect(const string&, int)':
/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src/chttpconn.cpp:207:21: error: aggregate 'nVerliHub::nSocket::cHTTPConn::Connect(const string&, int)::sockaddr_in dest' has incomplete type and cannot be defined
struct sockaddr_in dest;
^~~~
/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src/chttpconn.cpp: In member function 'void nVerliHub::nSocket::cHTTPConn::Close()':
/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src/chttpconn.cpp:300:2: error: 'TEMP_FAILURE_RETRY' was not declared in this scope
TEMP_FAILURE_RETRY(::close(mSock));
^~~~~~~~~~~~~~~~~~
[85/163] /usr/local/bin/g++7 -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src -I. -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/cmaxminddb.cpp.o -MF src/CMakeFiles/libverlihub.dir/cmaxminddb.cpp.o.d -o src/CMakeFiles/libverlihub.dir/cmaxminddb.cpp.o -c /usr/src/apps/verlihub-1.1.0.41/work/verlihub-1243a1082dcf12c4b32252863b655717ff02557f/src/cmaxminddb.cpp
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/src/apps/verlihub-1.1.0.41
[51/163] /usr/local/bin/g++7 -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0 -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src -I. -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o -MF src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o.d -o src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o -c /usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src/chttpconn.cpp
FAILED: src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o
/usr/local/bin/g++7 -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0 -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src -I. -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -DUSE_CUSTOM_AUTOSPRINTF
-O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o -MF src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o.d -o src/CMakeFiles/libverlihub.dir/chttpconn.cpp.o -c /usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src/chttpconn.cpp
/usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src/chttpconn.cpp: In member function 'int nVerliHub::nSocket::cHTTPConn::Connect(const string&, int)':
/usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src/chttpconn.cpp:208:21: error: aggregate 'nVerliHub::nSocket::cHTTPConn::Connect(const string&, int)::sockaddr_in dest' has incomplete type and cannot be defined
struct sockaddr_in dest;
^~~~
[52/163] /usr/local/bin/g++7 -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0 -I/usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src -I. -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -Wl,-rpath=/usr/local/lib/gcc7 -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/cmaxminddb.cpp.o -MF src/CMakeFiles/libverlihub.dir/cmaxminddb.cpp.o.d -o src/CMakeFiles/libverlihub.dir/cmaxminddb.cpp.o -c /usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src/cmaxminddb.cpp
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/src/apps/verlihub-1.1.0.41
Проблема еще и тут :
usr/src/apps/verlihub-1.1.0.41/work/verlihub-c1f2d1b29b7b011f9e310ec1a506e2e28ef630c0/src/chttpconn.cpp:208:21: error: aggregate 'nVerliHub::nSocket::cHTTPConn::Connect(const string&, int)::sockaddr_in dest' has incomplete type and cannot be defined
struct sockaddr_in dest;
^~~~
снова не собирается :)
[57/163] /usr/bin/c++ -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.43/work/verlihub-76c8721b214f3f312edd2359479c898518ffe8ce -I/usr/src/apps/verlihub-1.1.0.43/work/verlihub-76c8721b214f3f312edd2359479c898518ffe8ce/src -I. -O2 -pipe -fstack-protector -fno-strict-aliasing -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/casyncsocketserver.cpp.o -MF src/CMakeFiles/libverlihub.dir/casyncsocketserver.cpp.o.d -o src/CMakeFiles/libverlihub.dir/casyncsocketserver.cpp.o -c /usr/src/apps/verlihub-1.1.0.43/work/verlihub-76c8721b214f3f312edd2359479c898518ffe8ce/src/casyncsocketserver.cpp
In file included from /usr/src/apps/verlihub-1.1.0.43/work/verlihub-76c8721b214f3f312edd2359479c898518ffe8ce/src/casyncsocketserver.cpp:21:
In file included from /usr/src/apps/verlihub-1.1.0.43/work/verlihub-76c8721b214f3f312edd2359479c898518ffe8ce/src/casyncsocketserver.h:24:
In file included from /usr/src/apps/verlihub-1.1.0.43/work/verlihub-76c8721b214f3f312edd2359479c898518ffe8ce/src/cconnchoose.h:59:
/usr/src/apps/verlihub-1.1.0.43/work/verlihub-76c8721b214f3f312edd2359479c898518ffe8ce/src/ctime.h:118:2: warning: conversion function converting 'nVerliHub::nUtils::cTimePrint' to its base class 'nVerliHub::nUtils::cTime' will never be used
operator cTime() {return *this;}
^
1 warning generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/src/apps/verlihub-1.1.0.43
@1o1o1
не вижу ошибки, только предупреждение о неиспользованной функции превращения объекта
Вот полный лог:
[22/163] /usr/bin/c++ -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345 -I/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src -I. -O2 -pipe -fstack-protector -fno-strict-aliasing -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o -MF src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o.d -o src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o -c /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/casyncconn.cpp
FAILED: src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o
/usr/bin/c++ -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dlibverlihub_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345 -I/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src -I. -O2 -pipe -fstack-protector -fno-strict-aliasing -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o -MF src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o.d -o src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o -c /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/casyncconn.cpp
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/casyncconn.cpp:27:
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cserverdc.h:34:
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cuser.h:28:
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cpenaltylist.h:24:
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cconfmysql.h:24:
/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cconfigbase.h:107:24: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
cConfigBaseBase *mC = NULL;
^
/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/casyncconn.cpp:88:2: error: field of type 'nVerliHub::nSocket::cAsyncConn::tCLIt' (aka '__list_iterator<nVerliHub::nSocket::cAsyncConn *, void *>') has private constructor
mIterator(0),
^
/usr/include/c++/v1/list:292:14: note: implicitly declared private here
explicit __list_iterator(__link_pointer __p) _NOEXCEPT : _ptr(__p) {}
^
/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/casyncconn.cpp:163:2: error: field of type 'nVerliHub::nSocket::cAsyncConn::tCLIt' (aka '__list_iterator<nVerliHub::nSocket::cAsyncConn *, void *>') has private constructor
mIterator(0),
^
/usr/include/c++/v1/list:292:14: note: implicitly declared private here
explicit __list_iterator(__link_pointer __p) _NOEXCEPT : _ptr(__p) {}
^
1 warning and 2 errors generated.
[23/163] /usr/bin/c++ -DENABLE_SYSLOG -DHAVE_BSD -DHAVE_CONFIG_H -DHAVE_FREEBSD -Dvhapi_EXPORTS -I/usr/local/include -I/usr/local/include/mysql -I/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345 -I/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src -I. -O2 -pipe -fstack-protector -fno-strict-aliasing -DUSE_CUSTOM_AUTOSPRINTF -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -std=gnu++98 -MD -MT src/CMakeFiles/vhapi.dir/script_api.cpp.o -MF src/CMakeFiles/vhapi.dir/script_api.cpp.o.d -o src/CMakeFiles/vhapi.dir/script_api.cpp.o -c /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/script_api.cpp
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/script_api.cpp:25:
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cserverdc.h:34:
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cuser.h:28:
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cpenaltylist.h:24:
In file included from /usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cconfmysql.h:24:
/usr/src/apps/verlihub-1.1.0.44/work/verlihub-c9d2c141004b14c74f277aedf2793a279f7ca345/src/cconfigbase.h:107:24: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
cConfigBaseBase *mC = NULL;
^
1 warning generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/src/apps/verlihub-1.1.0.44
вот конкретнее с clang :
In file included from /usr/src/apps/verlihub/src/cconfmysql.h:24:
/usr/src/apps/verlihub/src/cconfigbase.h:107:24: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
cConfigBaseBase *mC = NULL;
^
/usr/src/apps/verlihub/src/casyncconn.cpp:88:2: error: field of type 'nVerliHub::nSocket::cAsyncConn::tCLIt' (aka
'__list_iterator<nVerliHub::nSocket::cAsyncConn *, void *>') has private constructor
mIterator(0),
^
/usr/include/c++/v1/list:292:14: note: implicitly declared private here
explicit __list_iterator(__link_pointer __p) _NOEXCEPT : _ptr(__p) {}
^
/usr/src/apps/verlihub/src/casyncconn.cpp:163:2: error: field of type 'nVerliHub::nSocket::cAsyncConn::tCLIt' (aka
'__list_iterator<nVerliHub::nSocket::cAsyncConn *, void *>') has private constructor
mIterator(0),
^
/usr/include/c++/v1/list:292:14: note: implicitly declared private here
explicit __list_iterator(__link_pointer __p) _NOEXCEPT : _ptr(__p) {}
^
2 warnings and 2 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/src/apps/verlihub/build
*** Error code 1
Stop.
make[1]: stopped in /usr/src/apps/verlihub/build
*** Error code 1
Stop.
make: stopped in /usr/src/apps/verlihub/build
и еще осталось:
(pts/7)[admin@ix-ua:/usr/src/apps/verlihub/build]$ make
Scanning dependencies of target libverlihub
[ 1%] Building CXX object src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o
In file included from /usr/src/apps/verlihub/src/casyncconn.cpp:26:
In file included from /usr/src/apps/verlihub/src/casyncsocketserver.h:24:
In file included from /usr/src/apps/verlihub/src/cconnchoose.h:59:
/usr/src/apps/verlihub/src/ctime.h:118:2: warning: conversion function converting 'nVerliHub::nUtils::cTimePrint' to its base class
'nVerliHub::nUtils::cTime' will never be used
operator cTime() {return *this;}
^
/usr/src/apps/verlihub/src/casyncconn.cpp:88:2: error: field of type 'nVerliHub::nSocket::cAsyncConn::tCLIt' (aka
'__list_iterator<nVerliHub::nSocket::cAsyncConn *, void *>') has private constructor
mIterator(0),
^
/usr/include/c++/v1/list:292:14: note: implicitly declared private here
explicit __list_iterator(__link_pointer __p) _NOEXCEPT : _ptr(__p) {}
^
/usr/src/apps/verlihub/src/casyncconn.cpp:163:2: error: field of type 'nVerliHub::nSocket::cAsyncConn::tCLIt' (aka
'__list_iterator<nVerliHub::nSocket::cAsyncConn *, void *>') has private constructor
mIterator(0),
^
/usr/include/c++/v1/list:292:14: note: implicitly declared private here
explicit __list_iterator(__link_pointer __p) _NOEXCEPT : _ptr(__p) {}
^
1 warning and 2 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/src/apps/verlihub/build
*** Error code 1
Stop.
make[1]: stopped in /usr/src/apps/verlihub/build
*** Error code 1
Stop.
make: stopped in /usr/src/apps/verlihub/build
да. я видел. mIterator(0) инитить итератор значением 0 нельзя.
поправлю следующим PR