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

Error compiling on Slackware 15.0 #52

Open
sateuwdie opened this issue Jan 26, 2025 · 2 comments
Open

Error compiling on Slackware 15.0 #52

sateuwdie opened this issue Jan 26, 2025 · 2 comments

Comments

@sateuwdie
Copy link

sateuwdie commented Jan 26, 2025

[  1%] Built target mediastreamer2-basedescs-header
[  1%] Built target mediastreamer2-git-version
[  1%] Built target mediastreamer2-voipdescs-header
[  1%] Built target mediastreamer2-fragment-shader-header
[  1%] Built target mediastreamer2-yuv2rgb-vs-header
[  1%] Built target mediastreamer2-yuv2rgb-fs-header
[  1%] Built target mediastreamer2-vertex-shader-header
[  1%] Building C object src/CMakeFiles/mediastreamer2.dir/crypto/zrtp.c.o
[  1%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/mediastream.c.o
[  3%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/msiframerequestslimiter.c.o
[  3%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/msmediaplayer.c.o
[  3%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/ice.c.o
[  4%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/msmediarecorder.c.o
[  4%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/msvoip.c.o
[  5%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/qosanalyzer.c.o
/tmp/MG/mediastreamer2/src/voip/ice.c: In function ‘ice_send_message_to_socket’:
/tmp/MG/mediastreamer2/src/voip/ice.c:1423:9: warning: ‘rtp_session_create_packet_raw’ is deprecated [-Wdeprecated-declarations]
 1423 |         mblk_t *m = rtp_session_create_packet_raw((const uint8_t *)buf, len);
      |         ^~~~~~
In file included from /tmp/MG/mediastreamer2/include/mediastreamer2/stun.h:25,
                 from /tmp/MG/mediastreamer2/include/mediastreamer2/ice.h:25,
                 from /tmp/MG/mediastreamer2/src/voip/ice.c:31:
/usr/include/ortp/rtpsession.h:681:37: note: declared here
  681 | ORTP_PUBLIC ORTP_DEPRECATED mblk_t *rtp_session_create_packet_raw(const uint8_t *packet, size_t packet_size);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  5%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/qualityindicator.c.o
/tmp/MG/mediastreamer2/src/crypto/zrtp.c: In function ‘ms_zrtp_getAlgoId’:
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:366:23: error: ‘ZRTP_KEYAGREEMENT_MLK1’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_Mult’?
  366 |                 case (ZRTP_KEYAGREEMENT_MLK1):
      |                       ^~~~~~~~~~~~~~~~~~~~~~
      |                       ZRTP_KEYAGREEMENT_Mult
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:366:23: note: each undeclared identifier is reported only once for each function it appears in
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:368:23: error: ‘ZRTP_KEYAGREEMENT_MLK2’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_KYB2’?
  368 |                 case (ZRTP_KEYAGREEMENT_MLK2):
      |                       ^~~~~~~~~~~~~~~~~~~~~~
      |                       ZRTP_KEYAGREEMENT_KYB2
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:370:23: error: ‘ZRTP_KEYAGREEMENT_MLK3’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_KYB3’?
  370 |                 case (ZRTP_KEYAGREEMENT_MLK3):
      |                       ^~~~~~~~~~~~~~~~~~~~~~
      |                       ZRTP_KEYAGREEMENT_KYB3
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:384:23: error: ‘ZRTP_KEYAGREEMENT_K255_MLK512’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_K255_KYB512’?
  384 |                 case (ZRTP_KEYAGREEMENT_K255_MLK512):
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       ZRTP_KEYAGREEMENT_K255_KYB512
[  6%] Building C object src/CMakeFiles/mediastreamer2.dir/otherfilters/rfc4103_source.c.o
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:390:23: error: ‘ZRTP_KEYAGREEMENT_K448_MLK1024’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_K448_KYB1024’?
  390 |                 case (ZRTP_KEYAGREEMENT_K448_MLK1024):
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       ZRTP_KEYAGREEMENT_K448_KYB1024
/tmp/MG/mediastreamer2/src/crypto/zrtp.c: In function ‘set_key_agreement_suites’:
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:716:68: error: ‘ZRTP_KEYAGREEMENT_MLK1’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_Mult’?
  716 |                                 bzrtpKeyAgreements[bzrtpCount++] = ZRTP_KEYAGREEMENT_MLK1;
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~
      |                                                                    ZRTP_KEYAGREEMENT_Mult
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:719:68: error: ‘ZRTP_KEYAGREEMENT_MLK2’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_KYB2’?
  719 |                                 bzrtpKeyAgreements[bzrtpCount++] = ZRTP_KEYAGREEMENT_MLK2;
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~
      |                                                                    ZRTP_KEYAGREEMENT_KYB2
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:722:68: error: ‘ZRTP_KEYAGREEMENT_MLK3’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_KYB3’?
  722 |                                 bzrtpKeyAgreements[bzrtpCount++] = ZRTP_KEYAGREEMENT_MLK3;
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~
      |                                                                    ZRTP_KEYAGREEMENT_KYB3
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:743:68: error: ‘ZRTP_KEYAGREEMENT_K255_MLK512’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_K255_KYB512’?
  743 |                                 bzrtpKeyAgreements[bzrtpCount++] = ZRTP_KEYAGREEMENT_K255_MLK512;
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                    ZRTP_KEYAGREEMENT_K255_KYB512
[  6%] Building C object src/CMakeFiles/mediastreamer2.dir/otherfilters/rfc4103_sink.c.o
[  7%] Building C object src/CMakeFiles/mediastreamer2.dir/otherfilters/msudp.c.o
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:752:68: error: ‘ZRTP_KEYAGREEMENT_K448_MLK1024’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_K448_KYB1024’?
  752 |                                 bzrtpKeyAgreements[bzrtpCount++] = ZRTP_KEYAGREEMENT_K448_MLK1024;
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                    ZRTP_KEYAGREEMENT_K448_KYB1024
[  7%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/rfc4103_textstream.c.o
/tmp/MG/mediastreamer2/src/crypto/zrtp.c: In function ‘ms_zrtp_available_key_agreement’:
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:1018:30: error: ‘ZRTP_KEYAGREEMENT_MLK1’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_Mult’?
 1018 |                         case ZRTP_KEYAGREEMENT_MLK1:
      |                              ^~~~~~~~~~~~~~~~~~~~~~
      |                              ZRTP_KEYAGREEMENT_Mult
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:1021:30: error: ‘ZRTP_KEYAGREEMENT_MLK2’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_KYB2’?
 1021 |                         case ZRTP_KEYAGREEMENT_MLK2:
      |                              ^~~~~~~~~~~~~~~~~~~~~~
      |                              ZRTP_KEYAGREEMENT_KYB2
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:1024:30: error: ‘ZRTP_KEYAGREEMENT_MLK3’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_KYB3’?
 1024 |                         case ZRTP_KEYAGREEMENT_MLK3:
      |                              ^~~~~~~~~~~~~~~~~~~~~~
      |                              ZRTP_KEYAGREEMENT_KYB3
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:1048:30: error: ‘ZRTP_KEYAGREEMENT_K255_MLK512’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_K255_KYB512’?
 1048 |                         case ZRTP_KEYAGREEMENT_K255_MLK512:
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                              ZRTP_KEYAGREEMENT_K255_KYB512
/tmp/MG/mediastreamer2/src/crypto/zrtp.c:1054:30: error: ‘ZRTP_KEYAGREEMENT_K448_MLK1024’ undeclared (first use in this function); did you mean ‘ZRTP_KEYAGREEMENT_K448_KYB1024’?
 1054 |                         case ZRTP_KEYAGREEMENT_K448_MLK1024:
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                              ZRTP_KEYAGREEMENT_K448_KYB1024
[  8%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/ringstream.c.o
[  8%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/stun.c.o

I use this line for compile


cmake -DCMAKE_INSTALL_PREFIX=/usr \
 -DBUILD_SHARED_LIBS=ON ../
  make 

bzrtp is the latest from git

@sateuwdie
Copy link
Author

Using this line

cmake -DCMAKE_INSTALL_PREFIX=/usr \
 -DBUILD_SHARED_LIBS=ON -DENABLE_ZRTP=NO -DENABLE_UNIT_TESTS=NO ../

can escape this problem but...

https://pastebin.com/JhYcr06K

@sateuwdie
Copy link
Author

The error seems to be related to openssl, I have compiled bctoolbox with openssl disabled and mbedtls enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant