[Apt-cacher-ng-users] Building under FreeBSD 9

Adam Baxter voltagex at voltagex.org
Tue Jan 26 08:31:01 UTC 2016


Hi all,
I'd like to run an apt-cacher-ng instance in a FreeBSD 9 jail (host is
FreeNAS 9.3)
I realise this is completely unsupported, but is there something in
acng that would make it incompatible?

[root at freebsd9 ~/apt-cacher-ng-0.8.9]# CC=gcc49 CXX=g++49 ./distclean.sh
[root at freebsd9 ~/apt-cacher-ng-0.8.9]# CC=gcc49 CXX=g++49 ./build.sh
-- The CXX compiler identification is GNU 4.9.4
-- The C compiler identification is GNU 4.9.4
-- Check for working CXX compiler: /usr/local/bin/g++49
-- Check for working CXX compiler: /usr/local/bin/g++49 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/local/bin/gcc49
-- Check for working C compiler: /usr/local/bin/gcc49 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- Looking for include files sys/param.h, sys/mount.h
-- Looking for include files sys/param.h, sys/mount.h - found
-- Looking for include file sys/vfs.h
-- Looking for include file sys/vfs.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test CXX_pthread
-- Performing Test CXX_pthread - Success
-- Performing Test CXX_Wall
-- Performing Test CXX_Wall - Success
-- Performing Test CXX_Wextra
-- Performing Test CXX_Wextra - Success
-- Performing Test CXX_Wnounusedparameter
-- Performing Test CXX_Wnounusedparameter - Success
-- Performing Test CXX_fvisibilityinlineshidden
-- Performing Test CXX_fvisibilityinlineshidden - Success
-- Performing Test LD_Wlasneeded
-- Performing Test LD_Wlasneeded - Success
-- Performing Test LD_WlO1
-- Performing Test LD_WlO1 - Success
-- Performing Test LD_Wldiscardall
-- Performing Test LD_Wldiscardall - Success
-- Performing Test LD_Wlnoundefined
-- Performing Test LD_Wlnoundefined - Success
-- Performing Test LD_Wlbuildidsha1
-- Performing Test LD_Wlbuildidsha1 - Success
-- Performing Test GC_SECTIONS
-- Performing Test GC_SECTIONS - Success
-- Performing Test COMPILER_SUPPORTS_GNU11
-- Performing Test COMPILER_SUPPORTS_GNU11 - Success
-- Performing Test HAVE_LIBWRAP
-- Performing Test HAVE_LIBWRAP - Failed
!! libwrap development files not usable, disabling support
-- Performing Test HAVE_WORDEXP
-- Performing Test HAVE_WORDEXP - Success
-- Performing Test HAVE_GLOB
-- Performing Test HAVE_GLOB - Success
-- Performing Test HAVE_FADVISE
-- Performing Test HAVE_FADVISE - Success
-- Performing Test HAVE_MADVISE
-- Performing Test HAVE_MADVISE - Success
-- Performing Test HAVE_PREAD
-- Performing Test HAVE_PREAD - Success
-- Performing Test HAVE_DAEMON
-- Performing Test HAVE_DAEMON - Failed
-- Checking for module 'libsystemd>=209'
--   Package 'libsystemd>=209' not found
-- Checking for module 'libsystemd-daemon'
--   Package 'libsystemd-daemon' not found
-- Performing Test HAVE_MEMORY_SPTR
-- Performing Test HAVE_MEMORY_SPTR - Success
-- Performing Test HAVE_DLOPEN
-- Performing Test HAVE_DLOPEN - Failed
-- Found BZip2: /usr/lib/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Performing Test HAVE_LZMA
-- Performing Test HAVE_LZMA - Success
-- Checking for module 'openssl'
--   Found openssl, version 1.0.2e
Compiler flags:  -D_FILE_OFFSET_BITS=64 -pthread -Wall -Wextra
-Wno-unused-parameter -fvisibility-inlines-hidden -fdata-sections
-ffunction-sections -std=gnu++11 -I/usr/local/include
Linker flags:  -Wl,--as-needed -Wl,-O1 -Wl,--discard-all
-Wl,--no-undefined -Wl,--build-id=sha1 -Wl,--gc-sections
-- Checking for module 'fuse'
--   Package 'fuse' not found
-- Performing Test HAVE_FUSE_25
-- Performing Test HAVE_FUSE_25 - Failed
- FUSE not found or not compatible, not building acngfs
Installation settings:
PACKAGE: apt-cacher-ng
VERSION: 0.8.9
CMAKE_INSTALL_PREFIX: /usr/local
DATADIR: /usr/local/share
LIBDIR: /usr/local/lib/apt-cacher-ng
DOCDIR: /usr/local/share/doc/apt-cacher-ng
SYSCONFDIR: /usr/local/etc
CFGDIR: /usr/local/etc/apt-cacher-ng
SBINDIR: /usr/local/sbin

-- Configuring done
-- Generating done
-- Build files have been written to: /root/apt-cacher-ng-0.8.9/builddir
Scanning dependencies of target in.acng
[  2%] Building CXX object client/CMakeFiles/in.acng.dir/client.cc.o
Scanning dependencies of target acngstuff
[  5%] Building CXX object source/CMakeFiles/acngstuff.dir/acbuf.cc.o
[  8%] Building CXX object source/CMakeFiles/acngstuff.dir/acfg.cc.o
In file included from /root/apt-cacher-ng-0.8.9/include/acfg.h:6:0,
                 from /root/apt-cacher-ng-0.8.9/include/debug.h:5,
                 from /root/apt-cacher-ng-0.8.9/client/../source/acbuf.cc:3,
                 from /root/apt-cacher-ng-0.8.9/client/client.cc:4:
/root/apt-cacher-ng-0.8.9/include/meta.h: In function 'mstring offttosH(off_t)':
/root/apt-cacher-ng-0.8.9/include/meta.h:322:6: error: 'uint' was not
declared in this scope
  for(uint i=0;i<_countof(pref)-1; i++)
      ^
/root/apt-cacher-ng-0.8.9/include/meta.h:322:15: error: 'i' was not
declared in this scope
  for(uint i=0;i<_countof(pref)-1; i++)
               ^
/root/apt-cacher-ng-0.8.9/include/meta.h: At global scope:
/root/apt-cacher-ng-0.8.9/include/meta.h:355:66: error: 'uint' has not
been declared
  inline tSplitWalk(cmstring *line, LPCSTR separators=SPACECHARS, uint begin=0)
                                                                  ^
/root/apt-cacher-ng-0.8.9/include/meta.h:451:15: error: 'uint' does
not name a type
 static inline uint FormatTime(char *buf, const time_t cur)
               ^
/root/apt-cacher-ng-0.8.9/include/meta.h:464:2: error: 'uint' does not
name a type
  uint len;
  ^
/root/apt-cacher-ng-0.8.9/include/meta.h: In constructor
'tCurrentTime::tCurrentTime()':
/root/apt-cacher-ng-0.8.9/include/meta.h:465:26: error: 'len' was not
declared in this scope
  inline tCurrentTime() { len=FormatTime(buf, time(nullptr)); }
                          ^
/root/apt-cacher-ng-0.8.9/include/meta.h:465:59: error: 'FormatTime'
was not declared in this scope
  inline tCurrentTime() { len=FormatTime(buf, time(nullptr)); }
                                                           ^
/root/apt-cacher-ng-0.8.9/include/meta.h: In member function
'tCurrentTime::operator mstring()':
/root/apt-cacher-ng-0.8.9/include/meta.h:466:50: error: 'len' was not
declared in this scope
  inline operator mstring() { return mstring(buf, len); }
                                                  ^
/root/apt-cacher-ng-0.8.9/include/meta.h: At global scope:
/root/apt-cacher-ng-0.8.9/include/meta.h:487:35: error: 'uint' has not
been declared
 mstring EncodeBase64(LPCSTR data, uint len);
                                   ^
In file included from /root/apt-cacher-ng-0.8.9/include/acfg.h:6:0,
                 from /root/apt-cacher-ng-0.8.9/include/debug.h:5,
                 from /root/apt-cacher-ng-0.8.9/source/acbuf.cc:3:
/root/apt-cacher-ng-0.8.9/include/meta.h: In function 'mstring offttosH(off_t)':
/root/apt-cacher-ng-0.8.9/include/meta.h:322:6: error: 'uint' was not
declared in this scope
  for(uint i=0;i<_countof(pref)-1; i++)
      ^
/root/apt-cacher-ng-0.8.9/include/meta.h:322:15: error: 'i' was not
declared in this scope
  for(uint i=0;i<_countof(pref)-1; i++)
               ^
/root/apt-cacher-ng-0.8.9/include/meta.h: At global scope:
/root/apt-cacher-ng-0.8.9/include/meta.h:355:66: error: 'uint' has not
been declared
  inline tSplitWalk(cmstring *line, LPCSTR separators=SPACECHARS, uint begin=0)
                                                                  ^
/root/apt-cacher-ng-0.8.9/include/meta.h:451:15: error: 'uint' does
not name a type
 static inline uint FormatTime(char *buf, const time_t cur)
               ^
/root/apt-cacher-ng-0.8.9/include/meta.h:464:2: error: 'uint' does not
name a type
  uint len;
  ^
/root/apt-cacher-ng-0.8.9/include/meta.h: In constructor
'tCurrentTime::tCurrentTime()':
/root/apt-cacher-ng-0.8.9/include/meta.h:465:26: error: 'len' was not
declared in this scope
  inline tCurrentTime() { len=FormatTime(buf, time(nullptr)); }
                          ^
/root/apt-cacher-ng-0.8.9/include/meta.h:465:59: error: 'FormatTime'
was not declared in this scope
  inline tCurrentTime() { len=FormatTime(buf, time(nullptr)); }
                                                           ^
/root/apt-cacher-ng-0.8.9/include/meta.h: In member function
'tCurrentTime::operator mstring()':
/root/apt-cacher-ng-0.8.9/include/meta.h:466:50: error: 'len' was not
declared in this scope
  inline operator mstring() { return mstring(buf, len); }
                                                  ^
/root/apt-cacher-ng-0.8.9/include/meta.h: At global scope:
/root/apt-cacher-ng-0.8.9/include/meta.h:487:35: error: 'uint' has not
been declared
 mstring EncodeBase64(LPCSTR data, uint len);
                                   ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:55:58: error: 'uint' was not
declared in this scope
         int syswrite(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                          ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:41: note: in definition
of macro 'MAX_VAL'
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:42: error: template
argument 1 is invalid
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                          ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:55:50: note: in expansion of
macro 'MAX_VAL'
         int syswrite(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                  ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:62:57: error: 'uint' was not
declared in this scope
         int sysread(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:41: note: in definition
of macro 'MAX_VAL'
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:42: error: template
argument 1 is invalid
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                          ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:62:49: note: in expansion of
macro 'MAX_VAL'
         int sysread(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                 ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:55:58: error: 'uint' was not
declared in this scope
         int syswrite(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                          ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:41: note: in definition
of macro 'MAX_VAL'
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:42: error: template
argument 1 is invalid
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                          ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:55:50: note: in expansion of
macro 'MAX_VAL'
         int syswrite(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                  ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:62:57: error: 'uint' was not
declared in this scope
         int sysread(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:41: note: in definition
of macro 'MAX_VAL'
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:42: error: template
argument 1 is invalid
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                          ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:62:49: note: in expansion of
macro 'MAX_VAL'
         int sysread(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                 ^
In file included from /root/apt-cacher-ng-0.8.9/include/acfg.h:6:0,
                 from /root/apt-cacher-ng-0.8.9/include/debug.h:5,
                 from /root/apt-cacher-ng-0.8.9/source/acfg.cc:2:
/root/apt-cacher-ng-0.8.9/include/meta.h: In function 'mstring offttosH(off_t)':
/root/apt-cacher-ng-0.8.9/include/meta.h:322:6: error: 'uint' was not
declared in this scope
  for(uint i=0;i<_countof(pref)-1; i++)
      ^
/root/apt-cacher-ng-0.8.9/include/meta.h:322:15: error: 'i' was not
declared in this scope
  for(uint i=0;i<_countof(pref)-1; i++)
               ^
/root/apt-cacher-ng-0.8.9/include/meta.h: At global scope:
/root/apt-cacher-ng-0.8.9/include/meta.h:355:66: error: 'uint' has not
been declared
  inline tSplitWalk(cmstring *line, LPCSTR separators=SPACECHARS, uint begin=0)
                                                                  ^
/root/apt-cacher-ng-0.8.9/include/meta.h:451:15: error: 'uint' does
not name a type
 static inline uint FormatTime(char *buf, const time_t cur)
               ^
/root/apt-cacher-ng-0.8.9/include/meta.h:464:2: error: 'uint' does not
name a type
  uint len;
  ^
/root/apt-cacher-ng-0.8.9/include/meta.h: In constructor
'tCurrentTime::tCurrentTime()':
/root/apt-cacher-ng-0.8.9/include/meta.h:465:26: error: 'len' was not
declared in this scope
  inline tCurrentTime() { len=FormatTime(buf, time(nullptr)); }
                          ^
/root/apt-cacher-ng-0.8.9/include/meta.h:465:59: error: 'FormatTime'
was not declared in this scope
  inline tCurrentTime() { len=FormatTime(buf, time(nullptr)); }
                                                           ^
/root/apt-cacher-ng-0.8.9/include/meta.h: In member function
'tCurrentTime::operator mstring()':
/root/apt-cacher-ng-0.8.9/include/meta.h:466:50: error: 'len' was not
declared in this scope
  inline operator mstring() { return mstring(buf, len); }
                                                  ^
/root/apt-cacher-ng-0.8.9/include/meta.h: At global scope:
/root/apt-cacher-ng-0.8.9/include/meta.h:487:35: error: 'uint' has not
been declared
 mstring EncodeBase64(LPCSTR data, uint len);
                                   ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:55:58: error: 'uint' was not
declared in this scope
         int syswrite(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                          ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:41: note: in definition
of macro 'MAX_VAL'
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:42: error: template
argument 1 is invalid
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                          ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:55:50: note: in expansion of
macro 'MAX_VAL'
         int syswrite(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                  ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:62:57: error: 'uint' was not
declared in this scope
         int sysread(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:41: note: in definition
of macro 'MAX_VAL'
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                         ^
/root/apt-cacher-ng-0.8.9/include/meta.h:223:42: error: template
argument 1 is invalid
 #define MAX_VAL(x) (std::numeric_limits<x>::max())
                                          ^
/root/apt-cacher-ng-0.8.9/include/acbuf.h:62:49: note: in expansion of
macro 'MAX_VAL'
         int sysread(int fd, unsigned int maxlen=MAX_VAL(uint));
                                                 ^
In file included from /root/apt-cacher-ng-0.8.9/client/client.cc:4:0:
/root/apt-cacher-ng-0.8.9/client/../source/acbuf.cc: In member
function 'bool acbuf::initFromFile(const char*)':
/root/apt-cacher-ng-0.8.9/client/../source/acbuf.cc:43:17: error: call
to 'int acbuf::sysread(int, unsigned int)' uses the default argument
for parameter 2, which is not yet defined
   if (sysread(fd) < 0)
                 ^
/root/apt-cacher-ng-0.8.9/client/client.cc: In function 'int main(int, char**)':
/root/apt-cacher-ng-0.8.9/client/client.cc:127:24: error: call to 'int
acbuf::syswrite(int, unsigned int)' uses the default argument for
parameter 2, which is not yet defined
    if(bufToD.syswrite(s)<0)
                        ^
/root/apt-cacher-ng-0.8.9/client/client.cc:133:28: error: call to 'int
acbuf::syswrite(int, unsigned int)' uses the default argument for
parameter 2, which is not yet defined
    if(bufFromD.syswrite(out)<0)
                            ^
/root/apt-cacher-ng-0.8.9/client/client.cc:139:25: error: call to 'int
acbuf::sysread(int, unsigned int)' uses the default argument for
parameter 2, which is not yet defined
    if(bufFromD.sysread(s)<=0)
                         ^
/root/apt-cacher-ng-0.8.9/client/client.cc:145:24: error: call to 'int
acbuf::sysread(int, unsigned int)' uses the default argument for
parameter 2, which is not yet defined
    if(bufToD.sysread(in)<=0)
                        ^
/root/apt-cacher-ng-0.8.9/source/acbuf.cc: In member function 'bool
acbuf::initFromFile(const char*)':
/root/apt-cacher-ng-0.8.9/source/acbuf.cc:43:17: error: call to 'int
acbuf::sysread(int, unsigned int)' uses the default argument for
parameter 2, which is not yet defined
   if (sysread(fd) < 0)
                 ^
*** [client/CMakeFiles/in.acng.dir/client.cc.o] Error code 1
1 error
*** [client/CMakeFiles/in.acng.dir/all] Error code 2
[ 11%] Building CXX object source/CMakeFiles/acngstuff.dir/dlcon.cc.o
*** [source/CMakeFiles/acngstuff.dir/acbuf.cc.o] Error code 1
*** [source/CMakeFiles/acngstuff.dir/acfg.cc.o] Error code 1
2 errors
*** [source/CMakeFiles/acngstuff.dir/all] Error code 2
2 errors
*** [all] Error code 2
1 error


Regards,
Adam Baxter



More information about the Apt-cacher-ng-users mailing list