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

Eduard Bloch edi at gmx.de
Sat Feb 27 12:44:16 UTC 2016


Hallo,
* Adam Baxter [Sat, Feb 27 2016, 08:03:15PM]:
> 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.

Could you add a VERBOSE option to the build.sh script? The problem
shouldn't exist, there is a check for -lpthread.

> [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

Yeah, that comes from the latest commmits. There should have been a
warning telling you that it needs openssl or libtomcrypt, but anyhow, I
will add a custom DecodeBase64 implementation for such cases.

Best regards,
Eduard.



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