Hi there all,... I used to maintain a small semi-embedded GNU/Linux system at my previous employer and I really enjoyed that. But now I'd like to try my had at building a dedicated OSPF/BGP route/firewall appliance based on OpenBSD.
I have a particular liking for the pkgutils package manager written by Per Linden and would like to build my own OpenBSD using this package manager (yeah I'm bored). 'Cept I'm having an issue compiling it,... I've installed OpenBSD 4.2-release with no updates as yet (I'm behind an ISA proxy :( and they block just about the whole planet lol) On top of that I've installed: gmake-3.80p1.tgz libiconv-1.9.2p3.tgz gettext-0.14.6p0.tgz And installed libarchive-2.4.14 from source (couldn't find a binary package) When I try compile the package (pkgutils-5.32.0) I get the following output: # gmake g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.32.0\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MM main.cc pkgutil.cc pkgadd.cc pkgrm.cc pkginfo.cc > .depend g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.32.0\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o main.o main.cc g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.32.0\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o pkgutil.o pkgutil.cc pkgutil.cc: In member function `void pkgutil::db_open(const std::string&)': pkgutil.cc:75: error: no matching function for call to ` __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >::stdio_filebuf(int&, const std::_Ios_Openmode&, int)' /usr/include/g++/ext/stdio_filebuf.h:53: error: candidates are: __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >::stdio_filebuf(const __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >&) /usr/include/g++/ext/stdio_filebuf.h:147: error: __gnu_cxx::stdio_filebuf<_CharT, _Traits>::stdio_filebuf(std::__c_file*, std::_Ios_Openmode, long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>] <near match> /usr/include/g++/ext/stdio_filebuf.h:122: error: __gnu_cxx::stdio_filebuf<_CharT, _Traits>::stdio_filebuf(int, std::_Ios_Openmode, bool, long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>] pkgutil.cc: In member function `void pkgutil::db_commit()': pkgutil.cc:119: error: no matching function for call to ` __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >::stdio_filebuf(int&, const std::_Ios_Openmode&, int)' /usr/include/g++/ext/stdio_filebuf.h:53: error: candidates are: __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >::stdio_filebuf(const __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >&) /usr/include/g++/ext/stdio_filebuf.h:147: error: __gnu_cxx::stdio_filebuf<_CharT, _Traits>::stdio_filebuf(std::__c_file*, std::_Ios_Openmode, long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>] <near match> /usr/include/g++/ext/stdio_filebuf.h:122: error: __gnu_cxx::stdio_filebuf<_CharT, _Traits>::stdio_filebuf(int, std::_Ios_Openmode, bool, long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>] gmake: *** [pkgutil.o] Error 1 # -- I have heard there are troubles of more than one kind. Some come from ahead and some from behind. But I've bought a big bat. I'm all ready you see. Now my troubles are going to have toubles with me! -- Dr. Seuss