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

Adam Baxter voltagex at voltagex.org
Sat Feb 27 13:12:09 UTC 2016


On 27 February 2016 at 23:44, Eduard Bloch <edi at gmx.de> wrote:
> 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.
>

Hope this is helpful:

[100%] Linking CXX executable ../apt-cacher-ng
cd /usr/home/ec2-user/apt-cacher-ng/builddir/source &&
/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/apt-cacher-ng.dir/link.txt --verbose=1
/usr/bin/CC   -O3 -DNDEBUG   -Wl,--as-needed -Wl,-O1 -Wl,--discard-all
-Wl,--no-undefined -Wl,--gc-sections
CMakeFiles/apt-cacher-ng.dir/bgtask.cc.o
CMakeFiles/apt-cacher-ng.dir/cacheman.cc.o
CMakeFiles/apt-cacher-ng.dir/cleaner.cc.o
CMakeFiles/apt-cacher-ng.dir/conn.cc.o
CMakeFiles/apt-cacher-ng.dir/conserver.cc.o
CMakeFiles/apt-cacher-ng.dir/dirwalk.cc.o
CMakeFiles/apt-cacher-ng.dir/expiration.cc.o
CMakeFiles/apt-cacher-ng.dir/job.cc.o
CMakeFiles/apt-cacher-ng.dir/jsonstats.cc.o
CMakeFiles/apt-cacher-ng.dir/lockable.cc.o
CMakeFiles/apt-cacher-ng.dir/maintenance.cc.o
CMakeFiles/apt-cacher-ng.dir/mirror.cc.o
CMakeFiles/apt-cacher-ng.dir/pkgimport.cc.o
CMakeFiles/apt-cacher-ng.dir/rfc2553emu.cc.o
CMakeFiles/apt-cacher-ng.dir/showinfo.cc.o
CMakeFiles/apt-cacher-ng.dir/apt-cacher.cc.o
CMakeFiles/acngstuff.dir/acbuf.cc.o CMakeFiles/acngstuff.dir/acfg.cc.o
CMakeFiles/acngstuff.dir/dlcon.cc.o
CMakeFiles/acngstuff.dir/tcpconnect.cc.o
CMakeFiles/acngstuff.dir/header.cc.o
CMakeFiles/acngstuff.dir/acfg_defaults.cc.o
CMakeFiles/acngstuff.dir/meta.cc.o
CMakeFiles/acngstuff.dir/filereader.cc.o
CMakeFiles/acngstuff.dir/aclogger.cc.o
CMakeFiles/acngstuff.dir/fileitem.cc.o
CMakeFiles/acngstuff.dir/filelocks.cc.o
CMakeFiles/acngstuff.dir/caddrinfo.cc.o
CMakeFiles/acngstuff.dir/fileio.cc.o  -o ../apt-cacher-ng  -lz -lbz2
-llzma
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)
*** [apt-cacher-ng] Error code 1



--Adam



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