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

src/steamnetworkingsockets_messages_certs.pb.h:10:10: fatal error: /usr/local/include/google/protobuf/port_def.inc: Permission denied #356

Open
raphael10-collab opened this issue Dec 13, 2024 · 1 comment

Comments

@raphael10-collab
Copy link

raphy@raohy:~$ git clone --recurse-submodules https://github.com/ValveSoftware/GameNetworkingSockets.git
Cloning into 'GameNetworkingSockets'...
remote: Enumerating objects: 10481, done.
remote: Counting objects: 100% (2844/2844), done.
remote: Compressing objects: 100% (459/459), done.
remote: Total 10481 (delta 2437), reused 2601 (delta 2362), pack-reused 7637 (from 1)
Receiving objects: 100% (10481/10481), 15.85 MiB | 26.09 MiB/s, done.
Resolving deltas: 100% (7659/7659), done.
Submodule 'src/external/abseil' (https://github.com/abseil/abseil-cpp) registered for path 'src/external/abseil'
Submodule 'src/external/picojson' (https://github.com/kazuho/picojson.git) registered for path 'src/external/picojson'
Submodule 'src/external/webrtc' (https://webrtc.googlesource.com/src) registered for path 'src/external/webrtc'
Cloning into '/home/raphy/GameNetworkingSockets/src/external/abseil'...
remote: Enumerating objects: 28497, done.        
remote: Counting objects: 100% (20/20), done.        
remote: Compressing objects: 100% (16/16), done.        
remote: Total 28497 (delta 4), reused 16 (delta 4), pack-reused 28477 (from 1)        
Receiving objects: 100% (28497/28497), 16.67 MiB | 19.69 MiB/s, done.
Resolving deltas: 100% (22121/22121), done.
Cloning into '/home/raphy/GameNetworkingSockets/src/external/picojson'...
remote: Enumerating objects: 631, done.        
remote: Counting objects: 100% (10/10), done.        
remote: Compressing objects: 100% (10/10), done.        
remote: Total 631 (delta 4), reused 3 (delta 0), pack-reused 621 (from 1)        
Receiving objects: 100% (631/631), 206.12 KiB | 2.51 MiB/s, done.
Resolving deltas: 100% (325/325), done.
Cloning into '/home/raphy/GameNetworkingSockets/src/external/webrtc'...
remote: Total 463412 (delta 332583), reused 463412 (delta 332583)        
Receiving objects: 100% (463412/463412), 430.87 MiB | 42.50 MiB/s, done.
Resolving deltas: 100% (332583/332583), done.
Submodule path 'src/external/abseil': checked out 'c2435f8342c2d0ed8101cb43adfd605fdc52dca2'
Submodule path 'src/external/picojson': checked out '111c9be5188f7350c2eac9ddaedd8cca3d7bf394'
Submodule path 'src/external/webrtc': checked out '30a3e787948dd6cdd541773101d664b85eb332a6'

raphy@raohy:~$ cd GameNetworkingSockets/

raphy@raohy:~/GameNetworkingSockets$ cmake -B builddir
-- The C compiler identification is GNU 12.3.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting CMAKE_BUILD_TYPE to 'RelWithDebInfo' as none was specified.
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.13")
-- OPENSSL_INCLUDE_DIR = /usr/include
-- Looking for EVP_MD_CTX_free
-- Looking for EVP_MD_CTX_free - found
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so (found version "3.21.12")
-- Found Threads: TRUE
-- Performing Test _fvisibility_hidden_TEST
-- Performing Test _fvisibility_hidden_TEST - Success
-- Performing Test _fno_strict_aliasing_TEST
-- Performing Test _fno_strict_aliasing_TEST - Success
-- Performing Test _Wall_TEST
-- Performing Test _Wall_TEST - Success
-- Performing Test _Wno_unknown_pragmas_TEST
-- Performing Test _Wno_unknown_pragmas_TEST - Success
-- Performing Test _Wno_sign_compare_TEST
-- Performing Test _Wno_sign_compare_TEST - Success
-- Performing Test _Wno_unused_local_typedef_TEST
-- Performing Test _Wno_unused_local_typedef_TEST - Success
-- Performing Test _Wno_unused_const_variable_TEST
-- Performing Test _Wno_unused_const_variable_TEST - Success
-- Performing Test _Wno_nested_anon_types_TEST
-- Performing Test _Wno_nested_anon_types_TEST - Success
-- Performing Test _Wno_format_truncation_TEST
-- Performing Test _Wno_format_truncation_TEST - Success
-- Performing Test _Wstrict_prototypes_TEST
-- Performing Test _Wstrict_prototypes_TEST - Success
-- Performing Test _fvisibility_inlines_hidden_TEST
-- Performing Test _fvisibility_inlines_hidden_TEST - Success
-- Performing Test _Wno_reorder_TEST
-- Performing Test _Wno_reorder_TEST - Success
-- Performing Test _Wno_non_virtual_dtor_TEST
-- Performing Test _Wno_non_virtual_dtor_TEST - Success
-- Performing Test _Wno_zero_as_null_pointer_constant_TEST
-- Performing Test _Wno_zero_as_null_pointer_constant_TEST - Success
-- Performing Test _fno_exceptions_TEST
-- Performing Test _fno_exceptions_TEST - Success
-- Performing Test _fno_rtti_TEST
-- Performing Test _fno_rtti_TEST - Success
-- Crypto library for AES/SHA256: OpenSSL
-- Crypto library for ed25519/curve25519: 
-- Link-time optimization: OFF
-- Configuring done (1.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/raphy/GameNetworkingSockets/builddir

raphy@raohy:~/GameNetworkingSockets$ cmake --build builddir/
[  1%] Running cpp protocol buffer compiler on common/steamnetworkingsockets_messages_udp.proto
[  2%] Running cpp protocol buffer compiler on common/steamnetworkingsockets_messages.proto
[  3%] Running cpp protocol buffer compiler on common/steamnetworkingsockets_messages_certs.proto
[  5%] Building CXX object src/CMakeFiles/GameNetworkingSockets.dir/common/steamid.cpp.o
[  6%] Building CXX object src/CMakeFiles/GameNetworkingSockets.dir/steamnetworkingsockets/steamnetworkingsockets_certs.cpp.o
In file included from /home/raphy/GameNetworkingSockets/src/steamnetworkingsockets/steamnetworkingsockets_internal.h:27,
                 from /home/raphy/GameNetworkingSockets/src/steamnetworkingsockets/steamnetworkingsockets_certs.cpp:5:
/home/raphy/GameNetworkingSockets/builddir/src/steamnetworkingsockets_messages_certs.pb.h:10:10: fatal error: /usr/local/include/google/protobuf/port_def.inc: Permission denied
   10 | #include <google/protobuf/port_def.inc>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [src/CMakeFiles/GameNetworkingSockets.dir/build.make:114: src/CMakeFiles/GameNetworkingSockets.dir/steamnetworkingsockets/steamnetworkingsockets_certs.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:118: src/CMakeFiles/GameNetworkingSockets.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
raphy@raohy:~/GameNetworkingSockets$ 

OS: Ubuntu 24.04
gcc version: 14.2.0

@kisak-valve
Copy link
Member

Hello @raphael10-collab, does the user you're using to compile have access to /usr/local/include/google/protobuf/port_def.inc? Your build log is telling you that it wasn't allowed and the contents of /usr/local is outside of this project.

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

2 participants