[ndnSIM] [EXT] build error on mac

Bhargab Acharya bhrg3se at gmail.com
Tue May 21 22:15:07 PDT 2024


I fixed the issue by adding these in wscript -> configure(conf) function

    os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.13'
    conf.env.MACOSX_DEPLOYMENT_TARGET = '10.13'

  conf.env.append_value('CXXFLAGS', '-mmacosx-version-min=10.13')
    conf.env.append_value('LINKFLAGS', '-mmacosx-version-min=10.13')

Now I am getting this error:


In file included from
../src/ndnSIM/helper/lfid/ndn-global-routing-helper-lfid.cpp:26:
./ns3/ndnSIM/helper/boost-graph-ndn-global-routing-helper.hpp:190:36:
error: no template named 'binary_function' in namespace 'std'; did you mean
'__binary_function'?
struct WeightCompare : public
std::binary_function<property_traits<EdgeWeights>::reference,
                              ~~~~~^~~~~~~~~~~~~~~
                                   __binary_function
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/binary_function.h:49:1:
note: '__binary_function' declared here
using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2,
_Result>;
^
In file included from
../src/ndnSIM/helper/lfid/ndn-global-routing-helper-lfid.cpp:26:
./ns3/ndnSIM/helper/boost-graph-ndn-global-routing-helper.hpp:213:17:
error: no template named 'binary_function' in namespace 'std'; did you mean
'__binary_function'?
  : public std::binary_function<uint32_t,
property_traits<EdgeWeights>::reference, uint32_t> {
           ~~~~~^~~~~~~~~~~~~~~
                __binary_function
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/binary_function.h:49:1:
note: '__binary_function' declared here
using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2,
_Result>;
^
2 errors generated.




[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&>
05/22/24,
12:13:37 AM

On Tue, May 21, 2024 at 10:33 AM Bhargab Acharya <bhrg3se at gmail.com> wrote:

> I am on MacOS 14.5
>
>
> [image: Mailtrack]
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&> Sender
> notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&> 05/21/24,
> 10:33:07 AM
>
> On Tue, May 21, 2024 at 9:51 AM Junxiao Shi <shijunxiao at arizona.edu>
> wrote:
>
>> Hi Bhargab
>>
>> According to the error message, you need to upgrade to macOS 10.13 or
>> later.
>>
>> Yours, Junxiao
>>
>>
>> On Tue, May 21, 2024, 10:05 Bhargab Acharya via ndnSIM <
>> ndnsim at lists.cs.ucla.edu> wrote:
>>
>>> *External Email*
>>> Hi,
>>>
>>> I am trying to build ndnSIM on my Mac.
>>>
>>> ../src/wifi/model/ht/ht-frame-exchange-manager.cc:900:57: error: 'value'
>>> is unavailable: introduced in macOS 10.13
>>>               hdr.SetQosQueueSize (queueSizeForTid[tid].value ());
>>>                                                         ^
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/optional:1066:27:
>>> note: 'value' has been explicitly marked unavailable here
>>>     constexpr value_type& value() &
>>>                           ^
>>>
>>> Output from ./waf configure:
>>>
>>> Setting top to                           :
>>> /Users/bhrg3se/IdeaProjects/learning/ndn/ndnSIM/ns-3
>>> Setting out to                           :
>>> /Users/bhrg3se/IdeaProjects/learning/ndn/ndnSIM/ns-3/build
>>> Checking for 'clang' (C compiler)        : /usr/bin/gcc
>>> Checking for cc version                  : 15.0.0
>>> Checking for 'clang++' (C++ compiler)    : /usr/bin/g++
>>> Checking supported compiler CXXFLAGS     : -std=c++17
>>> Checking supported optimizations CXXFLAGS : -O0
>>> Checking supported debug CXXFLAGS         : -ggdb -g3
>>> Checking supported warnings CXXFLAGS      : -Wall
>>> -Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing
>>> Checking for compilation flag -std=c++17 support : ok
>>> Checking boost includes                          : 1_85
>>> /usr/local/include
>>> Checking boost libs                              : ok /usr/local/lib
>>> Checking for boost linkage                       : ok
>>> Checking for program 'python'                    :
>>> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
>>> Checking for python version >= 2.3               : 3.11.4
>>> python-config                                    :
>>> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3-config
>>> Asking python-config for pyembed '--cflags --libs --ldflags --embed'
>>> flags : yes
>>> Testing pyembed configuration
>>>    : yes
>>> Asking python-config for pyext '--cflags --libs --ldflags' flags
>>>   : yes
>>> Testing pyext configuration
>>>    : yes
>>> Checking for compilation flag -Wno-array-bounds support
>>>    : ok
>>> Checking for pybindgen location
>>>    : ../pybindgen (guessed)
>>> Checking for python module 'pybindgen'
>>>   : 0.22.1.post1+ga619e22
>>> Checking for pybindgen version
>>>   : 0.22.1.post1+ga619e22
>>> Checking for code snippet
>>>    : no
>>> Checking for types uint64_t and unsigned long equivalence
>>>    : yes
>>> Checking for code snippet
>>>    : yes
>>> Checking for types uint64_t and unsigned long long equivalence
>>>   : no
>>> Checking for the apidefs that can be used for Python bindings
>>>    : gcc-ILP32
>>> Checking for internal GCC cxxabi
>>>   : incomplete
>>> Checking for python module 'pygccxml'
>>>    : 2.5.0
>>> Checking for pygccxml version
>>>    : 2.5.0
>>> Checking for program 'castxml'
>>>   : /usr/local/bin/castxml
>>> Checking for castxml version
>>>   : 0.6
>>> Checking for click location
>>>    : not found
>>> Checking for program 'pkg-config'
>>>    : /usr/local/bin/pkg-config
>>> Checking for 'gtk+-3.0 >= 3.22'
>>>    : yes
>>> Checking for 'libxml-2.0 >= 2.7'
>>>   : yes
>>>
>>>
>>>
>>> --
>>> Best,
>>> Bhargab
>>>
>>> [image: Mailtrack]
>>> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&> Sender
>>> notified by
>>> Mailtrack
>>> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&> 05/21/24,
>>> 09:01:30 AM
>>> _______________________________________________
>>> ndnSIM mailing list
>>> ndnSIM at lists.cs.ucla.edu
>>> https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>>
>>
>
> --
> Best,
> Bhargab Acharya
>


-- 
Best,
Bhargab Acharya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20240522/80e4f2ac/attachment-0001.htm>


More information about the ndnSIM mailing list