root@host:/usr/src/sipcmd2-master # make
g++ -c -Wall src/main.cpp -o src/main.o -I/usr/local/include/opal -I/usr/local/include/ptlib -I/usr/src/ -g -DDEBUG
src/main.cpp: In member function 'bool Manager::SendDTMF(const PString&)':
src/main.cpp:459:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'PINDEX' {aka 'int'} [-Wsign-compare]
459 | for (; i < dtmf.GetSize() - 1; i++)
| ~~^~~~~~~~~~~~~~~~~~~~
src/main.cpp:474:17: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'PINDEX' {aka 'int'} [-Wsign-compare]
474 | ok = (i == dtmf.GetSize() - 1 ? true : false);
| ~~^~~~~~~~~~~~~~~~~~~~~
src/main.cpp: In member function 'bool Manager::RegisterSIP()':
src/main.cpp:441:1: warning: control reaches end of non-void function [-Wreturn-type]
441 | }
| ^
g++ -c -Wall src/commands.cpp -o src/commands.o -I/usr/local/include/opal -I/usr/local/include/ptlib -I/usr/src/ -g -DDEBUG
src/commands.cpp: In member function 'virtual bool Wait::ParseCommand(const char**, std::vector<Command*>&)':
src/commands.cpp:462:19: warning: format '%u' expects argument of type 'unsigned int*', but argument 3 has type 'size_t*' {aka 'long unsigned int*'} [-Wformat=]
462 | sscanf(*cmds, "%u", &millis);
| ~^ ~~~~~~~
| | |
| | size_t* {aka long unsigned int*}
| unsigned int*
| %lu
g++ -c -Wall src/channels.cpp -o src/channels.o -I/usr/local/include/opal -I/usr/local/include/ptlib -I/usr/src/ -g -DDEBUG
g++ src/main.o src/commands.o src/channels.o -o sipcmd2 -lopal -lpt
/usr/local/bin/ld: src/main.o: in function `Manager::Init(PArgList&)':
/usr/src/sipcmd2-master/src/main.cpp:412: undefined reference to `PString::PString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/bin/ld: src/main.o: in function `Manager::SendDTMF(PString const&)':
/usr/src/sipcmd2-master/src/main.cpp:445: undefined reference to `PString::PString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/bin/ld: src/main.o: in function `Manager::MakeCall(PString const&)':
/usr/src/sipcmd2-master/src/main.cpp:600: undefined reference to `operator<<(std::ostream&, PIPSocket::Address const&)'
/usr/local/bin/ld: /usr/src/sipcmd2-master/src/main.cpp:602: undefined reference to `operator<<(std::ostream&, PIPSocket::Address const&)'
/usr/local/bin/ld: src/main.o: in function `Manager::StartListener()':
/usr/src/sipcmd2-master/src/main.cpp:641: undefined reference to `operator<<(std::ostream&, PIPSocket::Address const&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV11RTPUserData[_ZTV11RTPUserData]+0x40): undefined reference to `PObject::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV11RTPUserData[_ZTV11RTPUserData]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV10RTPSession[_ZTV10RTPSession]+0x40): undefined reference to `PObject::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV10RTPSession[_ZTV10RTPSession]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV7Manager[_ZTV7Manager]+0x40): undefined reference to `PObject::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV7Manager[_ZTV7Manager]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV13LocalEndPoint[_ZTV13LocalEndPoint]+0x40): undefined reference to `OpalEndPoint::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV13LocalEndPoint[_ZTV13LocalEndPoint]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV11TestProcess[_ZTV11TestProcess]+0x40): undefined reference to `PThread::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV11TestProcess[_ZTV11TestProcess]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV8PSafePtrI8OpalCall12PSafePtrBaseE[_ZTV8PSafePtrI8OpalCall12PSafePtrBaseE]+0x40): undefined reference to `PSafePtrBase::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV8PSafePtrI8OpalCall12PSafePtrBaseE[_ZTV8PSafePtrI8OpalCall12PSafePtrBaseE]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV8PSafePtrI14OpalConnection12PSafePtrBaseE[_ZTV8PSafePtrI14OpalConnection12PSafePtrBaseE]+0x40): undefined reference to `PSafePtrBase::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV8PSafePtrI14OpalConnection12PSafePtrBaseE[_ZTV8PSafePtrI14OpalConnection12PSafePtrBaseE]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV14PStringOptions[_ZTV14PStringOptions]+0x40): undefined reference to `PAbstractDictionary::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV14PStringOptions[_ZTV14PStringOptions]+0x48): undefined reference to `PStringToString::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV17PStringDictionaryI7PStringE[_ZTV17PStringDictionaryI7PStringE]+0x40): undefined reference to `PAbstractDictionary::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV17PStringDictionaryI7PStringE[_ZTV17PStringDictionaryI7PStringE]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV6PArrayI7PStringE[_ZTV6PArrayI7PStringE]+0x40): undefined reference to `PCollection::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV6PArrayI7PStringE[_ZTV6PArrayI7PStringE]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV10PBaseArrayIcE[_ZTV10PBaseArrayIcE]+0x40): undefined reference to `PAbstractArray::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV10PBaseArrayIcE[_ZTV10PBaseArrayIcE]+0x48): undefined reference to `PAbstractArray::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/main.o:(.rodata._ZTV10PBaseArrayIcE[_ZTV10PBaseArrayIcE]+0xa0): undefined reference to `PAbstractArray::ReadElementFrom(std::istream&, int)'
/usr/local/bin/ld: src/commands.o: in function `Record::RunCommand(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/src/sipcmd2-master/src/commands.cpp:409: undefined reference to `PString::PString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/bin/ld: /usr/src/sipcmd2-master/src/commands.cpp:412: undefined reference to `PString::PString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV14RawMediaStream[_ZTV14RawMediaStream]+0x40): undefined reference to `OpalMediaStream::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV14RawMediaStream[_ZTV14RawMediaStream]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV15LocalConnection[_ZTV15LocalConnection]+0x40): undefined reference to `OpalConnection::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV15LocalConnection[_ZTV15LocalConnection]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV11TestChannel[_ZTV11TestChannel]+0x48): undefined reference to `PObject::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV11TestChannel[_ZTV11TestChannel]+0x50): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV11TestChannel[_ZTV11TestChannel]+0x100): undefined reference to `PChannel::Read(std::vector<PChannel::Slice, std::allocator<PChannel::Slice> > const&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV11TestChannel[_ZTV11TestChannel]+0x108): undefined reference to `PChannel::Write(std::vector<PChannel::Slice, std::allocator<PChannel::Slice> > const&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTC11TestChannel0_16PIndirectChannel[_ZTV11TestChannel]+0x48): undefined reference to `PObject::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTC11TestChannel0_16PIndirectChannel[_ZTV11TestChannel]+0x50): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTC11TestChannel0_16PIndirectChannel[_ZTV11TestChannel]+0x100): undefined reference to `PChannel::Read(std::vector<PChannel::Slice, std::allocator<PChannel::Slice> > const&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTC11TestChannel0_16PIndirectChannel[_ZTV11TestChannel]+0x108): undefined reference to `PChannel::Write(std::vector<PChannel::Slice, std::allocator<PChannel::Slice> > const&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTC11TestChannel0_8PChannel[_ZTV11TestChannel]+0x48): undefined reference to `PObject::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTC11TestChannel0_8PChannel[_ZTV11TestChannel]+0x50): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTC11TestChannel0_8PChannel[_ZTV11TestChannel]+0x100): undefined reference to `PChannel::Read(std::vector<PChannel::Slice, std::allocator<PChannel::Slice> > const&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTC11TestChannel0_8PChannel[_ZTV11TestChannel]+0x108): undefined reference to `PChannel::Write(std::vector<PChannel::Slice, std::allocator<PChannel::Slice> > const&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV14PAdaptiveDelay[_ZTV14PAdaptiveDelay]+0x40): undefined reference to `PObject::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV14PAdaptiveDelay[_ZTV14PAdaptiveDelay]+0x48): undefined reference to `PObject::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV10PBaseArrayIhE[_ZTV10PBaseArrayIhE]+0x40): undefined reference to `PAbstractArray::PrintOn(std::ostream&) const'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV10PBaseArrayIhE[_ZTV10PBaseArrayIhE]+0x48): undefined reference to `PAbstractArray::ReadFrom(std::istream&)'
/usr/local/bin/ld: src/channels.o:(.rodata._ZTV10PBaseArrayIhE[_ZTV10PBaseArrayIhE]+0xa0): undefined reference to `PAbstractArray::ReadElementFrom(std::istream&, int)'
collect2: error: ld returned 1 exit status
*** Error code 1
Stop.
make: stopped in /usr/src/sipcmd2-master
root@host:/usr/src/sipcmd2-master #
I'm having hard times building for FreeBSD: