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

Adam Baxter voltagex at voltagex.org
Sat Feb 27 09:03:15 UTC 2016


On 27 February 2016 at 19:46, Adam Baxter <voltagex at voltagex.org> wrote:
> CMakeFiles/apt-cacher-ng.dir/showinfo.cc.o: In function
> `tDeleter::tDeleter(tSpecialRequest::tRunParms const&,
> std::__1::basic_string<char, std::__1::char_traits<char>,
> std::__1::allocator<char> > const&)':
> /usr/home/ec2-user/apt-cacher-ng/source/showinfo.cc:(.text._ZN8tDeleterC2ERKN15tSpecialRequest9tRunParmsERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE+0x59f):
> undefined reference to `DecodeBase64(char const*, unsigned long,
> acbuf&)'
> CC: error: linker command failed with exit code 1 (use -v to see invocation)
>
>

Fixed the pthread issue with ./distclean.sh && LDFLAGS=-lpthread
./build.sh, but the DecodeBase64 problem remains.

[100%] Linking CXX executable ../apt-cacher-ng
CMakeFiles/apt-cacher-ng.dir/showinfo.cc.o: In function
`tDeleter::tDeleter(tSpecialRequest::tRunParms const&,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&)':
/usr/home/ec2-user/apt-cacher-ng/source/showinfo.cc:(.text._ZN8tDeleterC2ERKN15tSpecialRequest9tRunParmsERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE+0x59f):
undefined reference to `DecodeBase64(char const*, unsigned long,
acbuf&)'
CC: error: linker command failed with exit code 1 (use -v to see invocation)

I don't think I've seen this error before (when compiling on FreeBSD 9).

Note that this is the same whether the compiler is clang++ 3.4.1 or g++ 5.3.0

Thanks again,
Adam



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