Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build 1.4.1555 due to dependency from libusrsctp #607

Closed
ghost opened this issue Dec 10, 2020 · 1 comment
Closed

Can't build 1.4.1555 due to dependency from libusrsctp #607

ghost opened this issue Dec 10, 2020 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Dec 10, 2020

I'm building psi like this on Linux:

mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
cmake \
    -DCMAKE_C_FLAGS="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
    -DCMAKE_BUILD_TYPE="Release" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DUSE_ENCHANT=ON \
    -DUSE_HUNSPELL=OFF \
    -DBUNDLED_USRSCTP=OFF \
    -DUSE_KEYCHAIN=ON \
    -DINSTALL_PLUGINS_SDK=ON \
    -DBUNDLED_QCA=ON \
    -DENABLE_PLUGINS=ON \
    .. .


QMAKE_CFLAGS="$SLKCFLAGS" \
QMAKE_CXXFLAGS="$SLKCFLAGS" \
make
make install INSTALL_ROOT=$PKG

The code won't build and prints:

/tmp/_SBo/psi-plus-snapshots-1.4.1555/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp: In member function ‘void RTC::SctpAssociation::TransportConnected()’:
/tmp/_SBo/psi-plus-snapshots-1.4.1555/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:282:48: error: invalid application of ‘sizeof’ to incomplete type ‘RTC::SctpAssociation::TransportConnected()::sctp_common_header’
  282 |         peerAddrParams.spp_pathmtu = SctpMtu - sizeof(struct sctp_common_header);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/_SBo/psi-plus-snapshots-1.4.1555/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp: In member function ‘void RTC::SctpAssociation::ResetSctpStream(uint16_t, RTC::SctpAssociation::StreamDirection)’:
/tmp/_SBo/psi-plus-snapshots-1.4.1555/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:455:58: error: ‘SCTP_RECONFIG_SUPPORTED’ was not declared in this scope
  455 |     ret = usrsctp_getsockopt(this->socket, IPPROTO_SCTP, SCTP_RECONFIG_SUPPORTED, &av, &len);
      |                                                          ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [iris/src/irisnet/CMakeFiles/irisnet.dir/build.make:511: iris/src/irisnet/CMakeFiles/irisnet.dir/noncore/sctp/SctpAssociation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1356: iris/src/irisnet/CMakeFiles/irisnet.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
@ghost ghost added the bug label Dec 10, 2020
@tehnick
Copy link
Member

tehnick commented Dec 30, 2020

Configure with -DBUNDLED_USRSCTP=ON or install devel package for libusrsctp version 0.9.3.0+20201102 or newer into your system.

@tehnick tehnick closed this as completed Dec 30, 2020
@tehnick tehnick changed the title Can't build 1.4.1555 Can't build 1.4.1555 due to dependency from libusrsctp Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant