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

Adam Baxter voltagex at voltagex.org
Sat Feb 27 08:46:45 UTC 2016


On 28 January 2016 at 10:06, Eduard Bloch <edi at gmx.de> wrote:

> All the errors have the same reason.
>
> Please try the latest version:
>
> https://anonscm.debian.org/cgit/apt-cacher-ng/apt-cacher-ng.git/commit/?h=upstream/sid


Apologies for taking a while to get back to this. I managed to hack my
local copy to work but I've forgotten how I did it.

I'm testing this on a clean FreeBSD 10 VM.

The upstream/sid version breaks with

[ 52%] Linking CXX executable ../apt-cacher-ng
CMakeFiles/apt-cacher-ng.dir/cleaner.cc.o: In function
`cleaner::ScheduleFor(long, cleaner::eType)':
/usr/home/ec2-user/apt-cacher-ng/source/cleaner.cc:(.text._ZN7cleaner11ScheduleForElNS_5eTypeE+0x79):
undefined reference to `pthread_create'
CMakeFiles/apt-cacher-ng.dir/conn.cc.o: In function
`con::SetupDownloader(char const*)':
/usr/home/ec2-user/apt-cacher-ng/source/conn.cc:(.text._ZN3con15SetupDownloaderEPKc+0xe4):
undefined reference to `pthread_create'
CMakeFiles/apt-cacher-ng.dir/conserver.cc.o: In function
`conserver::SpawnThreadsAsNeeded()':
/usr/home/ec2-user/apt-cacher-ng/source/conserver.cc:(.text._ZN9conserver20SpawnThreadsAsNeededEv[_ZN9conserver20SpawnThreadsAsNeededEv]+0x87):
undefined reference to `pthread_create'
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'm trying to find out how I patched this on FreeBSD 9. Fixes like
anything in https://stackoverflow.com/questions/1620918/cmake-and-libpthread
seem to be unhelpful.

Regards,
Adam



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